Which shape to use for landmass data?

minghia
Posts: 13
Joined: Wed Feb 24, 2010 5:46 am

Which shape to use for landmass data?

Post by minghia »

I have some Level 1 DTED data and I was wondering what shape to use to allow testing for collision with it? Obviously the terrain will be static but I will some dynamic vehicles moving around either in the air or at sea level. I have had a look at btHeightfieldTerrainShape but it seems to only useful for a single 2^n +1 sized tile.
I will also have some sea bottom data mostly likely in S57 chart data that I also want to check for a vessel hitting the sea bottom.

Any help would be most appreciated.

Tony Vasile
David20321
Posts: 17
Joined: Sat Mar 13, 2010 10:08 pm

Re: Which shape to use for landmass data?

Post by David20321 »

I suspect you will either have to convert your data into a heightfield and use the btHeightfieldTerrain shape, or triangulate it and use a btBvhTriangleMesh shape.