Hope this hasn't been discussed already, I didn't notice it.
As a test I loaded a 3 part x file. Two of the parts were designed to rotate (differently) whilst the 3rd remained static.
In the DX mesh viewer all is fine. In Irrlicht the geometry is fine but the animation is a problem.
All three objects rotate in unison as if the animation info for one object is being used for all three.
Hope you can help. Thanks
Joe
X file animation problem
What do you mean 3 part x file?
...if you splited your model in to the 3 separate files and you loaded them (using parent) than it should not be problem.
...if your model have 3 limbs than you have to make sure that there is only one joint parent to all others, you should avoid having more than one independent joint..
example:
you have ship and its propeller, you want that ship stay static while propeler rotate. You should make firsth joint to which you attach ship vertices, then add one more joint, child to firsth one, to which you attach propeller vertices and animate.
If you would make only one joint for propeller, animation would not work in Irrlicht (as well as any other engine)
The same goes for one joint for ship and other for propeller but both independand on each other.
Also remember that irrlicht can load x files only in text format, not binary.
...hope it helps
...if you splited your model in to the 3 separate files and you loaded them (using parent) than it should not be problem.
...if your model have 3 limbs than you have to make sure that there is only one joint parent to all others, you should avoid having more than one independent joint..
example:
you have ship and its propeller, you want that ship stay static while propeler rotate. You should make firsth joint to which you attach ship vertices, then add one more joint, child to firsth one, to which you attach propeller vertices and animate.
If you would make only one joint for propeller, animation would not work in Irrlicht (as well as any other engine)
The same goes for one joint for ship and other for propeller but both independand on each other.
Also remember that irrlicht can load x files only in text format, not binary.
...hope it helps
Thanks for the reply.
I was a bit tired and didn't explain myself properly. I had 3 objects in 3ds max and made an animation where two of then rotated (differently) and the third stayed static.
I exported this using the panda export.
I presume its because I haven't set up the joints so I'll have to look into that.
Joe
I was a bit tired and didn't explain myself properly. I had 3 objects in 3ds max and made an animation where two of then rotated (differently) and the third stayed static.
I exported this using the panda export.
I presume its because I haven't set up the joints so I'll have to look into that.
Joe
Well I sorted out the hierachies in max which seems to make the programme happier in terms of frames.
However, now there's no animation. The strange thing is that I've stepped through the engine and as far as I can tell the animation is being performed but nothing moves.
Anyone with any ideas? Works fine in mview.exe
Thanks
Joe
However, now there's no animation. The strange thing is that I've stepped through the engine and as far as I can tell the animation is being performed but nothing moves.
Anyone with any ideas? Works fine in mview.exe
Thanks
Joe
Are you sure that your x file is in text format?
...also check what is displayed in console vindow when loading your model.
...I have no other idea ...if you want you can try to send me miserable file and I can check it out... arras@pobox.sk or upload it somewhere...
...also check what is displayed in console vindow when loading your model.
...I have no other idea ...if you want you can try to send me miserable file and I can check it out... arras@pobox.sk or upload it somewhere...
Thanks for your help arras,
I've uploaded two files:
http://www.nyrsound.com/JoeTemp/AnimatedPanda.X
http://www.nyrsound.com/JoeTemp/AnimatedAfterMView.X
The difference being the second file has been resaved in MView (saw that trick on this board). This does actually help with a little geometry problem in the first but doesn't sort out the animation and almost doubles the size.
Thanks for any help you or anyone else can give.
Joe
I've uploaded two files:
http://www.nyrsound.com/JoeTemp/AnimatedPanda.X
http://www.nyrsound.com/JoeTemp/AnimatedAfterMView.X
The difference being the second file has been resaved in MView (saw that trick on this board). This does actually help with a little geometry problem in the first but doesn't sort out the animation and almost doubles the size.
Thanks for any help you or anyone else can give.
Joe
OK I was downloading them both but was not able to figure out the problem.
In my viewer models look OK but shove that animation have 0-0 frames, means there is animation but without frames or there is only one frame number 0.
AnimatedPanda.X is loaded with some error mesages but they dont make sense to me.
Second file loads without them.
When I load models in to the Irrlicht they are deformed both strangely (objects changed position) and shove no animation.
Cant tell you more ...if I find out something I'll let you know.
Did you use max to make models?
In my viewer models look OK but shove that animation have 0-0 frames, means there is animation but without frames or there is only one frame number 0.
AnimatedPanda.X is loaded with some error mesages but they dont make sense to me.
Second file loads without them.
When I load models in to the Irrlicht they are deformed both strangely (objects changed position) and shove no animation.
Cant tell you more ...if I find out something I'll let you know.
Did you use max to make models?
Yes I use max 5
The positions problem has been raised in another thread. Niko acknowledged the problem so I presume it'll be cured soon.
I still don't know what's going on. I've tried lots of different options in the Panda export and it doesn't make a difference. Its annoying because MView.exe is always happy.
Thanks for looking at my files arras.
Joe
The positions problem has been raised in another thread. Niko acknowledged the problem so I presume it'll be cured soon.
I still don't know what's going on. I've tried lots of different options in the Panda export and it doesn't make a difference. Its annoying because MView.exe is always happy.
Thanks for looking at my files arras.
Joe