Phong lighting/ shading on 3d surface with texture map
23 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Walter Roberson
on 14 May 2012
OpenGL does not support the phong value for the FaceLighting and EdgeLighting properties of surfaces and patches.
Perhaps the above is affecting you ?
0 Comments
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!