WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-20-2014, 11:42 AM
johnallen johnallen is offline
Member
 
Join Date: Nov 2013
Location: Canterbury, UK
Posts: 36
cannot get eyeheight() working with vizconnect

with a call to viz.go() and simple scene loaded I can easily change the height of the viewer by keyboard input using

vizact.onkeydown('2', viz.MainView.eyeheight, 1 )

however if I replace the viz.go() for a vizconnect.go() - calling in settings configured for keyboard and mouse navigation, the navigation works fine however the calls to change the eyeheight seem to be ignored.

Can anyone tell me what I'm doing wrong? Is it how my vizconnect file is setup?

What I want to do longer term is use this with PPT tracking but to modify the height of the participant's viewpoint.

Many thanks,
John
Reply With Quote
  #2  
Old 11-21-2014, 11:41 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
If the display is parented to another object in Vizconnect, then the link will override the viewpoint command in Vizard. From Vizconnect, you can add a post trans offset in the Offsets dialog for the PPT Tracker to adjust the height. Take a look at the Displays and Trackers tutorial for an example using offsets.
Reply With Quote
  #3  
Old 11-24-2014, 04:48 AM
johnallen johnallen is offline
Member
 
Join Date: Nov 2013
Location: Canterbury, UK
Posts: 36
adjusting eyeheight when using vizconnect

Thanks for the pointer Jeff.

To do it dynamically I ended up doing:

Code:
vizconnect.go('my_vizconnect.py')
gTracker = vizconnect.getTracker('head_tracker')
gLink = gTracker.getLink()
# now apply an offset to the height
gLink.postTrans([0,-0.25,0], target=viz.LINK_POS_OP)


Quote:
Originally Posted by Jeff View Post
If the display is parented to another object in Vizconnect, then the link will override the viewpoint command in Vizard. From Vizconnect, you can add a post trans offset in the Offsets dialog for the PPT Tracker to adjust the height. Take a look at the Displays and Trackers tutorial for an example using offsets.
Reply With Quote
Reply

Tags
vizconnect


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
how to adjust eye height with vizconnect setup johnallen Vizard 1 07-28-2014 04:46 PM
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
Intersense Eyeheight wouters Vizard 2 04-16-2008 02:15 PM


All times are GMT -7. The time now is 05:11 AM.


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