Re: [osg-users] RTT with FBO then copy Texture to image using PBO results in blank image.
art wrote: Hi Steven, I've tried assigning the attached texture (without running the callback) to a quad in the scene and it is still blank. If your RTT texture is black without any post processing, so maybe you forgot to add any scene below your RTT camera in the scene graph? For example your scene graph can look like this: root | +--- rtt camera -- (scene) | +--- main camera -- (scene) Also check if your transformations of the rtt camera are correct. It happens sometimes, that one just don't see anything in the RTT cameras, because rtt camera is just looking in wrong direction. Oh, also to copy your processed data into an image, there exists already classes in osg, which can do this. See osg::PixelBufferObject or osg::PixelBufferDataObject. Also for any processing of your textures, it is easier to use osgPPU for that task ;) cheers, art unfortunately this is not the case. If I attach an osg::Image , rather than an osg::Texture, to the camera I will get the correct frame buffer output. Of course the work done by the third party software is done after the osg::Image is populated by OSG. Any other ideas? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16040#16040 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] RTT with FBO then copy Texture to image using PBO results in blank image.
Hi Steven, I've tried assigning the attached texture (without running the callback) to a quad in the scene and it is still blank. If your RTT texture is black without any post processing, so maybe you forgot to add any scene below your RTT camera in the scene graph? For example your scene graph can look like this: root | +--- rtt camera -- (scene) | +--- main camera -- (scene) Also check if your transformations of the rtt camera are correct. It happens sometimes, that one just don't see anything in the RTT cameras, because rtt camera is just looking in wrong direction. Oh, also to copy your processed data into an image, there exists already classes in osg, which can do this. See osg::PixelBufferObject or osg::PixelBufferDataObject. Also for any processing of your textures, it is easier to use osgPPU for that task ;) cheers, art -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15998#15998 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] RTT with FBO then copy Texture to image using PBO results in blank image.
Hi, I should add that the RTT Texture is attached to one of two osg::Cameras in the scene. Thank you! Cheers, Steven -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=15983#15983 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org