(Resolved)Frame Transformation Mesh.FromFile

Started by
4 comments, last by Promit 15 years, 10 months ago
Hi, Using Vb.net 2003 and Dx9.0c I have a mesh class very similar to dxmutmesh in the sample framework. I need to get the Frame Transformation matrices out of the .x files This class uses the Mesh.FromFile method like:

 Filename = MediaUtilities.FindFile(Filename)

        SystemMemoryMesh = Mesh.FromFile(Filename, MeshFlags.SystemMemory, Device, AdjacencyBuffer, Mat)


Is there anyway to get the Frame Transformatiom matrices so that I can use them without having to read the file again. Thanks Steve [Edited by - Steve5050 on June 20, 2008 12:46:00 PM]
Advertisement
I'm not very familiar with VB. However, the docs for FromFile state:

"If the file contains a frame hierarchy, all of the transformations are applied to the mesh."

which implies it generates no frame info.

If you're intending to use a skinned mesh, I think you should be looking at LoadHierarchyFromFile.

Please don't PM me with questions. Post them in the forums for everyone's benefit, and I can embarrass myself publicly.

You don't forget how to play when you grow old; you grow old when you forget how to play.

Hi again,
I can't use LoadHierarchyFromFile,In my other posts on here
I was trying for months trying to get animation working but
it would never work and I don't want to revisit the issue
because there never was a solution.

I am going to have to find a way to use the transformations.
I know what they are,I don't need worry about finding them or
about the Hierarchy because I found a way to deal with that part.

Being that I know what they are is there a way get at them.

Thanks
Steve
I'll ask this also.
Is there away I can use Mesh.LoadHierarchyFromFile
to just load a model?

I'm going to try and see if I can work on that, I haven't
seen anybody using Mesh.LoadHierarchyFromFile other than
with the skinned mesh sample.

Thanks
Steve
I can answer this myself.
Yes it can be done using Mesh.LoadHierarchyFromFile
I got it working last night.

Thanks
Steve
Care to elaborate on what you did to make it work?
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.

This topic is closed to new replies.

Advertisement