View Single Post
  #5  
Old 05-25-2006, 11:07 AM
betancourtb82 betancourtb82 is offline
Member
 
Join Date: Jan 2006
Posts: 103
I'm using the .act() command to have the avatar speak a wav file. I'm using the biohead_talk.vzf face. It works fine when I use the jfk.wav file but when I insert any other wav file the lips "explode". They are totally distorted. Is their a fix for this? Is it a problem with the way I'm coding it?

Code:
def walkAvatar(starter):
 global START_AVATAR,stopCount
 walk = starter.walkto(0,0,HEAD_DEPTH,1,260,2)
 speech = starter.speak('Test.wav')
 #Clear all the avatar's actions, reposition it, and start the walk action
 starter.clear(viz.ALL)
 action1 = starter.act(walk)
 action3 = starter.state(1)
 action4 = speech
 if starter.tag == 0:
  action2 = starter.turn(180)
  action5 = starter.walkto(-2,0,1)
  action6 = vizact.headto(45,0,0)
  starter.act(vizact.sequence(action1,action2,action3,action4,action5,action6))
 elif starter.tag == 1:
  action2 = starter.turn(180)
  action5 = starter.walkto(-2,0,-1)
  action6 = vizact.headto(45,0,0)
  starter.act(vizact.sequence(action1,action2,action3,action4,action5,action6))
 elif starter.tag == 2:
  action2 = starter.turn(180)
  action5 = starter.walkto(2,0,-1)
  action6 = vizact.headto(-45,0,0)
  starter.act(vizact.sequence(action1,action2,action3,action4,action5,action6))
 else: 
  action2 = starter.turn(175)
  action5 = starter.walkto(2,0,1,25)
  action6 = vizact.headto(-45,0,0)
  starter.act(vizact.sequence(action1,action2,action3,action4,action5,action6))
  viz.killtimer(START_AVATAR)
Reply With Quote