glBegin(GL_TRIANGLES);
glPolygonMode(GL_BACK , GL_LINE);
glVertex3f(-1.0f, -1.0f, -5.1f);
glVertex3f( 0.0f, 1.0f, -5.1f);
glVertex3f( 1.0f, -1.0f, -5.1f);
glEnd();
It's me again, with yet another stupid questions :)
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
put glPolygonMode out of glBegin/glEnd block
You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
Whohooooooooooo it works. Thank you.
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
Bleh, the book does this (so far) only with a message on the windows procedure, so I tried to do it on the code itself just to practice and it''s not working.....(I am talking about antialiasing polygons.....) here''s what I have.....
Maybe I have this out of order or something. Thank you in advance people. ANY help would be greatly appreciated.
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
glPolygonMode(GL_BACK, GL_LINE); glEnable(GL_POLYGON_SMOOTH); glBegin(GL_TRIANGLES); glVertex3f(-1.0f, -1.0f, -5.1f); glEnable(GL_POLYGON_SMOOTH); glVertex3f( 0.0f, 1.0f, -5.1f); glEnable(GL_POLYGON_SMOOTH); glVertex3f( 1.0f, -1.0f, -5.1f); glEnd();
Maybe I have this out of order or something. Thank you in advance people. ANY help would be greatly appreciated.
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
What exactly isn''t working?
The only thing I see wrong is that every glEnable(GL_POLYGON_SMOOTH) after the first one is redundant.
GL_POLYGON_SMOOTH will be enabled forever until you disable it.
The only thing I see wrong is that every glEnable(GL_POLYGON_SMOOTH) after the first one is redundant.
GL_POLYGON_SMOOTH will be enabled forever until you disable it.
the lines are not being anatialised.
(it's not making them smoth like I wanted)
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
[edited by - incognito on March 15, 2003 8:37:21 PM]
(it's not making them smoth like I wanted)
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
[edited by - incognito on March 15, 2003 8:37:21 PM]
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
You probably need to turn on line smoothing instead of polygon smoothing since you''re telling it to draw lines.
"Walk not the trodden path, for it has borne it's burden." -John, Flying Monk
Thank you.
Yeah it works that way, weird....another Q is
glHint(GL_LINE_SMOOTH, GL_NICEST);
supposed to be called before calling
glEnable(GL_LINE_SMOOTH); or after?
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
[edited by - incognito on March 15, 2003 8:53:43 PM]
Yeah it works that way, weird....another Q is
glHint(GL_LINE_SMOOTH, GL_NICEST);
supposed to be called before calling
glEnable(GL_LINE_SMOOTH); or after?
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
[edited by - incognito on March 15, 2003 8:53:43 PM]
PROGRAMMING IS THE FUTURE........ THE FUTURE IS HERE!!!!!!!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement