Jump to content
  • Advertisement
Sign in to follow this  
Manolis

OpenGL Model Cliping

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

Hello again Im writing this program that has a split screen and on each half of the screen I have one model. When I zoom in to the models they become huge and overlap. So I need to set up a cliping window for each of them seperatly... How is that done in OpenGL? Thanx for your help in advance :)

Share this post


Link to post
Share on other sites
Advertisement
Both glViewport and glScissor will define a screen-aligned rectangle for clipping. For split-screen you almost certainly want to use glViewport as that scales the projects/coord system appropriately, as opposed to glScissor which is basically just an extra clip rectangle ontop of whatever you've already got.

Use a stencil test if you need irregular clipping within these.

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!