btBvhTriangleMeshShape + instances
Posted: Mon May 29, 2017 3:34 pm
Hi,
imagine the following case: HW instancing is being used in order to render 10 instances of the same street light 3D model (i.e. one mesh being rendered 10 times).
Is there a way to create one single btBvhTriangleMeshShape object, and reuse it across the different instances (of course with a different position for each instance) ?
If not, what would be the best way of doing thing, while trying to avoid having to create 10 btBvhTriangleMeshShape objects, or creating on single btBvhTriangleMeshShape built using the merged geometry of the 10 instances (i.e. duplicating vertices 10x to create one single mesh containing duplicated geometry) ?
Is that achievable in one way or another ?
Thanks a lot
Greg
imagine the following case: HW instancing is being used in order to render 10 instances of the same street light 3D model (i.e. one mesh being rendered 10 times).
Is there a way to create one single btBvhTriangleMeshShape object, and reuse it across the different instances (of course with a different position for each instance) ?
If not, what would be the best way of doing thing, while trying to avoid having to create 10 btBvhTriangleMeshShape objects, or creating on single btBvhTriangleMeshShape built using the merged geometry of the 10 instances (i.e. duplicating vertices 10x to create one single mesh containing duplicated geometry) ?
Is that achievable in one way or another ?
Thanks a lot
Greg