Hello Abdalla,
abdalla ramadan wrote:
> Hello,
>
> I want to render to grabforeground, but i want non rendered area be with
> alpha 0, it always give me all the image i render to with alpha 1.
> I even tried to but solid back ground and set it's alpha to 0 but it
> didn't work, not having background at all didn't work too, thanks every
> one for advance.
hm, a SolidBackground with alpha 0 should work.
Did you set a pixel format that holds alpha values for the image that is
used with the GrabForeground ?
Basically the GrabForeground boils down to this:
glReadPixels(port->getPixelLeft(), port->getPixelBottom(),
w, h, i->getPixelFormat(),
i->getDataType(), i->getData());
where port is the Viewport and i is the Image. Since there is nothing
complicated going on in there I'm a bit at a loss as to what might go
wrong. Are you able to create a small (tutorial style) program that
reproduces the problem? That would be a great help to find out what the
problem is,
Thanks,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users