How to show the 3d volume transparently ?

4 ビュー (過去 30 日間)
yogesh jain
yogesh jain 2015 年 11 月 18 日
コメント済み: yogesh jain 2015 年 12 月 9 日
Hello all, I want to ask that how the all volume can be made translucent so that I can see inner part of that ? (Is 'FaceAlpha' worth useful here ??)
the code is -
load mri.mat;
K = squeeze(D);
K1 = padarray(K,[10 10 10],'both');
Ds = smooth3(K1);
i_surface = isosurface(Ds,15);
AxesH = axes('ButtonDownFcn', 'disp(2*3)');
hold all
hiso = patch('Vertices', i_surface.vertices,...
'Faces', i_surface.faces,...
'FaceColor', [.2,.8,.9],...
'EdgeColor', 'none');
view(0,50);
xlabel('X -->'); ylabel('Y -->'); zlabel('Z -->');
axis tight
axis equal
daspect([1,1,0.4])
lightangle(-40,30); lightangle(90,0); lightangle(-180,0);
set(gcf,'Renderer','zbuffer'); lighting phong;
set(hiso, 'SpecularColorReflectance', 0, 'SpecularExponent', 50,'FaceAlpha',0.1);
thank you :)
  1 件のコメント
yogesh jain
yogesh jain 2015 年 12 月 8 日
Could I get the Help Please ??

サインインしてコメントする。

採用された回答

Mike Garrity
Mike Garrity 2015 年 12 月 8 日
The Renderer 'zbuffer' didn't support FaceAlpha. You'll need to use opengl.
  1 件のコメント
yogesh jain
yogesh jain 2015 年 12 月 9 日
Thank you very much sir , It helped me :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by