• Advertisement
Sign in to follow this  

[Assimp] Loading mesh hierarchy as one chunk of static mesh?

Recommended Posts

Can I assume when the mesh is collapsed into one chunk,

like the root has no children, then the only mesh is the static mesh I am after?

 

But there is a problem,

when in D3DX (sorry again), I load a hierarchy using D3DXLoadMeshHierarchyFromX

I will get a hierarchy, okay with that.

But I reload the same thing with D3DXLoadMeshFromX, I will get a static mesh out of a hierarchy....

The D3DX has done some magic to collapse the hierarchy into a chunk.

So how is it possible to do the same thing with assimp?

Thanks

Jack

Share this post


Link to post
Share on other sites
Advertisement

I wonder if I could just append the vertex buffer of each LPD3DXMESH to a large mesh?

And the resultant mesh is the static mesh equivalence?

 

Update:

No, I don't think it would work.

Imagine you got 2 meshes.

Say indices of 1,3,2 for the first one

 

Then on the next one, perhaps

It's named 1,3,2 again, which will duplicate the indices

 

Thanks

Jack

Edited by lucky6969b

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Advertisement