View Single Post
  #1  
Old 01-09-2008, 05:39 AM
krimble krimble is offline
Member
 
Join Date: Nov 2006
Location: Nijmegen
Posts: 63
animate cal3d bones

Hi all,

What I have is a cal3d avatar with a peoplemaker morph (for a talking mouth).

The avatar has to perform an animation: lean forward - back the origin - lean backward back to origin - lean left - back to origin - lean right and back to origin.

The bone that I want to rotate is one of the spineBones.

This is the code-part where i'm talking about:

Code:
viz.starttimer(TIMER_BODY_MOVEMENT, .03, 1)

def onTimerEvent(id) :
if id == TIMER_BODY_MOVEMENT :
    spine02.rotate(10,0,0)

viz.callback(viz.TIMER_EVENT,onTimerEvent)
What's happening now: the bone seems to snap to the new position, with <bone>.setEuler() it's doing the same.

How can I make this a smooth animation?

Thanks!

Last edited by krimble; 01-09-2008 at 05:41 AM.
Reply With Quote