PDA

View Full Version : avatars


dig
07-10-2007, 03:13 AM
Hi there,
I'm a newbie in the world of avatars so my question might be really naive. I'm trying to add a couple of talking avatars in my scene (basically all I want is for the avatars to open and close their mouth while a wave file is playing). While I can do that easily with the male.cfg and female.cfg avatars using the speak command, this does not seem to work with the cooler vcc demo avatars included in vizard. I noticed however that there is a "talk1" animation that is built in for the vcc avatars. I'm not sure what that animation does and how to use it (I know how to use the rest of the animations but not the talk1). Any help?
Cheers,
marios

farshizzo
07-10-2007, 09:42 AM
Hi,

Unfortunately, the new avatars do not contain a jaw bone, so there is no way to make the mouth open and close.

carmoe
09-20-2007, 04:42 AM
Hello farshizzo,
I'm a newbie in Vizard too, but as marios highly interested in good looking avatars which can run the speach command.
My question is, do the avatars in the Complete Characters package come with a jaw bone, so the speach command can be used for them?
Regards,
tencars

farshizzo
09-20-2007, 09:54 AM
No, the Complete Character avatars do not have a jaw bone.

3 D
09-20-2007, 03:29 PM
One option for simple lip-synching with the Complete Character Avatars is to attach a custom Vizard face object (.vzf file). See the Tutorial: Custom avatar heads in VizHelp for more information.

The following script quickly demonstrates this approach, combined with the new 'talk1' animation:
import viz

viz.go()

female = viz.add('vcc_female.cfg')
female.face('biohead_talk.vzf')
female.state(14)

female.translate(0,0.1,0.5)
female.rotate(0,1,0,180)

speech = vizact.speak('yourspeechfile.wav')

def mykey(key):
if key == ' ':
female.add(speech)

viz.callback(viz.KEYBOARD_EVENT,mykey)


Hope this helps!