View Single Post
  #2  
Old 06-13-2017, 09:45 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,449
Try adding the following code. Use WASD to move the avatar:

Code:
import vizcam
keyTracker = vizcam.addKeyboard6DOF()

avatar = viz.addAvatar('vcc_female.cfg')
avatar.state(2)
# illuminate the avatar
avatar.emissive([8]*3)
avatar.renderToAllRenderNodes(excludeMainPass=True)

link = viz.link(keyTracker,avatar)
viewLink = viz.link(avatar,viz.MainView)
viewLink.preTrans([0,1.6,0])
Reply With Quote