Jump to content
  • Advertisement
Sign in to follow this  
Steve5050

(Resolved)Frame Transformation Mesh.FromFile

This topic is 3834 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

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 this post


Link to post
Share on other sites
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.

Share this post


Link to post
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 this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
I can answer this myself.
Yes it can be done using Mesh.LoadHierarchyFromFile
I got it working last night.

Thanks
Steve

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!