WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   right-hand to left-hand coordinate System for a cave setup (https://forum.worldviz.com/showthread.php?t=2267)

Andy 09-16-2009 09:03 AM

right-hand to left-hand coordinate System for a cave setup
 
I have a vicon tracking system (right-hand-coordinate-system) and I want to use this system in a cave environment. So I have to swap the position und orientation data of my vicon-body-object (“ViewTracker”).
For a “viz.link” object no problem, but how can I do this for the cave setup tracker-object?

Code:

Vicon = viz.add('vicon.dle', 0, ViconIP)
ViewTracker = Vicon.getBody(0)

cave = vizcave.Cave()
cave.addWall(PowerWall)

cave.setTracker(ViewTracker)  #ViewTracker.swapPos([3,2,-1])???
caveorigin = vizcave.CaveView(viewtracker)


origintracker = viztracker.KeyboardMouse6DOF()
originlink = viz.link (origintracker, caveorigin)


farshizzo 09-16-2009 10:17 AM

There are a few ways to accomplish this. I would suggest using the filter.dle plug-in:
Code:

#Create filter extension
filter = viz.add('filter.dle')

#Swap position of view tracker
ViewTracker = filter.swap(ViewTracker,pos=[3,2,-1])



All times are GMT -7. The time now is 12:35 PM.

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