Jump to content
  • Advertisement
Sign in to follow this  
Matt Aufderheide

Hardware displacement and collision

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

(This may not be exactly the correct forum, but involves shaders and graphics programming, so i think its appropriate.) My problem is how to best determine collisions when using geometry clipmaps, or essentially, terrain with hardware displacement mapping through vertex textures. One cant use normal collision methods when using vertex displacement, so some other, possibly shader-based system may have to be employed. The main problem is to determine the correct height for various objects, and to handle collision with the terrain. While objects can certainly be displaced in the same way as the terrain, perfectly matching the terrain height, this height shift exists only in hardware, and has no meaning for the game/app code. my first thought was to use the heightmap to determine object placement and detect collison, but this has proven unsatisfactory because the height calculated in the game according the heightmap seems not to always corrispond exactly with the displaced terrain. Now i wonder perhaps if collision can be determined in hardware, using a simple vertex shader, and return the data using a small floating point render target.. How have others dealt with this issue? Am i missing something?

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!