Problem with mixing up IK and normal animations

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
Shadix
Gnoblar
Posts: 9
Joined: Wed Aug 11, 2004 4:28 pm
Contact:

Problem with mixing up IK and normal animations

Post by Shadix »

Hi guys i got a question.I got a small model with 4 animations.In Max , the animations look perfect. I uses both normal bone animations and i used IK solvers.(i mixed them up)
I exported the files ( to both ogre and irrlicht) and in both cases some deformations occured.

Here are screens showing my problem.

Image

Image

Image

Those screens were made in the meshviewer.

I know that i have to set keyframes, so i tell you what i did.
I hided the IKs and the mesh and set a keyframe for all bones on every frame where a change occured.
I tried to delete the IKs but as i did the mesh deformed so i still let them in and exported. What you see on the screenshots is
what i get when moving the model in the meshviewer. And yes, i got the newest versions.
I think the problem is mixing up normal bone animation+ IK solvers.
Is that possible ?
I meen, i successfully exported a model using only bone animations and i successfully exported a model with only IK animations so i fear the problem is mixing up both .

Any suggestions or ideas?
User avatar
Chris Jones
Lich
Posts: 1742
Joined: Tue Apr 05, 2005 1:11 pm
Location: Gosport, South England
x 1

Post by Chris Jones »

is that vertex that isnt moving actually attached 2 the bone?

btw im not a gfx expert...so its just a guess :P
fantastico
Halfling
Posts: 46
Joined: Sat Oct 02, 2004 12:32 pm

Post by fantastico »

My guess would be that the vertex in question doesn't have any weights assigned to it.
Shadix
Gnoblar
Posts: 9
Joined: Wed Aug 11, 2004 4:28 pm
Contact:

Post by Shadix »

no, like i said,
in max, all animations work perfect
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8
Contact:

Post by haffax »

Yes, exact bone weights would be of interest here.
It has to have a weight assigned, else Ogre wouldn't even load the mesh, but it seems to do so.

Look at your mesh.xml file you will find a section that looks like this:

Code: Select all

<boneassignments>
   <vertexboneassignment vertexindex="0" boneindex="27" weight="0.17862"/>
   <vertexboneassignment vertexindex="0" boneindex="28" weight="0.795565"/>
   <vertexboneassignment vertexindex="0" boneindex="29" weight="0.0256029"/>
   ...
   ...
</boneassignments>
The values after weight all have to be in (0,1]. If one of those is exactly 0 or very, very small for all assignments of the same vertexindex, then something is wrong with this.

I don't know how to fix this in 3dsmax though. :(
team-pantheon programmer
creators of Rastullahs Lockenpracht
Shadix
Gnoblar
Posts: 9
Joined: Wed Aug 11, 2004 4:28 pm
Contact:

Post by Shadix »

I checked vertice 316 , that`s a vertice in the right hand, the hand which deforms and it got an assigned bone. The value for this bone is 1,0.
I guess it should work then, at least for that vertice, but it doesn`t : ((
is that vertex that isnt moving actually attached 2 the bone?
And to clarify this ! It`s not only one vertice which isn`t moving , it`s the whole hand... + The hand got one bone. So it seems that just that one hand-bone is the reason for the deformation. Maybe that extra info can help solving my problem : ( ?
blue5teel
Gnoblar
Posts: 5
Joined: Mon Sep 05, 2005 12:38 am

Post by blue5teel »

i did have a similar problem....

my animation looked very well in max but after exporting it i had these meshdeformations .....

someone told me that the exporter cannot export IK and that mirroring parts of your character(for example the arm) could cause these problems.

i hopei could help you...
User avatar
ahmedali
Gnome
Posts: 302
Joined: Fri Feb 20, 2004 8:52 pm
Location: Lahore, Pakistan

Post by ahmedali »

@Shadix
Which version of max are you using and did you used mirror bones. If thats not the problem of mirror bones I can give you the exporter with some experimental ik sampling modifications for a try.
User avatar
ahmedali
Gnome
Posts: 302
Joined: Fri Feb 20, 2004 8:52 pm
Location: Lahore, Pakistan

Post by ahmedali »

You you can mail me the scene file to help solve the issue.
genva
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 1603
Joined: Wed Oct 20, 2004 7:54 am
Location: Beijing, China
x 1

Post by genva »

It's clearly some vertices wasn't attached to any bones (your artist wrong), or the some attached bones doesn't exporting properly (exporter tools bug, or make sure checked Export non-bones objects (must be in the modifier) option in Ogre standard Max exporter tool).
Post Reply