• 13
• 16
• 27
• 9
• 9

# (Resolved)Frame Transformation Mesh.FromFile

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

## Recommended Posts

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]

##### Share on other sites
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.

##### Share on other sites
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

##### Share on other sites
Is there away I can use Mesh.LoadHierarchyFromFile

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

##### Share on other sites
Yes it can be done using Mesh.LoadHierarchyFromFile
I got it working last night.

Thanks
Steve