Original Post
I''ve loaded a Q2 model that renders very nicely. But when I try to draw a simple grid in the same scene, colors get mixed up. The model turns green (my color for the grid) and the grid color is black?
Here''s the (pseudo)code =)
public void RenderScene() {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();
glBegin(GL_LINES);
loop through 3dmodel object and draw all its vertexes
glEnd();
glBegin(GL_LINES);
glColor3ub()
draw some vertexes
glEnd();
}
What I really would like to know is :
a) shouldn''t the glClear "reset" the color?
b) if not, how do I avoid turning my model green?
/daniel
