View Full Version : Create a multi-views to see 4 projections
05-30-2003, 06:42 PM
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
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.
05-31-2003, 11:01 AM
is a new Tutorial, which Describes Multiple Viewports
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.
06-01-2003, 12:24 AM
Thanks for all your useful help and I am trying it and getting it.Thank you very much.
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).
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.