WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Detect Hands of Avatar (set them as target) (https://forum.worldviz.com/showthread.php?t=6216)

qwartz 12-07-2018 03:09 AM

Detect Hands of Avatar (set them as target)
 
Hi

I use the Oculus Rift with a vizconnect configuration where I've added the "Mark" avatar's hands. I want to touch objects and when they are touched they should change state (e.g. color).

My objects have sensors and I can achieve the desired change in state when the viewpoint is near the objects. Now I want to extend the target from the viewpoint to the hands of the avatar (so that when the hands are near the objects, they - the objects - change state).

I tried something like that:
Code:

viewTransform = vizconnect.getDisplay().getNode3d()
#viewTransform = vizconnect.getAvatar#.getNode3d()
target = vizproximity.Target(viewTransform)
manager.addTarget(target)

but it doesn't work. Anything else to try?

Jeff 12-12-2018 03:28 AM

1 Attachment(s)
This maybe difficult using the mark avatar hand. Since the hand is only a mesh and not a distinct 3d node it's not possible to get a handle directly to it and set it as a proximity target. You could try using the head and hands avatar instead. Attached is an example.


All times are GMT -7. The time now is 08:02 AM.

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