Jump to content
  • Advertisement
Sign in to follow this  
Hunter_Ex

Render model in non perspective mode

This topic is 4504 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

this might be simple but how do i setup a non perspective viewing where i can draw a 3d model but without the perspective like in blender where you choose Orthographic i tried to draw the x,y (z = depth) coordinates of my model in 2d view but didnt succeed is this the correct way or am i wrong? thanks

Share this post


Link to post
Share on other sites
Advertisement
iknow

glOrtho(left,right,top,bottom,znear,zfar)

gluOrtho2D(left,right,top,bottom)

but is that enough

shall i use
glVertex2d to diaply my 3d model?
will lightning work?

Share this post


Link to post
Share on other sites
Quote:
Original post by Hunter_Ex
glOrtho(left,right,top,bottom,znear,zfar)

gluOrtho2D(left,right,top,bottom)

but is that enough

shall i use
glVertex2d to diaply my 3d model?
will lightning work?

Notice please that projection is a mapping from a 3 dimensional space to a 2 dimensional space (in the case of 3D gfx; mathematically it is a general mapping from a space to a space of less dimensions). So in both cases you use glVertex3/glNormal3 routines to supply the 3D geometric scene data to GL as usual. (glVertex2 routines are more common for UI elements and such, since it implies a depth of 0.)

Notice furthur that gluOrtho2D may be not exactly what you are looking for since it restricts the depth range in a fixed way. Stay with glOrtho in general.

[Edited by - haegarr on April 20, 2006 1:32:57 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!