Hi Neil,

The osgManipulator library will be using ray intersection with the tab
polygons, ray intersection won't work on lines.

Could you try leaving the osgManipulator code alone and toggling the
display mode of the polygons using a osg::PolygonMode state attribute
attached to a StateSet above the manipulator subgraph.  Have a look at
the osgscribe example to see osg::PolygonMode in action.

Robert.

On Tue, Jan 12, 2010 at 1:50 AM, Neil Clayton <[email protected]> wrote:
> Hi,
>
> I've modified a dragger node so that instead of drawing using GL_POLYGON, it 
> uses GL_LINE_LOOP.
>
> When using polygon mode, I can click and drag the handle - and all is well. 
> When using any kind of LINE (Strip/Loop etc) the clicks are ignored.
>
> Any idea why this might be?  I added debug info to BoundingSphere 
> Geode::computeBound(), and it's returning non-empty (from a radius point of 
> view) bounds in both cases (LINE or POLYGON mode).
>
> Do draggers respond to clicks only in certain cases? Is there some change I 
> have to make to get a dragger node to work when drawn as a line?
>
> Thank you!
> Neil
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=22420#22420
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to