SharedMesh and models

Hi,



is it possible to use SharedMesh with a MS3D model or similiar?

I tried, but SharedMesh needs a TriMesh as parameter, and from modeloading I just have a Spatial…



Thx for you help

Test if your spatial is a TriMesh or Node and then use SharedMesh or SharedNode accordingly.  Animation may be an issue, but otherwise should work ok.

So it's possible for this to work? I tried this a while back with SharedNode and I was able to get two models to display at different world locations with different animations, but the z order was funky. Parts of the mesh were being drawn on top of other parts, when they should have been obscured, so I gave up.

sounds like a zbufferstate issue rather than anything related to being shared?