As for the actual shape, I had a choice between the btBvhTriangleMeshShape and the btHeightfieldTerrainShape. The latter was, according to performance and the name, definitely the one preferred. However! I found out that the heightfield centers based on the bounding box, meaning there was little to no hope of me being able to match the terrain rigidbody with the actual terrain. Bullet has little to no explanation or help on the matter online (as usual), so I'm sticking with the btBvhTriangleMeshShape regardless of the insane amount of performance loss during initialization. At least until something works.
And luckily enough, the terrain works and does not slow down during the actual rendering cycle, along with a great reaction to the fog shown below:
Seems perfect for a bit of snow. I'm thinking a post-processing effect will be ideal for the situation.
No comments:
Post a Comment