WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-25-2008, 07:47 AM
Micha Micha is offline
Member
 
Join Date: Dec 2007
Posts: 6
Manipulating Tracker View

Hi There,

I use an Ascension FOB and I want to change the main view, i.g. rotate around the z-axis, so that the view for example looks always 90 deg rotated to the actual tracking view.

Any Ideas?

Thanks, Mike
Reply With Quote
  #2  
Old 02-25-2008, 08:50 AM
Micha Micha is offline
Member
 
Join Date: Dec 2007
Posts: 6
Ok, I got it!

Code:
data = tracker.get()

	view = viz.get(viz.MAIN_VIEWPOINT)
	
	view.reset(viz.BODY_ORI)
	
view.setEuler(data[3]+180,data[4],data[5], viz.BODY_ORI, viz.ABS_LOCAL)
Reply With Quote
  #3  
Old 02-25-2008, 10:00 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can also use a link to have Vizard automatically perform this operation for you. Example:
Code:
headLink = viz.link(tracker,viz.MainView,dstFlag=viz.LINK_BODY)
headLink.postEuler([180,0,0],target=viz.LINK_ORI_OP)
Reply With Quote
  #4  
Old 02-25-2008, 10:05 AM
Micha Micha is offline
Member
 
Join Date: Dec 2007
Posts: 6
Nice, thank you very much, works perfectly!!

Cheers Mike
Reply With Quote
Reply

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
Interface with Tobii Eye Tracker Uttama_vizard Precision Position Tracker (PPT) 1 12-12-2007 11:31 AM
Can Vizard interact with the Arrington eye tracker? Deltcho Vizard 1 09-18-2007 02:38 PM
problem with stereo mode shivanangel Vizard 3 10-17-2006 09:58 AM
Moving view with object Xliben Vizard 2 07-25-2005 05:36 PM
keeping a 3d object in front of the view tavaksai Vizard 1 07-07-2004 09:33 AM


All times are GMT -7. The time now is 12:24 AM.


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