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 3 of 3 Topic 4779 of 5061
Post > Topic >>

Re: Is there a way...?

by "jbwest" <jbwest@[EMAIL PROTECTED] > Jun 26, 2008 at 08:20 PM

"Paul Geisler" <paul.geisler@[EMAIL PROTECTED]
> wrote in message 
news:6cip1dF3h7nbvU3@[EMAIL PROTECTED]
>
> 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

A pixel shader would be simple enough.
If you are stuck with fixed pipeline, how about one multitexture with a 
GL_ADD texture environment ? Not quite right but ...
Maybe you can rig it coorectly with a tricky texture environment

jbw
 




 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 15:27:01 PST 2009.