Phong lighting/ shading on 3d surface with texture map

13 ビュー (過去 30 日間)
Mehdi
Mehdi 2012 年 5 月 14 日
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!!

回答 (1 件)

Walter Roberson
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 ?

カテゴリ

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