WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 09-13-2012, 05:27 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
For the original Complete Characters, instead of morph targets you could remove the eye mesh and add eyeball geometry in Max. These would be child nodes of the head that could be rotated. Similar to the method used in the biohead file and head.py script in the tutorials\avatars folder of the Vizard install.

Here is an example of moving the eyes of the male HD character included with Vizard:
Code:
import viz
import vizact
viz.go()

viz.add('piazza.osgb')

male = viz.addAvatar('vcc_male2.cfg',pos=[0,0,1],euler=[180,0,0])
male.state(1)

leftEyeLeft = vizact.boneSpinTo('Bip01 LEye',mode=viz.AVATAR_LOCAL,euler=[-15,0,0],time=2)
rightEyeLeft = vizact.boneSpinTo('Bip01 REye',mode=viz.AVATAR_LOCAL,euler=[-15,0,0],time=2)

def moveEyesLeft():
	male.addAction(leftEyeLeft,pool=1)
	male.addAction(rightEyeLeft,pool=2)
	
vizact.onkeydown('1',moveEyesLeft)
Reply With Quote
 

Tags
blinking, complete character set, eyes, mimicry, movable


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
making a Complete Character Set character speak Frank Verberne Vizard 4 05-25-2012 08:47 PM
Eyes that keep looking at the mirror Frank Verberne Vizard 3 05-13-2008 05:39 AM


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


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