PDA

View Full Version : Help me about draw polygons



aero
08-19-2001, 05:45 PM
A sphere was approximated by lots of trianguations,each patch has its own color,
I want to implement 2 tasks: 1 is to draw this sphere with those different color triangulations, a problem is how to cull the back hemisphere? The sphere could be rotate.
I've use glEnable(GL_CULL_FACE);
glFrontFace(GL_CW);
glCullFace(GL_BACK);
so how to determinate the vertex order(CW or CCW).
2. is do draw those triangulations with different height, using their color luminance as the height, some one can give a tip how to do this? Since the sphere is already 3 dimension.