Page 1 of 1

Transparency questions

PostPosted: Feb 13, 2006 @ 9:36am
by no pockets

PostPosted: Feb 13, 2006 @ 9:40am
by no pockets

PostPosted: Feb 13, 2006 @ 9:45am
by no pockets
Also, I have useful function in my GapiDraw projects which sets transparent color automatically, like the following code for PF. But this doesn't work. I guess I need to convert color data somehow, could smbdy tell me how?

void pickTransparent(Surface* s, int x, int y) {
Rasterizer r(s);
Pixel p = r.GetPixel(x, y);
s->SetColorMask(p);
}

Thank you.

PostPosted: Feb 13, 2006 @ 2:55pm
by Conan

PostPosted: Feb 13, 2006 @ 3:41pm
by no pockets

PostPosted: Feb 13, 2006 @ 3:45pm
by no pockets

PostPosted: Feb 13, 2006 @ 4:01pm
by muff

PostPosted: Feb 13, 2006 @ 4:45pm
by no pockets

PostPosted: Feb 13, 2006 @ 7:07pm
by Presto

PostPosted: Feb 13, 2006 @ 7:30pm
by no pockets

PostPosted: Feb 14, 2006 @ 8:59am
by jaguard
3 would be something like:

display->SetRenderTarget(surface);
colormask = display->Getpixel(0,0);
display->SetRenderTarget(NULL);
surface->SetColorMask(colormask);

1 is mentioned a lot here, and implemented by fast_rx, and IIRC included into bigben patch http://www.pocketmatrix.com/forums/view ... hp?t=21765.

PostPosted: Feb 14, 2006 @ 6:45pm
by BIGBEN

PostPosted: Feb 15, 2006 @ 1:23pm
by no pockets