Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Writing an animated .x file to your own format?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Anddos   Members   -  Reputation: 508

Like
0Likes
Like

Posted 29 May 2014 - 04:38 PM

I am wondering if its possible to write the data from a .x fie to your own binary format and be able to load it in renderscene and play the animaions?,i know how to get vertexdata,indexdata unsure about how the wieghts is handled,does anyone know?


:)

Sponsor:

#2 DiegoSLTS   Members   -  Reputation: 1788

Like
0Likes
Like

Posted 29 May 2014 - 06:13 PM

If you can read and interpret all the data from a .x file you can write that data to another custom file, that's completely possible and that's what any editor of any file format does when "saving as" or "export" is used.

 

If you use a custom format you must be able to write a loader for that format to render it and play the animation.

 

I'm not sure what's that weight you're asking for, I've never used .x files and I've never worked with animations.



#3 Starnick   Members   -  Reputation: 1232

Like
0Likes
Like

Posted 30 May 2014 - 09:32 AM

You can always use a library like Assimp (http://assimp.sourceforge.net/). They have importers (.X is supported) and exporters for many formats. What is returned to you after import is an intermediate scene data structure that is basically a one-size-fits all that will have all your model, material, and animation data. That way you won't have to actually parse the .X file and just write out the data in whatever format your application/output file uses.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS