johnny_XP
07-21-2003, 01:35 AM
Hi guys... I'm a beginer and need your help.
I want to draw a 3d cube. The color in each vertexe will be a color depending for a variable that i'm reading from a file. Don't bother about this, just suppose that a want to set each vertex to a random color. How i can do that? I used e nested for loops for x,y and z codrinate and used the glVertex3f(x, y, z) in each (x,y,z) but that produces no result....
Thanks for any answers...
I want to draw a 3d cube. The color in each vertexe will be a color depending for a variable that i'm reading from a file. Don't bother about this, just suppose that a want to set each vertex to a random color. How i can do that? I used e nested for loops for x,y and z codrinate and used the glVertex3f(x, y, z) in each (x,y,z) but that produces no result....
Thanks for any answers...