Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

terrain question opengl game prog book

4: Adsense

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   

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

#2 Capn   Members   

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.