Is there a way in osg to have "pickable" bitmaps that have always a constant screen size. These object should represent a 3D location. Exactly like a google earth location.
To do this I'm using pointsprites but I can't pick them...
jOan Abadie
2006/6/9, Ulrich Hertlein <[EMAIL PROTECTED]>:
jOan wrote:
> I have a problem with pointsprite and Collision detection.
>
> I'm building a pointSprite in the same way as in sample osgpointsprite (
> osg::Geode with a Pointsprites stateset).
> I'd like to pick my object with an associated pointsprite stateset like
> in the osg-Picking example. I can not pick it !
Pointsprites are just points to the intersection algorithm and so suffer
the same problem as picking lines i.e. they have no size. You have to
use a swept sphere or something like it to pick a volume instead of a
infinitely thin line.
There was a thread on the mailing list a while ago that might help you
along.
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
jOan
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
