Hi Romain,

OpenGL selection is far slower than using CPU based ray intersections,
as it requires a round trip to the GPU, so I certainly wouldn't
recommend this.

Instead I'd recommend looking at why your line intersections are
taking so long to complete.  Most of the models I have I find the
intersection traversal is just quick, and just a 1ms or two even for
quite big models.  Using KdTree's attached to the geometry leaves can
be used to massively speed up intersections so perhaps this is
something worth looking at.

Robert.

On Wed, May 6, 2009 at 5:03 PM, Romain Charbit <romain.char...@gmail.com> wrote:
> Hi,
>
> May I ask your guidance for a problem that I have.
>
> I want to change the cursor of the mouse in function of the object that is 
> under of it. Example, when I'm passing the mouse over a dragger, I want to 
> change the cursor to a Hand.
>
> I'm on the detection of the object for the moment. I'm using a handler which 
> use a LineSegmentIntersector on every frame. It works but it's kind of slow.
>
> I've seen on the web about the GL_SELECT OpenGL renderMode which has been 
> design for it. But I've also seen that it's not a good way to do that.
>
> Maybe someone has already done something like this or has an idea about it?
>
>
> Thank you!
>
> Cheers,
>
> Romain Charbit
>
> ------------------------
> Romain Charbit
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=11520#11520
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to