#1
|
|||
|
|||
Avatar in the mirror
There's an example script called "renderNodePlanarReflection.py" in Vizard which creates a mirror and an avatar that is reflected in the mirror and is linked to the viewpoint.
However, this only works with the special "Steve" avatar. How do I do this with the standard avatars (e.g. vcc_female.cfg)? I want users to experience having an avatar body that they can see only in the mirror. Any ideas? |
#2
|
|||
|
|||
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]) |
#3
|
|||
|
|||
Works! Thanks!
|
Tags |
avatar, first-person perspective, mirror |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unexpected Avatar lookAt() behavior when using yield statements | chris2307 | Vizard | 2 | 12-17-2013 03:58 AM |
Problems with using WIRKS without the Kinect in a mirror setting | Jennifer | Vizard | 0 | 06-03-2013 04:17 PM |
Problem using mirror | dan12345 | Vizard | 3 | 07-28-2008 05:48 AM |
Eyes that keep looking at the mirror | Frank Verberne | Vizard | 3 | 05-13-2008 06:39 AM |
Getting a mirror to work in any environment | Frank Verberne | Vizard | 5 | 03-27-2008 09:21 AM |