WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-02-2016, 07:25 AM
JB_HP_Viz JB_HP_Viz is offline
Member
 
Join Date: Jun 2014
Posts: 31
How to set offset for ART SmartTrack

I have the ART SmartTrack working in the Christie HoloStation CAVE but when you put the tracked 3D glasses on it doesn't look like the correct view point for the user. It looks like the users eye point should be set to be higher. So I thought maybe the offset needs to be changed.

Since I was not able to use Vizconnect to setup the tracker is there a way to change the offset like you can in Vizconnect for the tracker (I attached the image that shows how you change settings in Vizconnect, but I didn't see information on how to do if not using Vizconnect to setup Tracker)?

Below I included the CAVE dimensions information. With the Holostation CAVE the floor sits 32 inches off the ground

Code:
# Declare constants defining the CAVE dimensions
#height from floor to display 32 inches
#height of display 42.875 inches
W = 1.724       # 67.875 inches wide
H = 1.902       # 74.875 inches tall
#DF = 1.08       # 42.5 inches deep for floor
D = 1.438       # 56.625 inches deep

W2 = W/2.0
C0 = -W2,H,0     # Front  Wall: C1,C2,C5,C6
C1 = -W2,H,D     # Left   Wall: C0,C1,C4,C5
C2 = W2,H,D      # Right  Wall: C2,C3,C6,C7
C3 = W2,H,0      # Bottom  Wall: C5,C6,C4,C7
C4 = -W2,0,0
C5 = -W2,0,D
C6 = W2,0,D
C7 = W2,0,0

#Create front wall
FrontWall = vizcave.Wall(   upperLeft=C1, 
                             upperRight=C2,
                             lowerLeft=C5,  
                             lowerRight=C6, 
                             name='Front Wall' )

#Create left wall
LeftWall  = vizcave.Wall(   upperLeft=C0,
                             upperRight=C1,
                             lowerLeft=C4, 
                             lowerRight=C5,
                             name='Left Wall' )

#Create right wall
RightWall = vizcave.Wall(   upperLeft=C2,
                             upperRight=C3,
                             lowerLeft=C6,
                             lowerRight=C7,
                             name='Right Wall' )

#Create bottom wall
BottomWall = vizcave.Wall(  upperLeft=C5,
                             upperRight=C6,
                             lowerLeft=C4,
                             lowerRight=C7,
                             name='Bottom Wall' )
Attached Thumbnails
Click image for larger version

Name:	vizconnect_trackeroffsets.PNG
Views:	741
Size:	110.5 KB
ID:	787  
Reply With Quote
  #2  
Old 06-05-2016, 10:02 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
All the wall corners need to be specified in the tracking system's coordinates. In this case you need to account for the image rise off of the floor:

Code:
# Declare constants defining the CAVE dimensions
#height from floor to display 32 inches
#height of display 42.875 inches
W = 1.724       # 67.875 inches wide
H = 1.902       # 74.875 inches tall
R = 0.81        # 32 inches rise off floor
D = 1.438       # 56.625 inches deep

W2 = W/2.0
C0 = -W2,H,0     # Front  Wall: C1,C2,C5,C6
C1 = -W2,H,D     # Left   Wall: C0,C1,C4,C5
C2 = W2,H,D      # Right  Wall: C2,C3,C6,C7
C3 = W2,H,0      # Bottom  Wall: C5,C6,C4,C7
C4 = -W2,R,0
C5 = -W2,R,D
C6 = W2,R,D
C7 = W2,R,0
Unless the ART origin is offset from the ground then it should not be necessary to apply a height offset to the tracker. You can add position offsets by creating a tracker link and applying the offset to the link. For example:

Code:
import viz

# VRPN Tracker connection (to ART Dtrack)
vrpn = viz.add('vrpn7.dle')
headtracker = vrpn.addTracker('DTrack@localhost')           #Default sensor is 0. Head tracker is on DTrack sensor 0
headtracker.swapPos([1,2,-3])
headtracker.swapQuat([-1,-2,3,4])

headTrackerLink = viz.link(headtracker,viz.NullLinkable)
# Adjust for origin offset from ground
headTrackerLink.postTrans([0,1,0])
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
Offset position of link/attached object MissingAFew Vizard 3 04-13-2015 05:15 PM
Introducing a rotation offset into a link EnvisMJ Vizard 1 11-13-2013 05:51 AM
Textures not loading properly and offset window TarkaDahl Vizard 2 05-18-2010 01:54 PM
window offset on windows 7 IGoudt Vizard 0 02-09-2010 07:06 AM
Offset Problem Elittdogg Vizard 1 09-15-2009 06:28 AM


All times are GMT -7. The time now is 01:22 AM.


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