In a SDI or MDI project,how to create multiple views to browse my 3d object at 4 projections :XY,XZ,ZY,ISO?Could you please teach me ?Where can I find the samples code ?thank you

shinpaughp

05-30-2003, 11:09 PM

Sounds like you are writing a CAD application. Simplest way is to create 4 views, use gluLookAt to change the eye position to be looking down x, y, z axes (positive or negative). For isometric not sure of the exact angles but I believe a 45 degree rotation about the y axis and 30 up rotation about the x axis will probably work for your eye position.

DanDanger

05-31-2003, 11:01 AM

on http://nehe.gamedev.net
is a new Tutorial, which Describes Multiple Viewports

gator

05-31-2003, 12:13 PM

If you're using MFC, I guess you can use the CSplitterWnd class.

Or maybe you can just create one big view, and split the OpenGL viewport up,
so it looks like multiple views.

opengllover

06-01-2003, 12:24 AM

Thanks for all your useful help and I am trying it and getting it.Thank you very much.

marcus256

06-01-2003, 09:34 AM

The source distribution of GLFW (http://hem.passagen.se/opengl/glfw) has a simple demonstration of just that (four views, using four viewports/scissor areas in the same GL context/window).