Jump to content
  • Advertisement
Sign in to follow this  
AlexSud

OpenGL Default Projection set up?!

This topic is 3149 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

Hey everyone. I've been trying to solve one wird problem latey...The thing is that i've got a proper perspective in my scene but the thing that i don't have any glFrustum,gluPerspective,glOrtho etc. calls!I don't know if it makes any difference but i'm writing an application using Qt (it supports OpenGL),i thought that maybe there was some kind of "default" settings or smth,but didn't find anything.It would be great except for the fact that i can not affect it anyhow,i mean,for instance i can not adjust it's clipping bounds and basically any other projection properties.Maybe you guys know what might be the problem.Thanks!

Share this post


Link to post
Share on other sites
Advertisement
(Assuming Qt 4.6) are you calling those gl and glu functions between
QPainter::beginNativePainting()
and
QPainter::endNativePainting()
?

See the "boxes" demo for an example of how to do it correctly. Since Qt's painting engine itself uses OpenGL you may also have to set the matrices every frame.

Share this post


Link to post
Share on other sites
Thanks for reply.
Hm,well i'm not actually using QPainter in my widget,because i'm rendering with OpenGL only."Grabber" demo uses the similiar approach,but in their case glFrustum function is called and it seems to work fine,so will try to find a bug.

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!