Hello Constantin, > Datum: Fri, 15 Oct 2010 10:42:05 +0200 > Von: "Constantin Müller" <constantinmuelle...@googlemail.com> > The readback seems to work, but if I render the scene multiple times > and change the cameras nearplane, there is no change in the Image. If > the nearplane is behind all geometry the buffers get cleared with '0' > and the image is read back again. > When I change the nearplane back to a value in front of the geometry, > the image stays unchanged filled with '0'. > > The fbo->PostProcessOnDeactivate and the readback of the attachments > are set to true every time the scene is rendered. > > Have you any idea, what could cause this behaviour?
hm, I'm afraid nothing comes to mind that would explain this. One possibility is that the Stage used to render into your FBO is itself being culled - can you set the volume of the stage's node to infinite? Beyond that I'm not sure where to look for the problem, it sounds a bit as if somewhere the modified near value is cached and not updated correctly, but why does it update the first time you change it? Can you run your program under an OpenGL debugger [1] to see if the scene is being frustum culled by OpenSG (i.e. no draw calls are being made), is outside OpenGLs camera volume (i.e. camera values are not correctly updated) or if for some reason the read back stops working? That would be very helpful to figure out where to look more closely at the code. Cheers, Carsten [1] if you do, please send me the log off-list (it will probably be too big for the attachment size filter), thanks! -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users