Jump to content

More animation problems I'm afraid [Solved]


Roland
 Share

Recommended Posts

I have some more problems with my animations. Macklebee helped me with get them going last night and that was awesome, did not understand that you use the blending value to select which one to run.

 

This time I have a new problem which I can't understand.

Watch this video and you will understand what I mean

 

http://www.youtube.com/watch?v=yBKrTJVXfwM

AV MX Linux

Link to comment
Share on other sites

Game Producer: Maybe not the best quality but in full screen mode the code is fully readable, but thats not the important part. Didn't you understand my Swedish version of English, was it so bad :) Anyway, thanks for watching though

 

Gabriel: Yeah .... real severe problems ;)

 

macklebee: So I didn't get it as I though I did. Well, then it was a good thing of me to write "I'm not so smart as I thought I was" in my blog.

AV MX Linux

Link to comment
Share on other sites

working on an example for you... will post in a PM so I do not have to put assets into a public forum...

 

EDIT: Found possible bug but was able to get it to work... sent a PM to Josh with an example to comment on..

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Hi Flexman. The problem was me and maybe a bug or sort off bug.

 

My character model is included in the Scene file (.sbx) and is just a mesh with a skeleton i a T-Pose.

My intention was then to load each animation from separated gmf-files using LoadAnimation.

I have no LOD files.

 

My first problem was that did not understand they way blending works. Blending is used to switch betweem the different animations.

They was I did it was wrong so I ended up having alla animations blending turn on at the same time, with very strange results.

Now the code ensure that when I select a new animation the old blending is turned of, and that solved that problem

 

My second problem was that LoadAnimation did not work as expected.

 

int seqNo = LoadAnimation( characterEnt, "abstact::idle_anim.gmf" ); // this animation will cause at totally distored model when used

 

The solution that macklebee came up with was

 

int seqNo = LoadAnimation(GetModelLODEntity(characterEnt,1),"abstract::idle_anim.gmf") ;

or

 

int seqNo = LoadAnimation(GetChild(characterEnt,1),"abstract::idle_anim.gmf");

 

 

Taken those things into concideration everything works fine now :P

AV MX Linux

Link to comment
Share on other sites

The solution that macklebee came up with was

well i cant take credit for coming up with it... i just figured out the LoadAnimation is looking for a mesh and not the model... i had seen similar at one time when i was making my animation script for loading separate gmfs... but my final script took into account LODs whether they existed or not so the problem solved itself and i never took the time to track down what was causing it until i saw your issue and it reminded me.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

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...