Jump to content

Weird problem with motion blending


Soamp
 Share

Recommended Posts

Hi, I post this on "Bug Tracker" before but I didn't get any kind of response in last 2 weeks so I'm gonna post it here too. would you guys take a look at this. thanks in advance:

 

We have a problem with animating our character. The description is quite long, I apologize in advance.

We use LUA. We have a GMF file which is the T-Stand of our character. This file contains the character's mesh.

We also have several GMF files, they don't have any mesh. They only consist of our character's motion. Let me give you a for instance :

We have a file named "Characters_Jasem.gmf" which is attached. It contains the mesh.

And a file named "Motion_Bot_Ak47_run.gmf" which is attached too and only contains the hierarchy and the "Run" motion.

 

We load our character's mesh like this :

	charmesh=LoadMesh("abstract::Characters_Jasem.gmf")

 

 

then We use LoadAnimation command like this :

	animseq=LoadAnimation(charmesh,"abstract::Motion_Bot_Ak47_run.gmf")

 

LoadAnimation returns sequence number of the loaded animation.

 

then we use this to animate the character :

	Animate(charmesh, object.frame,object.blend,animseq, true)

 

We calculate frame and blend like this :

	object.frame = object.frame+(AppTime()-object.lastframetime)/25
object.frame = math.fmod(object.frame, object.frameend-object.framestart)
object.lastframetime=AppTime()

object.blend=Curve(1,object.blend,40)

 

Everything is OK in general, this works fine on nVidia graphic cards. But on ATI cards, the character's leg get disapear suddenly.

 

Same leg, from the exact same bone, everytime!

 

I attached two pics which show the problem. We check this on several ATI card , all of them have the exact same problem.

Correct character :

post-580-042880500 1288774439_thumb.jpg

 

Character with hidden leg :

post-580-019904300 1288774453_thumb.jpg

 

We have been working on it for a long time til we just found the problem goes away when we use Animate command like this :

	Animate(charmesh, object.frame,1,animseq, true)

 

We replaced "object.blend" with "1" (we dont use motion blending) and everythig is OK, on both nVidia and ATI cards.

 

But our motions changes very suddenly and it looks terrible! Would you take a look at this?

 

thanks.

GMF Files.rar

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...