#1
|
|||
|
|||
Vizconnect grabber grab area
Hello,
I am able to get the grabber tool working with vizconnect but the hotspot for grabbing an object seems to be the same size at the center or pivot of the object no matter how large or small the object is. For example here is a code snippet with two cubes. The one on the left is easily highlighted and grabbed where as the larger cube on the right can still be grabbed but is very difficult to see where the hand is or if you are close to the center of the cube to make the grab. Code:
import viz import vizconnect import vizshape vizconnect.go ('vizconnect_desktop.py') scene = viz.addChild ('piazza.osgb') smallBox = vizshape.addBox (size = (1,1,1)) smallBox.setPosition ([0, 1, 0]) bigBox = vizshape.addBox (size = (5,5,5)) bigBox.setPosition ([6, 3, 0]) tool = vizconnect.getRawTool ('grabber') tool.setItems ([smallBox, bigBox]) Thanks! |
#2
|
|||
|
|||
Thanks for the example, I'll check with a developer about this.
|
#3
|
|||
|
|||
The grabber tool intersection test is based on the distance to the center of the object. You can, however, modify the distance test used so that it works with the bounding box. The attached example should work, but this is not officially supported code.
|
Tags |
grabber, tool, vizconnect |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Zspace display in Vizconnect | JB_HP_Viz | Vizard | 5 | 06-05-2015 03:28 PM |
Switching between input devices setup in vizconnect and not using vizconnect | JB_HP_Viz | Vizard | 1 | 01-20-2015 05:19 AM |
delete hand in vizconnect | rvenegas | Vizard | 4 | 06-05-2014 10:17 PM |
Vizconnect Save As Dialog | Jeff | Vizard | 0 | 05-01-2014 09:45 AM |
Setting up a 'reaction area' | Karthi | Vizard | 4 | 01-29-2004 04:39 PM |