WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   cannot get eyeheight() working with vizconnect (https://forum.worldviz.com/showthread.php?t=5234)

johnallen 11-20-2014 10:42 AM

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

Jeff 11-21-2014 10:41 AM

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.

johnallen 11-24-2014 03:48 AM

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 (Post 16803)
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.



All times are GMT -7. The time now is 02:26 AM.

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