View Full Version : Flat and Smooth Shade

Louis Wychkraft
03-07-2004, 04:03 AM
i have drawn a shape using following parametric eqns:
drawn using GL_QUAD_STRIP and 4 vertices. in 2 for-loops and it looks perfect in wire frame mode. however, when render in flat/smooth shade, only the wires have the effect and not the entire polygon. i know it has something to do with my normals but i dont know what exactly is wrong... i used the crossproduct formula in the redbook. anyone pls help and if need my code i will be glad to send to u... thks.

03-07-2004, 05:19 AM
Hi !

Make sure you have the coordinates in the correct order for the strips, if you get them wrong some triangles/quads may have the wrong winding order and this can mess up the result.