Re: [osg-users] Bigger bounding box to make picking (intersection) easier?

2014-03-31 Thread Alistair Baxter
osg::Box is the thing you are after. Create a ShapeDrawable for one, and add it to a group that is part of, or that contains your cow model. Then set node flags or a cull callback to make the ShapeDrawable invisible, and if you like, you could also set flags on the intersection visitor to only

[osg-users] BoundingBox centre location after PossitionAttitudeTransform translation/rotation

2014-03-31 Thread Petr Svoboda
Hi, I render a scene with objects on which I test linesegment intersection. I want to achieve this: If I point to an object I want to visualise it somehow (create BoundingSphere over that *.OSG model) and for that I use ShapeDrawable-Sphere with StateSet to PolygonMode which works nicely.