Phong lighting/ shading on 3d surface with texture map
13 ビュー (過去 30 日間)
古いコメントを表示
I'm visualizing a 3D face using patch.m (actually patcht.m) or surface.m with a texture map on it (a .bmp of a person's face). It looks very realistic when I visualize it without lights. But, when I put lights on it (with the lights command), it has a "flat" appearance (i.e. very cubic/triangulated). The light isn't being interpolated properly across the faces so the lighting effect isn't smooth, as it should be with phong lighting.
So far I haven't found a way to set a phong light or use shading interp with a surface that has a texture map applied to it. Does anybody know how to do this? Any help will be very much appreciated!!
0 件のコメント
回答 (1 件)
Walter Roberson
2012 年 5 月 14 日
OpenGL does not support the phong value for the FaceLighting and EdgeLighting properties of surfaces and patches.
Perhaps the above is affecting you ?
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!