PDA

View Full Version : when to use flat or smooth shading ???



tbjerman
11-22-2001, 10:02 PM
i have a question ..
when i have a mesh that has smooth surface and edge and flat surface together , how do i render the mesh so that only the smooth surface will appears smooth and not the flat surface ???

mikael_aronsson
11-22-2001, 11:26 PM
Hi !

You have to split up the rendering into multiple glBegin/glEnd block one for flat and one for smooth, then you can change between flat/smooth any where you want as long as you are not inside a glBegin/glEnd block.

Mikael