Jump to content
  • Advertisement
Sign in to follow this  
tomer_sh

OpenGL stupid question I know

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

I have a problem with this sentence: glVertex3f( 0.0f, 1.0f, 0.0f); glVertex3f(-1.0f,-1.0f, 0.0f); glVertex3f( 1.0f,-1.0f, 0.0f); in all OpenGL examples everything seems normalized, why? are the coords being scaled by some factor? thanks, tomer

Share this post


Link to post
Share on other sites
Advertisement
No. These are not normalized vertices, these are just vertices that happen to have only ones and zeroes in them. It has no purpose besides being perhaps the most simple example one can give for coordinates.

Illco

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Some day before,I have the same question.

I know it was control by these functions.

1./Orthographic Projection
void glOrtho(GLdouble left,GLdouble right,GLdouble bottom,GLdouble top,
      GLdouble near,GLdouble far)

2./Perspective Projection
void glFrustum(GLdouble left,GLdouble Right,GLdouble bottom,GLdouble top,
      GLdouble near,GLdouble far);


if you real understand this two functions,you can catch it.

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!