WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-12-2017, 09:59 AM
Lenticularis Lenticularis is offline
Member
 
Join Date: Jul 2016
Posts: 12
Question 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?
Reply With Quote
  #2  
Old 06-13-2017, 09:45 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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
  #3  
Old 06-19-2017, 08:53 AM
Lenticularis Lenticularis is offline
Member
 
Join Date: Jul 2016
Posts: 12
Works! Thanks!
Reply With Quote
Reply

Tags
avatar, first-person perspective, mirror


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
Unexpected Avatar lookAt() behavior when using yield statements chris2307 Vizard 2 12-17-2013 02:58 AM
Problems with using WIRKS without the Kinect in a mirror setting Jennifer Vizard 0 06-03-2013 03:17 PM
Problem using mirror dan12345 Vizard 3 07-28-2008 04:48 AM
Eyes that keep looking at the mirror Frank Verberne Vizard 3 05-13-2008 05:39 AM
Getting a mirror to work in any environment Frank Verberne Vizard 5 03-27-2008 08:21 AM


All times are GMT -7. The time now is 07:23 AM.


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