.X-File won't animate with Bones

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
jAyTeA
Posts: 36
Joined: Wed Sep 06, 2006 7:50 am
Location: Hattorf am Harz, Germany

.X-File won't animate with Bones

Post 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
Redemption
Posts: 13
Joined: Sat Nov 11, 2006 1:31 pm

Post by Redemption »

Try multiplying the frames in the FrameLoop function by 160 and setting the animationspeed to 4800 (30 fps * 160).
jAyTeA
Posts: 36
Joined: Wed Sep 06, 2006 7:50 am
Location: Hattorf am Harz, Germany

Post 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!
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post 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
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
jAyTeA
Posts: 36
Joined: Wed Sep 06, 2006 7:50 am
Location: Hattorf am Harz, Germany

Post 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.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post 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
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
jAyTeA
Posts: 36
Joined: Wed Sep 06, 2006 7:50 am
Location: Hattorf am Harz, Germany

Post 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!
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post 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.
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
jAyTeA
Posts: 36
Joined: Wed Sep 06, 2006 7:50 am
Location: Hattorf am Harz, Germany

Post by jAyTeA »

I have send you a pn with the link to the model.

thank you for your help!
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

i got it.Ill try it soon as posible and send you pm with my models to.
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
luckymutt
Posts: 453
Joined: Sun Mar 06, 2005 11:56 pm
Location: C-Ville

Post 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?
Join us in the Irrlicht chatroom:
[url]irc://irc.freenode.net/irrlicht[/url]

I love deadlines. I like the whooshing sound they make as they fly by. -D.Adams
jAyTeA
Posts: 36
Joined: Wed Sep 06, 2006 7:50 am
Location: Hattorf am Harz, Germany

Post 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?
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post 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.
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
jAyTeA
Posts: 36
Joined: Wed Sep 06, 2006 7:50 am
Location: Hattorf am Harz, Germany

Post 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^^
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

i deleted my last post because of misunderstood your last post.
hope that you get things working.
Small FPS demo made using Irrlicht&NewtonDEMO
InfoHERE
Its at very early stage but i think im crazy enough to finish it all alone.
Post Reply