WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 01-24-2012, 03:01 AM
karinp karinp is offline
Member
 
Join Date: Jan 2012
Posts: 6
OK I solved it, now works perfectly...here is how for anyone else might need it in future...

import viz
import random
import vizact
import viztask
import glob
import viztracker
import nvis

viz.setMultiSample(4)
viz.fov(60)
viz.setDisplayMode(2560, 1024)
viz.go(viz.QUAD_BUFFER| viz.FULLSCREEN)
nvis.nvisorSX111()

vrpn = viz.add('vrpn7.dle')
headTrkr = vrpn.addTracker("head2@10.0.0.1")

###Negate Z value of position
headTrkr.swapPos([-1,3,-2])

###Negate X,Y value of quaternion
headTrkr.swapQuat([1,-3,2,4])

link = viz.link(headTrkr,viz.MainView)

link.preEuler([-45, 0, 0])

print headTrkr.getEuler()
print viz.MainView.getEuler()
print viz.MainView.getAxisAngle()
print headTrkr.getAxisAngle()
Reply With Quote
 


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


All times are GMT -7. The time now is 05:51 PM.


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