WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-01-2014, 11:23 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The line of code:

Code:
hmd = SonyHMD.HMZT1()
configures the display settings but does not provide a position and orientation that another object such as the viewpoint can be linked to. You can link the viewpoint to a Kinect or InertialLabs tracker object. In the Wirks demos, take a look at the code where the trackers are added and the viewpoint is linked to a merged tracker created from Kinect position and InertialLabs orientation.
Reply With Quote
  #2  
Old 06-03-2014, 01:55 AM
armo armo is offline
Member
 
Join Date: Mar 2014
Posts: 21
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
import InertialLabs
import SonyHMD
import viz
import viztracker

hmd = SonyHMD.HMZT1()
myILSensor = InertialLabs.addSensor(port=Config.COM_PORT)
tracker = viztracker.KeyboardPos()
head6DoFTracker = viz.mergeLinkable(tracker, myILSensor)
headlink = viz.link(head6DoFTracker, viz.MainView)

viz.go(viz.FULLSCREEN)
viz.eyeheight(1.4)

viz.add('scenario/stanza4.dae',pos=(0, 0.06, 0), euler=(0,0,0), scale=(0.0254]*3))
viz.MainView.setPosition(0, 1.4, 0)

best regards,
armo
Reply With Quote
Reply

Tags
hmd, linking, sony

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
Mainview can't go back to original point jacky Vizard 1 06-04-2013 04:22 AM
How to link the Mainview to a child object jacky Vizard 1 05-02-2013 09:51 AM
How can I link MainView with HMD and a 3d node? Salvar Vizard 5 03-22-2011 08:14 PM
Link MainView to instable platform sleiN13 Vizard 2 01-10-2011 12:33 AM
link MainView moneim230 Vizard 1 09-14-2010 01:47 PM


All times are GMT -7. The time now is 04:47 AM.


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