WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 08-27-2008, 12:55 PM
Enlil Enlil is offline
Join Date: May 2008
Posts: 61
Using link to create offsets between sensors

I am currently creating a demo using a head mount display and glove, whose positions are tracked by a polhemus patriot. I have used to link the glove and head mount display to their patriot sensors, as follows:

myroom = viz.add('room.wrl')
polhemus = viz.add('polhemus.dle')
patriot1 = polhemus.addPatriot();
patriot2 = polhemus.addPatriot();
hand_link =, glove)
hand_link.setOffset([0, 1.8200000524520874, 0])

What I would really like to do, though, is to make the glove always appear in the proper relationship to the viewpoint, even if the main viewpoint changes. Is there an easy way to do this, or will I have to put some kind of statement into a timer that does it?

Reply With Quote
Old 08-28-2008, 09:12 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
The two sensors should already share the same relationship if they are connected to the same patriot device. If you are applying an offset to one of the links, then you will need to apply the same offset to the other link in order to maintain this relationship.
Reply With Quote
Old 08-28-2008, 11:28 AM
Enlil Enlil is offline
Join Date: May 2008
Posts: 61
Thanks for the advice - that is pretty much what I figured, I just hoped there was some clever link statement I could use.

Reply With Quote

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
How to create a sky? guxmy01 Vizard 1 05-28-2008 12:07 PM
How to make a link Sabina Volcy Vizard 1 02-12-2008 10:43 AM

All times are GMT -7. The time now is 06:17 AM.

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