Jump to content
  • Advertisement

Archived

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

CaptCanada

OpenGL OpenGL SuperBible programs

This topic is 5545 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 all, I am using the SuperBible to learn the basics of OpenGL and in it there is a terrian program, from Chapter 8. The terrain programs are not running properly, as the terrain is supposed to bank and pitch when I use the mouse but all that happens is that the terrain gets all skewed. Anyone who is using this book who can shed some light on the situation would be great. Thanks, Don P4 2.4 512 PC2700 ATI Radeon 9600 Pro Catalyst 3.6 DX 9.0b

Share this post


Link to post
Share on other sites
Advertisement
I had problems with the terrain programs, too. I don''t think any of them worked properly when I was using the book. Try going through the code and seeing where the authors went wrong

You might also want to try the book''s website, to see if any updates were posted...

[Insert witty signature here]

Share this post


Link to post
Share on other sites
Hehe, if I could go thru the code and see what is wrong, then I would be making the Doom III killer app! LOL

Seriously, I am a newbie OpenGL programmer and wouldn''t be able to tell what parts of the code are good and/or bad.

Thanks for the help though,

Share this post


Link to post
Share on other sites
i dont have the book, but maybe the view perspective or ratio is incorrect or something

check to make sure its 45.0f, which is common

im kind of new to open gl too, so if this doesnt make sense, check out some nehe.gamedev.net stuff, and you''ll see that while intializing opengl, there is a function called to specify how the camera see''s stuff, and fov needs to be 45.0f.... you can change this number to achieve effects like fish eye lens and other stuff.

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.

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!