Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Best Practice for Collision Detection on Terrain?


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 betastrahler   Members   -  Reputation: 104

Like
0Likes
Like

Posted 09 May 2013 - 02:33 AM

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, 09 May 2013 - 02:34 AM.


Sponsor:

#2 Steve_Segreto   Crossbones+   -  Reputation: 1551

Like
0Likes
Like

Posted 12 May 2013 - 11:46 PM

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.






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