Hello.
I am looking for a format that supports skeletal animation in irrlicht and can be produced by blender.
I have tried many of them(.obj, .fbx, .dae, .b3d, .3ds) but I didn't have success. The closest attempt was to load an .obj but it didn't display the texture.
Thanks in advance.
Which format can I use?
Re: Which format can I use?
There are a number of posts on this site about exporting from blender. .b3d is generally preferred and .obj is not an animation format. Try using 'Search' or Google for the settings for the blender exporters.
Re: Which format can I use?
Thanks for your answer.
I've been looking in the search tool of this forum and I decided to use the .b3d exporter that comes with supertuxkart.
Now I have other questions. Which is the procedure to load a model from a .b3d file? Do I have to load the model an then animate in my code? or make the animation in blender and the load it in my code? Each .b3d file has only a model or more than one?
I've been looking in the search tool of this forum and I decided to use the .b3d exporter that comes with supertuxkart.
Now I have other questions. Which is the procedure to load a model from a .b3d file? Do I have to load the model an then animate in my code? or make the animation in blender and the load it in my code? Each .b3d file has only a model or more than one?
Re: Which format can I use?
You have to add the animation in Blender - Irrlicht cannot load animations separate from models. I don't know if your last question makes sense.
Re: Which format can I use?
It's also possible to have the mesh and it's animations in different files and then to use ISkinnedMesh::useAnimationFrom. It's a little more work so you only do that if you have to share animations between different models (and they need to have identical skeletons for this to work). You make the animations in Blender, write down the ranges of the frames of each animation and then play those frames in Irrlicht. One b3d file per model.
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: Which format can I use?
Thank you! Now I understand.CuteAlien wrote:It's also possible to have the mesh and it's animations in different files and then to use ISkinnedMesh::useAnimationFrom. It's a little more work so you only do that if you have to share animations between different models (and they need to have identical skeletons for this to work). You make the animations in Blender, write down the ranges of the frames of each animation and then play those frames in Irrlicht. One b3d file per model.
I have only one last doubt, is it possible to to load a skin and a skeleton and then use the bones to animate from the code? I mean, for example, I load a skin of a person and its corresponding skeleton and then from the code I say "rotate bone X using quaternion Y". Sorry if that sounds like science fiction but it would be very cool.
Re: Which format can I use?
Yes, you can also control them by code. I think ISkinnedMesh has a few functions/settings for that. I haven't done that yet myself, but if you search a little around the forum you can find a few threads about that.
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: Which format can I use?
I use .X - it is quite good. But it's not perfect for me because I use IK rig in Blender and the animations sometimes are incorrect.
You can watch my demo video. I use a model from Warcarft III (Arthas)
https://www.dropbox.com/s/38qfi14c8jtgu ... 054_00.avi
You can watch my demo video. I use a model from Warcarft III (Arthas)
https://www.dropbox.com/s/38qfi14c8jtgu ... 054_00.avi
Re-creating Irrlicht with Vulkan: http://irrlicht.sourceforge.net/forum/v ... =6&t=52404