OK, you are right, but that is not my problem. I don't want the shadow texture, which need the DEPTH_BUFFER. I want the "final" rendering in my texture.
The basic graph looks like this: ROOT | rtt_cam (the result has no shadows) | shadowedScene (with StandardShadowMap) | camera (is also a render to texture camera) I hope it is better explanation of my problem. Cheers Martin -------- Original-Nachricht -------- > Datum: Wed, 16 Feb 2011 16:19:09 +0100 > Von: "Wojciech Lewandowski" <[email protected]> > An: [email protected] > Betreff: Re: [osg-users] StandardShadowMap and Render To Texture > Maybe your problem is related to the fact that Shadow maps are usually > stored in DEPTH_BUFFER (not COLOR_BUFFER). > > Wojtek Lewandowski > > -----Original Message----- > From: "Martin Großer" > Sent: Wednesday, February 16, 2011 3:47 PM > To: [email protected] > Subject: [osg-users] StandardShadowMap and Render To Texture > > Hello, > > Every day a new problem. :-) > Ok, so my Render To Texture works, but my shadows are not visible in the > texture (rendertarget). > > My Settings: > > rtt_cam->setRenderOrder(::osg::Camera::PRE_RENDER, 0); > rtt_cam->setRenderTargetImplementation( osg::Camera::FRAME_BUFFER_OBJECT > ); > rtt_cam->attach(::osg::Camera::COLOR_BUFFER, rtt_tex, 0, 0); > > Is the Problem the pre rendering? Because the standard shadow map has also > a > pre render camera. I am not sure which camera do the first rendering. > Or is it another Problem? > > Cheers > > Martin > -- > NEU: FreePhone - kostenlos mobil telefonieren und surfen! > Jetzt informieren: http://www.gmx.net/de/go/freephone > _______________________________________________ > 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 -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

