D3DXSaveMeshHierarchyToFile dont save Texture


I'm saving my animation with D3DXSaveMeshHierarchyToFile

Everything works perfectly...exept that the material as no texture
I go to the file and define the Tiny texture manually in the material and all works fine

I don't use the last parameters, I just put NULL

It seems that others had the same problem, the material saved is not
what is loaded...

The last parameter seems complicated

Is it maybe that the Mesh is not in the Frame Root
But the Mesh is saved...just not the Texture in the material section...
I have the October 2005 Version of the SDK...



Answer this question

D3DXSaveMeshHierarchyToFile dont save Texture

  • Dharmesh Vora

    I found my problem yesterday, my problem was in the loading part
    My Texture was set to Null and didn't saved

    Other people on the net had trouble saving their effect,
    Probably the problem is when you load the effect
    so there is no problem with this function and I dont need the last parameter

    Now my texture is saved with my animation


  • D3DXSaveMeshHierarchyToFile dont save Texture