|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Are both tools mapped to the same input signals?
|
#3
|
|||
|
|||
Regarding changing &using multiple tools at same time through vizconnect
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 ? |
#4
|
|||
|
|||
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 |
#5
|
|||
|
|||
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) |
#6
|
|||
|
|||
Tools behavior in different modes
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 Last edited by rajnishv; 09-01-2016 at 03:06 AM. |
#7
|
|||
|
|||
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 |
#8
|
|||
|
|||
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) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
timer question | Elittdogg | Vizard | 5 | 10-10-2007 02:49 PM |