Phong lighting/ shading on 3d surface with texture map
18 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Walter Roberson
le 14 Mai 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 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!