Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Writing an animated .x file to your own format?

4: Adsense

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   

588
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?


:)

#2 DiegoSLTS   Members   

2113
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   

1870
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.