Loading Mesh

Started by
2 comments, last by lucky6969 18 years, 4 months ago
Hi, How do I load mesh with only animation controller but without the hierarchy like this D3DXLoadHierarchyFromX (...., &alloc, &m_pframeRoot, &m_pAnimController); to D3DXLoadHierarchyFromX (..., NULL, &m_pframeRoot, &m_pAnimController); I have put a flag to distinquish between those. But the latter case failed to load the animationcontroller because there was no allocatehierarchy. Any hints Thanks Jack
Advertisement
With a Truck without bones but need to animate the flying wheels, what can be done?
Thanks
Jack
Could you not just load it as normal and ignore the &alloc variable after?

Matt
__________________________________[ Website ] [ Résumé ] [ [email=contact[at]matthughson[dot]com]Contact[/email] ][ Have I been Helpful? Hook me up! ]
Hi,
Thanks for your kind reply.
It seemed that D3DXLoadHierarchyFromX without alloc would fail
I animated the flying wheels in MAX and the mesh + animation can be displayed properly in MAX and deep exploration,even mesh viewer. But failed at
D3DXLoadHierarchyFromX, the returned animation controller and frame root were both NULL.
Thanks once again
Jack

This topic is closed to new replies.

Advertisement