Page 1 of 1

[SOLVED] Panda .X animation help required (3DS Max)

Posted: Thu Oct 19, 2006 12:47 pm
by sgt_pinky
G'day,

I downloaded a human *.3DS model from TurboSquid.

I imported to 3DS Max 6, created bones, added a skin modifier, and animated the bones to make the human wave.

I installed the Panda .X exporter plugin that was in the Irrlicht 1.1 zip file.

When I import the .X into my engine, the animation is nothing like my 3DS animation. The human rotates (ie, he does animate, but not correctly).

When I look at the .X file in latest MView.exe, or Deep Exploration, it is perfect - just not when I import it.

Here is the .X file and texture:

http://rapidshare.de/files/37331478/man.zip

Does anyone have any suggestions to help me? I have tried enabling/disabling pretty much every option in Panda exporter - eg, binary/text output, bones, animation, frames sub hierarchy, etc.

Cheers in advance,

Pinky

Posted: Thu Oct 19, 2006 4:02 pm
by bitplane
First try vermeer's instructions-
http://irrlicht.sourceforge.net/phpBB2/ ... 5&start=15

Try in Irrlicht 1.1

Known problems are- 1) frames with hirarchy, 2) meshes where the first frame is not at position 0.

If it doesn't work, try in the latest SVN irrlicht.
Here's a windows binary and mesh viewer built from svn, for testing x files. I'll update when I get home with X debug turned on (should have done this yesterday)
http://bitplane.net/dump/temp/irrlicht_ ... x_test.zip

If your mesh still doesn't work, please email it to me, along with permission to add it to the tracker as a test case if required.

(I can't download from rapidshare, they don't like my IP address)

Posted: Thu Oct 19, 2006 9:40 pm
by sgt_pinky
Thanks for your reply bitplane.

Ok, I have tried everything that vermeer suggested, but that didn't help. I alleviated my original problem a little bit by making sure that all vertices had bones that controlled them. This is somehow the key to the whole problem I think.

Anyway, here is what it looks like in your .X view (the mesh has been strangely skewed, and it doesn't seem to animate - do I have to click something?):

Image

Here is what it looks like in MView.exe (animating properly):

Image

Here it is in Deep Exploration (animating properly):

Image

And last, but not least, in my testbed (it is actually animating, but obviously not properly):

Image

Try and download the .X from here: click me

Thanks for your help.

Pinky

Posted: Thu Oct 19, 2006 11:43 pm
by funcdoobiest
Resave it in the meshviewer and it works fine, its always worth resaving it in meshviewr, it can iron out some problems!

Posted: Fri Oct 20, 2006 12:05 am
by funcdoobiest
PS Just so you know these are the errors that were being generated whne loading the file without resaving.
Unknown Joint referenced in x file: Bone04
Unknown Joint referenced in x file: Bone07
Unknown Joint referenced in x file: Bone01
Unknown Joint referenced in x file: Bone11
CXAnimationPlayer: Animationtrack without corresponding joint found: Regroup07
CXAnimationPlayer: Animationtrack without corresponding joint found: Regroup07
CXAnimationPlayer: Animationtrack without corresponding joint found: Regroup07
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone01
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone01
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone01
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone04
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone04
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone04
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone07
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone07
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone07
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone11
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone11
CXAnimationPlayer: Animationtrack without corresponding joint found: Bone11
I have had similar errors, the problem always seems to be caused by the expoerter for some reason doing this :

Animation Anim-Bone04 {{ Bone04 }

where the viewer changes it back to:

{ Bone04 } } Animation

in the animation part of the files (I'm no expert on how .x files work but its the bit where it says AnimationKey and then has all the frames), I suppose it is like incorrectly declaring the bone!? I guess you could go and manually edit each by hand but i think a quick resave would be better! :wink:

Posted: Fri Oct 20, 2006 8:00 am
by sgt_pinky
Hey! Good one. You know what, I actually did try that. Obviously not in the correct order :?

Thanks a lot fellas for your help. I love you both - but not at the same time.

Pinks