Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jeppa

please help-me

This topic is 5350 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi! I would want make a editor for my engine with the classic 4 view like Lightwave and so on.I would want load my object into this editor and diplay it into this 4 different view.someone know to make this 4 view and the way to draw into this view?? sorry for my bad english... Thanks Sandro

Share this post


Link to post
Share on other sites
Advertisement
That depends entirely on your API. Typically, you''ll draw the object 4 times, with 4 different positions/transformations.

Typically, on OpenGL, it might look something like:

glViewport( 0, 0, WIDTH/2, HEIGHT/2 );
glClear(...);
glLoadMatrix( whateverViewForViewport0 );
DrawMyObjects();

glViewport( WIDTH/2, 0, WIDTH, HEIGHT/2 );
glClear(...);
glLoadMatrix( whateverViewForViewport0 );
DrawMyObjects();

glViewport( 0, HEIGHT/2, WIDTH/2, HEIGHT );
glClear(...);
glLoadMatrix( whateverViewForViewport0 );
DrawMyObjects();

glViewport( WIDTH/2, HEIGHT/2, WIDTH, HEIGHT );
glClear(...);
glLoadMatrix( whateverViewForViewport0 );
DrawMyObjects();

Share this post


Link to post
Share on other sites
You can use glFrustum() build a perspective matrix for the perspective view, and use glOrtho() for others, they are all orthographic view. The cameras of the 4 view are the same math, you can use gluLookat(),etc.

Hope this help.

[edited by - stephenfx on November 26, 2003 9:11:22 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!