Using GLOrtho to view Side, Front, Top perspectives of a 3D scene

Posted by talldan on Stack Overflow See other posts from Stack Overflow or by talldan
Published on 2010-03-19T11:08:48Z Indexed on 2010/03/19 11:11 UTC
Read the original article Hit count: 328

Filed under:
|

Dear all,

I'm building a game level editing app as part of a university project. In my application I have multiple viewports, a Perspective viewport and three orthographic views all setup to view the same scene.

I've successfuly setup the orthographic views and can translate and scale them to mimic scrolling and zooming. Unfortunately, I'm having one problem - my scene still contains 3 dimensions, so objects viewed in orthographic mode of certain depths are clipped when they fall outside of my clipping volume.

Most 3D authoring tools or level editors allow you to view all objects in orthographic mode regardless of depth.

I guess what I need to do is scale my scene in the appropriate dimension so that all values lie between 1 and -1, is there a straightforward way of going about this? Or is there a different better approach.

Thanks very much for your help, Dan

© Stack Overflow or respective owner

Related posts about opengl

Related posts about orthographic