PDA

View Full Version : Lines that disapear.



sela_lerer
05-11-2003, 06:07 AM
I draw line like this:
glColor3f(0.0f,0.0f,1.0f);
glBegin( GL_LINES );
glVertex3f( 0.0f, 0.0f, -1.0f );
glVertex3f( 0.0f, 0.0f, 1.0f );
glEnd();
When the lines are alone on the view everything is fine, but when I use:
GLUquadricObj* obj;
obj = gluNewQuadric();

gluSphere(obj,0.5f,16,16);

gluDeleteQuadric(obj);
At the begining everything looks fine, but when I refresh the view (for exemaple:when I move the window), the lines become dark, almost invisble. Does any body know why?

nexusone
05-11-2003, 07:28 AM
Really not enought information for us to go on, could be lot's of things.
Post your display code so we can take a look!
Also you refresh code, could be something in there.


Originally posted by sela_lerer:
I draw line like this:
glColor3f(0.0f,0.0f,1.0f);
glBegin( GL_LINES );
glVertex3f( 0.0f, 0.0f, -1.0f );
glVertex3f( 0.0f, 0.0f, 1.0f );
glEnd();
When the lines are alone on the view everything is fine, but when I use:
GLUquadricObj* obj;
obj = gluNewQuadric();

gluSphere(obj,0.5f,16,16);

gluDeleteQuadric(obj);
At the begining everything looks fine, but when I refresh the view (for exemaple:when I move the window), the lines become dark, almost invisble. Does any body know why?



[This message has been edited by nexusone (edited 05-11-2003).]