[Solved] Quick question about Bullet and Irrlicht terrain
Posted: Fri Aug 23, 2013 11:30 pm
I'm pretty sure this kind of question has already been asked but it's hard to find something relevant so here's my problem :
I'm loading an Irrlicht terrainscenenode with a flat heightmap and a texture, and I setup bullet to make it a static plane to let some boxes fall on it. The problem is that when the boxes fall they go through the texture and stop on an invisible plane below it. I think the problem comes from the plane because the boxes textures and their physics correspond. I'm a bit confused because the Irrlicht collision detector is set at the same height than the plane texture but bullet says that the "real" plane is below.
So I'm wondering if it's because my heightmap suck (I made it with Blender). Do I need a full black or full white heightmap to get the texture corresponding with the height ? Or maybe it's something else ?
I'm loading an Irrlicht terrainscenenode with a flat heightmap and a texture, and I setup bullet to make it a static plane to let some boxes fall on it. The problem is that when the boxes fall they go through the texture and stop on an invisible plane below it. I think the problem comes from the plane because the boxes textures and their physics correspond. I'm a bit confused because the Irrlicht collision detector is set at the same height than the plane texture but bullet says that the "real" plane is below.
So I'm wondering if it's because my heightmap suck (I made it with Blender). Do I need a full black or full white heightmap to get the texture corresponding with the height ? Or maybe it's something else ?