#1
|
|||
|
|||
Adding Audio to CAF Animation
What i need to do is play audio and a animation at the same time. I would like to combined those in one .caf file. Using 3ds max how can i make the caf file have audio so if i play it in vizard? Thanks
|
#2
|
|||
|
|||
The Cal3D .caf file format is just for animations. In Vizard, you could play audio when the animation begins and stop the audio when it's done.
|
#3
|
|||
|
|||
I was thinking about doing that but every time i play an audio and a animation at the same time one waits for the other to be complete. I tried using
Code:
viz.playSound('filename') self.VizBody.state(1) Thanks |
#4
|
|||
|
|||
You could use a task function to play audio and stop if after the action is done:
Code:
import viz import vizact import viztask viz.go() avatar = viz.addAvatar('vcc_male.cfg',pos=[0,0,5],euler=[180,0,0]) avatar.state(1) action = vizact.animation(3) audio = viz.addAudio('jfk.wav',loop=1) def animationTask(): while True: yield viztask.waitKeyDown(' ') audio.play() yield viztask.runAction(avatar,action) audio.stop() viztask.schedule(animationTask()) Code:
import viz import vizact viz.go() avatar = viz.addAvatar('vcc_male.cfg',pos=[0,0,5],euler=[180,0,0]) avatar.state(1) startSound = vizact.method.playsound('jfk.wav',viz.LOOP) action = vizact.animation(3) stopSound = vizact.method.playsound('jfk.wav',viz.STOP) actionSequence = vizact.sequence(startSound,action,stopSound) vizact.onkeydown(' ',avatar.addAction,actionSequence) |
Tags |
animation, caf |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clarification on CAL3D Avatar Animation in Vizard | shivanangel | Vizard | 2 | 11-22-2010 07:16 AM |
adding more than 1 action for avatar animation slider control | yak | Vizard | 0 | 07-21-2009 11:22 AM |
Animation Tracks.... | k_iwan | Vizard | 2 | 03-26-2007 05:52 PM |
Jumpy animation | Elizabeth S | Vizard | 1 | 11-08-2006 02:11 PM |
avatar animation problems | jrodman | Vizard | 1 | 01-18-2006 09:12 AM |