Hello Carsten,
 
fboStageSubTreeVisit->setSubTreeRoot(someNode); fixed the "no result error"! Thanks.
 
The other still remains and I think I found the reason. As temporary window I use a PassiveWindow. When this gets destructed is sets the current Context to NULL.
To be honest I have no idea why this is done and what the main idea behind the PassiveWindow is. Maybe you can give a short summary?
 
Regards,
Michael
 
Gesendet: Freitag, 18. April 2014 um 10:37 Uhr
Von: "Carsten Neumann" <carsten.p.neum...@gmail.com>
An: opensg-users@lists.sourceforge.net
Betreff: Re: [Opensg-users] OpenSG 2.0 - Render and read back depth buffer using FBO
Hello Michael,

On 04/16/2014 04:59 PM, Michael Raab wrote:
> OSG::VisitSubTreeUnrecPtr fboStageSubTreeVisit =
> OSG::VisitSubTree::create();
> OSG::NodeUnrecPtr pVisitNode = OSG::Node::create();
> pVisitNode->setCore(fboStageSubTreeVisit);
> OSG::StageUnrecPtr pStage = OSG::Stage::create();
> pStage->setRenderTarget(fbo);
> OSG::NodeUnrecPtr fboStageNode = OSG::Node::create();
> fboStageNode->setCore(pStage);
> fboStageNode->addChild(pVisitNode);

I think there is a call like
fboStageSubTreeVisit->setSubTreeRoot(someNode); is missing, i.e. the
VisitSubTree has nothing to actually visit.

> There are 2 things that I could discover:
> 1.) I don't get any result :-(
> 2.) And more significant, after the one attempt, my main rendering seems
> to be broken. It starts flickered .. only every second image is rendered
> correctly, the others remain black!

However, 2.) should not happen even in that case; I'll see if I can
reproduce it.

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/NeoTech
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to