Jump to content
  • Advertisement
Sign in to follow this  
lucky6969b

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

This topic is 435 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!