View Single Post
  #1  
Old 08-27-2008, 12:55 PM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
Using link to create offsets between sensors

Hello,
I am currently creating a demo using a head mount display and glove, whose positions are tracked by a polhemus patriot. I have used viz.link 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 = viz.link(patriot2, 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?

Thanks,
Christian
Reply With Quote