Hello Michael,

On 03/20/2014 06:31 AM, Michael Raab wrote:
> Hi, this issue is solved, too.
> this->_ract->registerEnterFunction(OSG::Geometry::getClassType(),
>          boost::bind(IDBufferSelectionHelper::onEnterGeometry, _1, _2));
> did the job. Thus IDbuffer selection via back buffer rendering works again.

ok, great. $DAYJOB and a traffic jam on the way home ate up all my time 
to look into this yesterday.

> 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?

In Examples/Simple/fbotexture.cpp is code that shows how to use the 
SimpleStage to redirect rendering into a texture - I think that should 
cover most (all?) that is needed to use it for colour selection as well.

        Cheers,
                Carsten

------------------------------------------------------------------------------
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

Reply via email to