Jump to content
  • Advertisement
Sign in to follow this  
kert

OpenGL Problems with OpenGL-Rendering

This topic is 3891 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi folks, i am trying to render my own small coordinate system which basically consists of: - 3 axis which are 3 GL_LINES glBegin(GL_LINES); glVertex3f(0.0, 0.0, 0.0); glVertex3f(factor, 0.0, 0.0); glEnd(); - for the 3 arrows i use a GLUquadricObj - gluCylinder and gluDisk which i translate to the end of the arrow - the axis names (X Y Z) are textures mapped on quads this works fine...BUT... i have a funny occurence while rotating everything so that i have the impression that the order how i draw the individual objects matters somehow to the rendered result. here are some pictures so that you see what i am talking about: 1) my initial coordinate system - all axis direct out of the screen: http://www.cs.uni-magdeburg.de/~kreinema/pics/coordsys1.gif 2) i rotate the system and x directs out of the screen: http://www.cs.uni-magdeburg.de/~kreinema/pics/coordsys002.gif 3) i rotate again but x directs into the screen... http://www.cs.uni-magdeburg.de/~kreinema/pics/coordsys003.gif" as you can see image 2) and 3) look pretty much the same. what i did: i put all the individual objects on a matrixstack in the following order (in code): 1) XYZ textures on quads 2) gluDisk followed by gluCylinder 3) axis lines has anybody an idea why i have this kind of phenomenon? if i draw the objects in different orders they occlude each other... thanks a lot. kerstin.

Share this post


Link to post
Share on other sites
Advertisement
i found out that sometime before i do all that coordinate stuff i did: glDisable(GL_DEPTH_TEST); shame on me...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!