Find Child with LoadMesh and LoadAnimMesh

Blitz3D Forums/Blitz3D Programming/Find Child with LoadMesh and LoadAnimMesh

KuRiX(Posted 2005) [#1]
Hi friends. I am using 3dsmax with b3d pipeline exporter. I always export the same way, but when loading:

LoadMesh and countchilds returns 2 childs
LoadAnimMesh and countchilds return the correct number of childs.

I think this is a b3d problem, not a exporter problem. And the collision data is not good with LoadAnimMesh.

So, for a big scene mesh, i need to load the mesh with LoadAnimMesh to get the childs i need, then free the mesh, then reload with loadmesh and set the collision.

Any Solution?


Beaker(Posted 2005) [#2]
That is correct behaviour.

LoadAnimMesh returns all hierarchy, LoadMesh collapses meshes where possible. Collision should work fine with LoadAnimMesh, but you might have to apply it to all children. This might help:
http://www.blitzbasic.com/codearcs/codearcs.php?code=796


KuRiX(Posted 2005) [#3]
Hey, thanks, and you gave me an idea! (apply to all children). That is great, i can decide what meshes of my scene will collide!

Testing it now!!!