Jump to content

[SOLVED] How to move eyeball of walking person?


ozRocker
 Share

Recommended Posts

I have a person with rigged eyeballs.

I can get the bone of the eyeball and move it around while the person is not animated.  But when the person is walking I can no longer control the eyes.  They just stay fixed in the same place.  It feels like the eyes have motion set in the key data in the .babylon file.

Does anyone know how to control a bone while an animation is running?

Link to comment
Share on other sites

This is the .babylon data for the right eye

{"name":"Eye.R","index":6,"matrix":[0.9884,0.0137,-0.1514,0,0.152,-0.0945,0.9838,0,-0.0008,-0.9954,-0.0955,0,0.1991,0.5541,0.6309,1],"rest":[0.9884,0.0137,-0.1514,0,0.152,-0.0945,0.9838,0,-0.0008,-0.9954,-0.0955,0,0.1991,0.5541,0.6309,1],"parentBoneIndex":5,"length":0.1678
,"animation":{"dataType":3,"framePerSecond":30,"keys":[
{"frame":1,"values":[0.9884,0.0137,-0.1514,0,0.152,-0.0945,0.9838,0,-0.0008,-0.9954,-0.0955,0,0.1991,0.5541,0.6309,1]},
{"frame":37,"values":[0.9884,0.0137,-0.1514,0,0.152,-0.0945,0.9838,0,-0.0008,-0.9954,-0.0955,0,0.1991,0.5541,0.6309,1]}],"loopBehavior":1,"name":"anim","property":"_matrix"}},

Maybe there's something in there that is forcing a position on the eye while the animation is running.  I've tried deleting the keys but then the eye disappears completely

Link to comment
Share on other sites

I had tried to do this some time ago and I had not succeeded too. In fact babylon can only play one animation at a time of what I understood.

Otherwise it is necessary that the movement of the eyes is integrated in the animation of walk for example. If there are two separate animations, only one will play.

This subject interests me a lot if a solution is found. Maybe something is missing at babylon to handle multiple simultaneous animations.

Link to comment
Share on other sites

  • ozRocker changed the title to [SOLVED] How to move eyeball of walking person?

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...