Jump to content
  • Advertisement
Sign in to follow this  
phani433

OpenGL problem with viewing entair scene

This topic is 2340 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 , i am new to opengl.i just created a cube example for small values it is showing the cube properly but when i gave big values to x &y i am un able to see where it is adding to the scne.i just want to see a perticular area in the scene (0,0,100000,100000) my lower left is 0,0 and upper right is 100000,1000000 that much area i want to see ..some one please tell me is there any function to fix this?

Share this post


Link to post
Share on other sites
Advertisement
your cube probably went outside the frustum and since probably faces are backculled you can't see faces from inside the cube. Even without backface culling is probable that you don't see it because if it is too big and totally outside your frustum view there is nothing that will be drawed.

Share this post


Link to post
Share on other sites
Try glDisable(GL_CULL_FACE) to enable rendering of both front facing and back facing faces.
Also (0,0,100000,100000) is too much, you will have problems with floating point accuracy, please use smaller values.

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!