WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-09-2011, 11:32 AM
Kaminski Kaminski is offline
Member
 
Join Date: Nov 2010
Posts: 36
My mistake, I didn't realize preTrans was applied before rotation. Thanks for the help.
Reply With Quote
  #2  
Old 03-09-2011, 11:36 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You should not call preTrans on every update. You only need to call it once when you initially setup the link.
Code:
import viz
import viztask

viz.go(viz.HMD | viz.STEREO)

isense = viz.add('intersense.dle')		
track = isense.addTracker()
main = viz.link(track,viz.MainView)
main.preTrans([xoff,yoff,zoff])

def mainLoop():
	yield viztask.waitKeyDown(' ')
	#Do Stuff

viztask.schedule(mainLoop())
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
display the position and euler coords of the main view Josh Vizard 1 03-22-2010 11:48 AM
View nlfrnassimi Vizard 0 03-17-2009 03:01 AM
View nlfrnassimi Vizard 4 03-12-2009 06:25 AM
default start position erchrastil Vizard 2 06-23-2008 09:15 AM
problem with stereo mode shivanangel Vizard 3 10-17-2006 10:58 AM


All times are GMT -7. The time now is 11:07 PM.


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