Page 1 of 1

.X-File won't animate with Bones

Posted: Fri Nov 17, 2006 9:05 pm
by jAyTeA
Hi,

I have an export of a model with bones from 3ds max.

But when I want to get it into irrlicht, it isn't bone-animated, it just hops up and down.
I have tried several export-configurations, but the only thing that changes is the height, the model springs.

The model is animated correct and the animation works fine inside of 3ds max.

Any ideas?

Thanks in advance

Posted: Fri Nov 17, 2006 11:26 pm
by Redemption
Try multiplying the frames in the FrameLoop function by 160 and setting the animationspeed to 4800 (30 fps * 160).

Posted: Sat Nov 18, 2006 12:01 am
by jAyTeA
I have done this already!

That is only a problem, when the file is exportet with 3ds max ticks. Otherwise the animationspeed is correct!

It has to be something with the bones!

Posted: Sat Nov 18, 2006 1:01 am
by bitplane
save without hierarchy, open in mview and save again, if it works in mview but not irrlicht, please post a link to your mesh (or upload it to the bug tracker) for investigation

Posted: Sat Nov 18, 2006 12:34 pm
by jAyTeA
Ok, i have opened it with mview, but it don't work there too!
It moves in mview as i explained in the beginning post.

So there must be a problem with the exporter.
Any idea, what i have done wrong?
I have the panda x-exporter in 3ds max 8.

Posted: Sat Nov 18, 2006 1:12 pm
by bitplane
hmm sorry I can't help with max settings, but you could try these instructions-
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=16998

Posted: Sun Nov 19, 2006 2:27 pm
by jAyTeA
hmm, I have a problem with this instruction.

When i try to export the model in .fbx 3ds max crashs.
A friend has tried it, but has the same problem!

I start to get really frustrated with this animated things!

Posted: Sun Nov 19, 2006 4:07 pm
by belfegor
Could you upload a model and post link so i can try it
i had also crashes with some options turned on or off(dont remember witch one) but those "instructions" worked for me.If i get it to work i'll post link here + with my model(3ds scene - character with biped & exported) if you like but i need 2-3 days because i dont have internet on my PC.

Posted: Sun Nov 19, 2006 4:51 pm
by jAyTeA
I have send you a pn with the link to the model.

thank you for your help!

Posted: Sun Nov 19, 2006 5:17 pm
by belfegor
i got it.Ill try it soon as posible and send you pm with my models to.

Posted: Mon Nov 20, 2006 3:30 am
by luckymutt
If you want someone else to take a look at it, I'd be glad to.

Meanwhile, what version of Max and Service Pack are you using.
Also, are you using the *.fbx exporter that came with Max, or the new shiny one they have posted on Autodesk after they aquired Alias/Maya?

Posted: Mon Nov 20, 2006 1:44 pm
by jAyTeA
i have tried this modell under the 3ds max 8 trial!
The .fbx-exporter i use is the one that came with max.
So where can i get the new exporter?

Posted: Tue Nov 21, 2006 9:21 pm
by belfegor
This was a tricky one.First when i opened model it has
“skin” modifier and “mesh smooth”(i didnt get that to work with irrlicht)
and my post in “How to...” was abot geting “biped to irrlicht bones animation”
becase i never use “skin” i only used “biped”.So i deleted everything except model
and converted model to editable poly.
Then i positioned biped and apply physique modifier, load a “.bip” file with animation
and cut of unused frames.
In hiearchy tab (with model selected) click on the button “reset pivot” (i read this in help
file that it should be done before exporting to “.fbx” – shame on me i didnt read it earlier)
and exported it to “.fbx”(one that come with max) with same options as in “How to...”
Reset scene load same “.fbx” and for my suprise your model looked ok oposite to
mine when i imported it. Then i exported it with “Panda” (same option as in
“How to..” except i had to check checkbox “Include animation options”
in “XFile Settings” tab (drop down menus are: “closed” and “Spline Positions”)
otherwise i get bad results.Then i load that “.x” in “MView” and save it from there
to “.x”(without this in irrlicht i get no animation i only get duplicated model (first
one in “figure mode” second in “first frame” freezed)).You got pm with
link to zip archive(“your_model_with_biped.max”, “SneakLoop.bip”, “your_model_exported_x_irr.x” and “test_x_bones_animation.cpp”) the size is about 700KB i hope i didnt forget something to mention and i hope that my english is readable.Tell me if somethings wrong.

note:i used default biped for quick test your model althought you should make
better one(its posible to make nonhuman bipeds) to fit your model structure.
you can find some free “.bvh”(motion capture files) and “.bip” files by
googling for reference.

Posted: Tue Nov 21, 2006 11:01 pm
by jAyTeA
ok, first of all, thank you!!

I didn't know anything about this biped animation. So i thought your howto was for generel animated characters. My fault :oops:

I have tried to export the original model to fbx after reseting pivot, but it still didn't work. So I think the exporter has problems with the bones.

Anyway, thanks for your help! I will search for that biped files and hopefully get better results than with the bones^^

Posted: Wed Nov 22, 2006 12:55 am
by belfegor
i deleted my last post because of misunderstood your last post.
hope that you get things working.