Advertisement Jump to content
Sign in to follow this  
tomer_sh

OpenGL stupid question I know

This topic is 4910 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!