WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-26-2018, 08:49 AM
performlabrit performlabrit is offline
Member
 
Join Date: Oct 2013
Posts: 77
Vive: trouble setting node as a child of the head

Hello folks,

I'm trying to do a routine operation with the vive, and am having trouble. I would like to set a node (a vizshape sphere) in front of the head eye. One approach is to child the node to the mainview, or the head tracker. However, neither approach seems to work!

For example, if you use the standard vizconnect VIVE config and add the following code to main:

HTML Code:
import vizshape
ht = vizconnect.getRawTracker('head_tracker')
r = vizshape.addSphere(0.05, color = viz.RED)
r.setParent(ht)
r.setPosition([0,0,1]) # Doesn't work for any forward direction (e.g. [1,0,0])
It also doesn't work if I child it to the mainview.
Am I missing something?

Also, in the code above, note that the assumption is that the head is facing down Z in the model's local coordinate system. I'm not sure that this assumption is true (although, no other directions work either). What direction is "forward" and what direction "up" for the Vive?

Last edited by performlabrit; 02-26-2018 at 08:58 AM.
Reply With Quote
 

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
Child node coordinates fabioped Vizard 1 10-09-2013 02:40 PM
Problems with using WIRKS without the Kinect in a mirror setting Jennifer Vizard 0 06-03-2013 03:17 PM
Setting up render node for shadowing whaleeee Vizard 2 05-06-2013 10:20 AM
trouble changing subnode (child node) color, alpha, etc. michaelrepucci Vizard 7 01-14-2009 08:38 PM
Pivot points for child objects in Vizard with 3ds Max Gladsomebeast Vizard 0 09-19-2006 11:21 AM


All times are GMT -7. The time now is 02:10 PM.


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