Landscape representation

Landscape representation

S_W's picture

What would be a good way to represent a larger landscape scene using a mesh shape?
Would it be better to use a single mesh or divide it into smaller chunks?

Thanks!

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
havokdaniel's picture

Hi S_W,

It's generally better to keep all your fixed geometry in one single extended mesh shape where possible, as once wrapped in a MOPP the collision detection becomes much more efficient.

Thanks,

Daniel

S_W's picture

Would you also recommend to include e.g. buidlings into this single mesh?
Or would it be better to use a simple additional boxshape to represent this building?

Thanks again,
S_W

sean.thurston's picture

Hi S_W,

It would best to do buildings as part of the environment mesh(unless you are going to do something dynamic with the buildings), and just put that into a Mopp. As kind of a rule of thumb, it is best to minimize the amount of individual objects in the broadphase. There's a short section in the docs you can look at in Havok Physics/Collision Detection/Physics Articles/Physics Primer. A little ways down there is a little bit about it. You can also look at Havok Physics/Collision Detection/Creating Shapes/Landscapes. I hope that helps.

Thanks,
Sean

Developer Support Engineer Havok www.havok.com

Login to leave a comment.