Jump to content

How do I scale a bone?


adam
 Share

Recommended Posts

I hacked Scene.render and placed the call to animate before beforeRender gets called.  I also check to make sure that the matrix is new before scaling it.

 

http://www.babylonjs-playground.com/#11BH6Z#27

 

It almost gets through the animation cycle without messing up.  

 

I'm thinking that a few of the frames toward the end don't reset the scale of the head, so I end up scaling it when I'm not supposed to.

Link to comment
Share on other sites

Ouch!  I actually designed & coded a bone interpolator in a before render.  I do not have it running yet, though.  My MORPH extension is to now handle vertex deformations for the face, and skeletal interpolation of different poses: walking, sitting, etc.  Both integrated with POV movement / rotation, & timeline control.  Was counting on the BeforeRender being processed before the the send to the gpu, since the before render sets the bones.

 

Is there some way to make when the dirty skeletons are pushed up adjustable, or callable by the application code as well?  If it is earlier, I do not care, no BABYLON.Animation is running against them, so long as I can request it in the beforeRender.

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.

Loading...
 Share

  • Recently Browsing   0 members

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