Talk About Network

Google





Graphics > OpenGL 3D API > Re: Is there a ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 4779 of 5061
Post > Topic >>

Re: Is there a way...?

by Paul Geisler <paul.geisler@[EMAIL PROTECTED] > Jun 27, 2008 at 02:03 AM

I think there is no operation for RGB data doing that. But there is
GLSL, which allow you to code a little program that is executed for
every pixel drawn ("FragmentProgram"). With this you could do any keying
operation you like. Quite complicated way, though.


Judie schrieb:
> Hi,
> 
> Lets say I have two images in memory. The first image is black and
> white (single channel - no alpha), the second one is RGB (no alpha)
> and has a black background.
> 
> My goal is to draw the first BW image to the color buffer in its
> entirety. And then to draw the second one over it making the second's
> black background transparent without having to modify the image i.e.
> add an alpha channel. That way the first image will show through where
> the second image was black. If I could use a 2D Blit operation I could
> specify that the color black was transparent. Is there an equivalent
> type of operation in OpenGL?
> 
> Thanks,
> 
> Judie
 




 3 Posts in Topic:
Is there a way...?
Judie <judie.m.stanley  2008-06-03 14:00:45 
Re: Is there a way...?
Paul Geisler <paul.gei  2008-06-27 02:03:03 
Re: Is there a way...?
"jbwest" <jb  2008-06-26 20:20:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 17:36:46 PST 2009.