Using GLOrtho to view Side, Front, Top perspectives of a 3D scene
- by talldan
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