Jump to content
  • Advertisement
Sign in to follow this  
betastrahler

Best Practice for Collision Detection on Terrain?

This topic is 1957 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 have build a simple terrain rendering based upon some tutorials i have found. The engine uses geomipmapping and slope-based texturing.

For collision detection, my approach is currently the following: I use a simplified mesh from the original terrain (actually, from the geomipmap). Then i use a quadtree to check for the node the player is in and do a ellipse to poly collision test on the simplified mesh. This works fine, but i am wondering whether this is a comon approach or are there some other, more recommended ways of doing collision detection on terrain?

 

Thanks for any suggestions/comments,

betastrahler

Edited by betastrahler

Share this post


Link to post
Share on other sites
Advertisement

Have a look at any of Frank Luna's excellent books on 3D Game Programming with DirectX and he gives a linear algebra/calculus type of solution that simply needs the heightmap data and uses bilinear interpolation to find the exact y-height at an arbitrary (x,z) location.

Share this post


Link to post
Share on other sites
Sign in to follow this  

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