Hi, this issue is solved, too.
this->_ract->registerEnterFunction(OSG::Geometry::getClassType(),
boost::bind(IDBufferSelectionHelper::onEnterGeometry, _1, _2));
boost::bind(IDBufferSelectionHelper::onEnterGeometry, _1, _2));
did the job. Thus IDbuffer selection via back buffer rendering works again.
What I would like to achieve additionally is do the selection via FrameBufferObject.
Looking at the source code and examples I have no clue to render a or several viewports to a FBO.
Can someone give a hint or some code snippet?
Thanks in advance,
Michael
Gesendet: Mittwoch, 19. März 2014 um 11:38 Uhr
Von: "Michael Raab" <michael-r...@gmx.de>
An: opensg-users@lists.sourceforge.net
Betreff: [Opensg-users] IDBuffer
Von: "Michael Raab" <michael-r...@gmx.de>
An: opensg-users@lists.sourceforge.net
Betreff: [Opensg-users] IDBuffer
Hi Carsten,
I'm trying to convert our IdBuffer selection handling from 1.8 to 2.0. In 1.8 used custom renderEnter/renderLeave functions to achieve the id-coded rendering, i.e.
this->_ract->registerEnterFunction(OSG::Geometry::getClassType(),
OSG::osgTypedFunctionFunctor2CPtrRef<
OSG::Action::ResultE,
OSG::CNodePtr,
OSG::Action * >(
IDBufferSelectionHelper::onEnterGeometry ) );
OSG::osgTypedFunctionFunctor2CPtrRef<
OSG::Action::ResultE,
OSG::CNodePtr,
OSG::Action * >(
IDBufferSelectionHelper::onEnterGeometry ) );
with
class IDBufferSelectionHelper {
static osg::Action::ResultE onEnterGeometry( osg::CNodePtr& pNode, osg::Action * action );
}
Is it possible to achieve this with OpenSG 2.0, too? I tried something like this:
this->_ract->registerEnterFunction(OSG::Geometry::getClassType(),
boost::bind(&IDBufferSelectionHelper::onEnterGeometry, this));
boost::bind(&IDBufferSelectionHelper::onEnterGeometry, this));
with
class IDBufferSelectionHelper {
static OSG::Action::ResultE onEnterGeometry( const OSG::NodeCore* core, OSG::Action * action );
}
But to me it seems that the called object needs to inherit from NodeCore? Could you please give me a hint if and how this is solvable?
Thanks,
Michael
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech
_______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users