how to link the Sony HMD to the MainView
Hello everyone
I would like to link our Sony HMD to the MainView so the viewer could freely explore the scenarios once worn the HMD. The model is a Sony HMZ-TH1. but when I run this script: Code:
import viz it tells me that the source object is not a linkable type: Code:
Traceback (most recent call last): Could you please tell me where is the error? (as I suppose there should be one, since the viz.link works finely with the wirks example script "The Pit") kind regards, armo |
The line of code:
Code:
hmd = SonyHMD.HMZT1() |
Dear Jeff
thank you very much! I followed your instructions and it worked. However two new problems occured: 1-it seems like the orientation axes are misconfigured because If I try to look up the camera doesn't revolve around the X axis but it actually rolls like if it was on the Z axis. The yaw rotation on the other hand works properly. 2-I can't manage to set the height of the viewpoint. The MainView remains on the ground level even if I use the viz.eyeheight or viz.MainView.setPosition commands here's the code: Code:
import Config best regards, armo |
1. Make sure you reset the inertial labs tracker. You'll need to call the resetHeading function as in ThePit.py demo script.
2. You've linked the viewpoint to a tracker that has an initial height value of 0. The position of the link source (keytracker) will override the position you specify in the view.setPosition or viz.eyeheight commands. You can apply an offset to the link so it's initial value is not at ground level: Code:
headlink.postTrans([0,1.8,0]) Code:
headlink.setPos([None,1.8,None]) |
Dear Jeff
With these latter instructions now it all works fine and well. Thank you so much! best regards, armo |
All times are GMT -7. The time now is 05:57 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC