Hi Harold, There is no connection between the intersection traversal and shaders, the IntersectionVisitor ignores state completely.
What is probably the problem is how the Effect node is interacting with the intersection traversal. Go put some break points in your code to see what is happening during the intersection traversal. Robert. On Wed, Jul 29, 2009 at 10:59 AM, Harold Comere<[email protected]> wrote: > Hi all, > > I will time to explain my problem clearly this time :) > > I use osg::View::computeIntersections to get the picked node. > When a node is picket, i apply a shader effect. > The select effect is done by a class SelectEffect wich inherate of > osgFX::Effect. > To apply the select effect i insert a SelectEffect between the picked node > and its parent. > Then to remove the effect, i delete the SelectEffect and restor initial > parent. > > The problem is when i call osg::View::computeIntersections, it do not > intersect nodes with an select effect applied. > If i display the intersected drawable list returned by computeIntersections, > before and after have applied the select effect on the node containing the > picked drawable, the drawable simply disapear from list. > > Is there any link between shaders and osg::View::computeIntersections ? I > cant get it from source code. > > Thanks for your attention, > Regards, > > Harold > > _______________________________________________ > 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

