Hi Art,

I do not use any RTT texture, just use _image->readPixels() to get screen
capture. I verified, result->getPixelSizeInBits()/8 remain = 4 so it is a
RGBA image.
No background or black geometry, ... If I change clear color to white, I
have the white background...
I use Gimp and Photofiltre to check the transparency

I just check/force all camera's clear color... no changes.

I'm trying to change pixel value looping on image's data ... but now the png
plugin tells me the image is not good for writing... I'm missing some point
or making a mistake...

Sorry, nothing works...

If you have any other idea or some image's data modification code... I'll be
grateful.

Regards,
   Vincent.


2009/2/23 Art Tevs <osgfo...@tevs.eu>

> Hi Vincent,
>
> you have to set alpha to 0.0 for transparent pixels. Check if your RTT
> texture has the right format. In my case setting setClearColor(osg::Vec4(0.,
> 0., 0., 0.));  on the rendering camera always works.
> Check if there are no slave camera which can overwrite the settings. Check
> also if you can really see the background, maybe there are no background
> pixels at all (I mean maybe they are overwritten by some black geometry or
> so).
> And finally check also if your image editing program do shows the alpha
> channel correctly (just for the case). I use gimp for that case.
>
> regards,
> art
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=7228#7228
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to