Model Cliping

Started by
0 comments, last by OrangyTang 19 years, 7 months ago
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 :)
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.

This topic is closed to new replies.

Advertisement