Jump to content
  • Advertisement


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


Terrain Following

This topic is 5934 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

How do I figure out the height on a certain spot over my terrain? All I can find on the internet about this are stpuid overviews of crap and no algorithms or code.

Share this post

Link to post
Share on other sites
Well the way I do it is first find which quad I''m over on the terrain and using a little but of ray tracing to find out how high it it. Finding the quad is pretty easy, just uses a bit of logic. You should be able to figure that out. Ray Tracing isn''t hard either. Just search a round a bit on the forums and google and you''ll be able to find something.

My Site
Come join us on IRC in #directxdev @ irc.afternet.org

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.

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!