WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   delete hand in vizconnect (https://forum.worldviz.com/showthread.php?t=5057)

rvenegas 06-04-2014 11:44 AM

delete hand in vizconnect
 
hello! I'm new to developing virtual reality on vizard
I have a question, I need to re load a new vizconnect in a scene .But when i do it, the avatar (hand) from the first vizconnect stay in the scene.. how I can delete this hand?

another question, how can I keep position avatar re loading new vizconnect?

thanks ;)

Jeff 06-04-2014 07:40 PM

If you have one setup with hand tracking and another without it's best to create two separate vizconnect config files for each. You can specify which one to use in your application. If you want to toggle the visibility of the hand you can do that with the following code:

Code:

hands = vizconnect.getAvatar().getHands()
rightHand = hands.get('r_hand')
vizact.onkeydown(' ',rightHand.visible,viz.TOGGLE)

Sorry, I don't understand your question about the avatar position.

rvenegas 06-05-2014 07:21 AM

I need that the new avatar position be the same that was before to load the new vizconnect.
If i load a new vizconnect the position is (0,0,0) and the need to be a value that i saved in a variable

Thank's for the help with the hand, it's working ok.

rvenegas 06-05-2014 07:34 AM

update: when i thy viz.MainView.setPosition(...) the hand doesn't follow the Main view and with hand.setPosition looks like the hand haven't the same methods that a regular node3d

Jeff 06-05-2014 10:17 PM

You'll need to save the avatar position to a file and apply that data to the avatar the next time you run your application.

If the hand is linked to a tracker, any commands you use to set the hand position will be overridden by the link. Can you describe your hardware setup and what you're trying to do?


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

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