WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Regarding changing &using multiple tools at same time through vizconnect (https://forum.worldviz.com/showthread.php?t=5832)

rajnishv 08-29-2016 04:50 AM

Regarding changing &using multiple tools at same time through vizconnect
 
Hi Jeff,
I have a demo of a JET VR.
In the demo i have used highlighter and sucessfully called onHighLight Event and achieved successfully.
How after using highlighter on 3D parts i have to use the Grabber tool and some tools mentioned in the tools section of vizconnect.
But i am not able to the grabber tools at the same with highlighter,but when i remove highlighter from vizconnect,i am able to use the grabber alone.

Some questions in my mind,which i need to understand:

1)Does vizard support one tool usage at one time thru vizconnect?
2)How to use multiple tools at the same time thru vizconnect programmitically?
3)How to change one tool and then use the other and vice versa one at a time thru vizconnect programmitically?

Request you to pls assist me JEFF.

Thanx&Regards
Mr.Rajnish Vishwakarma
Mobile,AR,VR
Xenium Digital Pvt ltd,Mumbai

Jeff 08-29-2016 05:35 AM

Are both tools mapped to the same input signals?

rajnishv 08-30-2016 12:13 AM

Regarding changing &using multiple tools at same time through vizconnect
 
1 Attachment(s)
Thanks for ur reply JEFF.

No i have not mapped the same input for both the tools.
I am using keyboard as a input for highlighting tool and mouse for the grabber tool.
Request u to pls go through my vizconnect Config file attached.

Also i want to know as whats the problem by mapping the same input to all tools ?

rajnishv 08-31-2016 04:30 AM

Hi Jeff request you to pls reply for my last post.
that is below and also pls see to my vizconnect_config file.."vizconnect_ConfigJetVr.zip"

Pls see to the above post
Last Post:

Thanks for ur reply JEFF.

No i have not mapped the same input for both the tools.
I am using keyboard as a input for highlighting tool and mouse for the grabber tool.
Request u to pls go through my vizconnect Config file attached.

Also i want to know as whats the problem by mapping the same input to all tools ?
Attached Files

Jeff 08-31-2016 05:20 AM

The vizconnect file worked for me. Make sure you set the item list for both the grabber and highlighter in the script that imports the configuration. For example:

Code:

shapes = [pyramid,torus,box]

grabber = vizconnect.getRawTool('grabber')
grabber.setItems(shapes)

highlighter = vizconnect.getRawTool('highlighter')
highlighter.setItems(shapes)

If you map the same input signals to multiple tools I'm not sure if both tools will work at the same time. However, in most cases you probably would want only one of those tools enabled at a time.

rajnishv 09-01-2016 02:57 AM

Tools behavior in different modes
 
1 Attachment(s)
Hi Jeff,
I have achieved the grabbing and highlighting logic in the program.The problem was due to,i forgot to write the onGrab(e) and onRealease(e),but after this correction and using tool.setItems(shapes) for both(Grabber & Highlighter),it get working but have some issues.

I have some problems & question,request u to pls assist me:
1)I have use same input (as mouse or keyboard or joystick) with different input signals for both the tools and i have used highlight mode grabber is 'outline' and the highlight mode for higlighter is 'box' both works and but when i keep the highlight mode for both the tools as 'same' highlighter works but grabber fails to grab that object.

2)Sometimes when i move in the scene ,some objects gets grabbed and during the movement whne i again try to grab the same object the object doesnt gets grabbed.
Why such behaviour does Vizard performs?

3)Does grabber highlight mode and highlighter mode affects the grab and highlight operation in both the ways?

4)Does taking multiple tools affects the tools taken into vizconnect?

5)Last but not the least,how to activate a tool and deactivate a tool if more than 2 or multiple tools ,such that we can use only one at a time and vice versa.
Waiting for ur reply jeff.


Thanx&Regards
Mr.Rajnish Vishwakarma
Mobile,AR,VR
Xenium Digital Pvt ltd,Mumbai

rajnishv 09-02-2016 05:18 AM

Hi Jeff,requesting you to pls reply to my last post.
Thank you!!

#-------------------------------------------------------------------------------#
Hi Jeff,
I have achieved the grabbing and highlighting logic in the program.The problem was due to,i forgot to write the onGrab(e) and onRealease(e),but after this correction and using tool.setItems(shapes) for both(Grabber & Highlighter),it get working but have some issues.

I have some problems & question,request u to pls assist me:
1)I have use same input (as mouse or keyboard or joystick) with different input signals for both the tools and i have used highlight mode grabber is 'outline' and the highlight mode for higlighter is 'box' both works and but when i keep the highlight mode for both the tools as 'same' highlighter works but grabber fails to grab that object.

2)Sometimes when i move in the scene ,some objects gets grabbed and during the movement whne i again try to grab the same object the object doesnt gets grabbed.
Why such behaviour does Vizard performs?

3)Does grabber highlight mode and highlighter mode affects the grab and highlight operation in both the ways?

4)Does taking multiple tools affects the tools taken into vizconnect?

5)Last but not the least,how to activate a tool and deactivate a tool if more than 2 or multiple tools ,such that we can use only one at a time and vice versa.
Waiting for ur reply jeff.


Thanx&Regards
Mr.Rajnish Vishwakarma
Mobile,AR,VR
Xenium Digital Pvt ltd,Mumbai

Jeff 09-08-2016 04:48 AM

I tested using the same highlight method for both grabber and highlight and the grabbing worked fine. Can you post example code that shows the issue?

Once you get a handle to a tool you can call the setEnabled method on it with viz.ON, viz.OFF, or viz.TOGGLE:

Code:

grabber = vizconnect.getTool('grabber')
grabber.setEnabled(viz.OFF)



All times are GMT -7. The time now is 05:38 AM.

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