Currently, I use the '.x'(dx)format for my model.
The models are exported by the Panda DirectX Max Exporter plugin(for 3ds max), and I noticed that for the animation frames, the plugin can divided them into several parts, such as you can choose the first 15 frames for part 1 with a tag 'walk', and 15`30 frames for part 2 with a tag 'run' .etc.
But my problem is, how to read them in irrlicht? How to read animation by tag?
How to read different animation frame from '.x' file?
Re: How to read different animation frame from '.x' file?
I don't think we have that so far. So the only solution is writing down the numbers.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: How to read different animation frame from '.x' file?
Export all the animations as a single large animation and change the frameloops from within the application.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Re: How to read different animation frame from '.x' file?
OK, export the whole animation and set the frameloops is what I did so far. However there are many models which have same animation parts with different length. For instance, I have 4 models for 'charactor', they all have four animation part: run, walk, idle and jump, but for each model, the length of every frameloop is different. So I have to write a xml file to discribe it.
Just a little tedious..I think...
Just a little tedious..I think...
Re: How to read different animation frame from '.x' file?
Then don't write XML
Re: How to read different animation frame from '.x' file?
In the end it is much more useful to have an XML, you can store other stuff, besides the frame loops
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt