Jump to content
  • Advertisement

Archived

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

venomelektro

Tut #10 finding camera position

This topic is 5747 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 '' m new to open GL programming, I working on tutorial #10 , i '' ve modified the code to allow multiple sectors and textures , and adding some sounds But there is something that I m not understanding with the scene movements : I ve added this code (using glprint of tut #17) to show the x and z position of the camera : *********** char * format = "X pos"; char printable[255]; sprintf(printable,"%s : %d",format, xpos ); glPrint(10,50, printable); format = "Z pos"; sprintf(printable,"%s : %d",format, zpos ); glPrint(10,10, printable); ********* Doing thing I was thinking I will get the camera position but the (xpos and zpos ) values that I get moving fast from -2000000000 to 20000000 I think that there is something I still don''t understand this movement Is anybody know how to get the camera position from the original variables from the tutorial ??? Thanx in avance VenomElektro

Share this post


Link to post
Share on other sites
Advertisement

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