Jump to content

  • Log In with Google      Sign In   
  • Create Account


terrain question opengl game prog book


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 boldyman   Members   -  Reputation: 138

Like
Likes
Like

Posted 27 August 2001 - 10:12 PM

Hello, Im playing around with code from chapter 8. Does anyone know how to get the height from the terrain at camera position. Thanks Boldyman

Sponsor:

#2 Capn   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 August 2001 - 04:58 AM

Hey. Since you prolly wanna stay with the books code, take a look at chapter 20''s source code. Theres a function called GetHeight(). With a little editing you can get it to work with a heightmap and stuff (like replacing terrMult with MAP_SCALE and so on).










"Insane people are always sure that they are fine. It is only the sane people who are willing to admit that they are crazy."





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS