Advertisement

Phong Shading

Started by September 13, 2000 07:20 AM
2 comments, last by Giorgio Vielmini 24 years, 5 months ago
Does OpenGL support Phong Shading? I know that Gourad shading can be simply used with this setting: glShadeModel(GL_SMOOTH) but for Phong i didn''t found anything Thanks in advance Vilemini (whitenoise@tiscalinet.it);
By the moment, the pong shading is reserved for the ray tracers,
OpenGL don´t implement Pong Shading because this method calculate the image to represented point by point(the computational cost is very high), the smooth shading, calculate the only color or the vertices and make a polygon fill with a transition of colors between two vertices.
Advertisement
with the geforce 2 and perpixellighting pongshading is coming soon, but currently, it''s not that easy to support perpixellighting(==pongshading), just look at www.opengl.org, there is a link.. one moment..

that should work..
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud

You could always use the method of averaging normals for realistic lighting (assuming you''re talking curved sufaces, since perpixel is ridiculous for flat things). This averaging method is explained in the Red Book. The link''s on NeHe''s page.
S.

This topic is closed to new replies.

Advertisement