Hi Art, I never wrote a shader so I think I will not learn this afternoon. I was thinking on scanning all pixel, but the real problem is not how to get the pixel, but how to write the png file with the background as transparent color. I don't know if it is possible to do that just modifying A component in a RVBA image ... or something else ?
Thanks. Regards, Vincent. 2009/2/23 Art Tevs <[email protected]> > Hi Vincent, > > I would propose to change colors in a shader, this would be the simplest > way. Just take the osgPPU, with following structure: Processor->UnitInOut > (here is your shader) -> UnitOutCapture (this will write the .png files). > Should be very easy. > > Other way would be to take the picture of the rendered camera and to apply > the shader on it, by rendering screen size aligned quad with appropriate > shader (the same what osgPPu does ;) ). > > And the non-efficientest way would be just to scan through all your pixels > on the CPU and just change the colors in the way you need them. > > cheers, > art > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=7200#7200 > > > > > > _______________________________________________ > 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

