WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-25-2014, 08:48 AM
johnallen johnallen is offline
Member
 
Join Date: Nov 2013
Location: Canterbury, UK
Posts: 36
how to adjust eye height with vizconnect setup

I've seen the vizconnect tutorials here - http://docs.worldviz.com/vizard5/#vi...rackers|_____1

but I cannot work out how to adjust the eyeheight of the main/default display in code at runtime.

i have a display ('custom_window') attached to a head which sits under the avatar in the scene graph)

I can walk around using the cursor keys and look up/down/around using the mouse but the eye height is fixed.

i'd be interested to know how I can set the default from within vizconnect but primarily I'd like to adjust it in code.

Thanks
Reply With Quote
  #2  
Old 07-28-2014, 04:46 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
In Vizconnect, from the Trackers tab click on the Offsets button of a mouse and keyboard tracker that's already been added. Add a post trans y value to change the height value output by the tracker.

In a script that imports the configuration file get a handle to the tracker link and apply the postTrans operation on the link:

Code:
trackerLink = vizconnect.getTracker('mouse_and_keyboard_walking').getLink()
#Apply 1 meter post trans offset to Y value
trackerLink.postTrans([0,1,0])
If you want to apply an offset between the view and the avatar, so the view is higher or behind the avatar then the setup would be different. In this case you could insert a group node between the avatar head slot and the display in the scene graph and then change the offset of the group node.
Reply With Quote
Reply

Tags
vizconnect

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
Vizconnect SpaceGrip problem JB_HP_Viz Vizard 3 06-17-2014 04:03 AM
delete hand in vizconnect rvenegas Vizard 4 06-05-2014 11:17 PM
Vizconnect Save As Dialog Jeff Vizard 0 05-01-2014 10:45 AM
skeleton height from FAAST? fivel_lab Vizard 5 03-28-2014 02:01 AM
PPT 1.1 common setup problems mspusch Precision Position Tracker (PPT) 0 07-03-2003 02:15 AM


All times are GMT -7. The time now is 09:37 AM.


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