Phong lighting/ shading on 3d surface with texture map
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Walter Roberson
el 14 de Mayo de 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 comentarios
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!