WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-15-2010, 01:24 AM
ohad ohad is offline
Member
 
Join Date: Feb 2010
Posts: 9
Hey,
great question, unfortunately I as well don't know how to implement this, but i did make my avatar yawn so if it could be of any use to you :

def makeAvatarYawn(avatar,eyes,eyebrows,mouth,isOpenin g) :
increaseFactor = 0.1
waitTimeFactor = 0.07
maxOpenTime = 0.4
maxOpen = 3

if isOpening :
eyes = eyes + increaseFactor*0.5
eyebrows = eyebrows + increaseFactor
mouth = mouth + increaseFactor
if mouth >= maxOpen :
isOpening = False
yield viztask.waitTime(maxOpenTime)
else :
eyes = eyes - increaseFactor*0.65*0.5
eyebrows = eyebrows - increaseFactor*0.65
mouth = mouth - increaseFactor*0.65

avatar.morph(0,eyes)
avatar.morph(1,eyebrows)
avatar.morph(2,mouth)

yield viztask.waitTime(waitTimeFactor)
if mouth > 0 :
viztask.schedule(makeAvatarYawn(avatar,eyes,eyebro ws,mouth,isOpening))

viztask.schedule(makeAvatarYawn(avatar,0,0,0,True) )
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modeling changing facial expressions? Josh Vizard 0 02-08-2010 01:54 AM
trouble changing subnode (child node) color, alpha, etc. michaelrepucci Vizard 7 01-14-2009 08:38 PM


All times are GMT -7. The time now is 02:04 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC