PDA

View Full Version : Compositing 2 images



jf
08-15-2002, 07:02 AM
I want to composite 2 images and display it on a plane. I want to have 75% of the first image and 25% of the second.

I am able to display the first image and the second separatly but I am not able to blend both with a factor that I control.

How can I do it?

coelurus
08-15-2002, 08:02 AM
There is a handy extension: envcombine. Check it out.
If you got an Nvidia card, try regcoms, they're very useful.

bsenftner
08-15-2002, 09:02 AM
Hows about very simple vertex alpha? Something like render the first image at 100% opacity and then the second at 25% opacity. The result would be 75% the first and 25% the second. Unless I'm missing something here....

jf
08-15-2002, 10:36 AM
My error was very stupid ;-)

I use 0-1 not 0-255 value range when setting the alpha in the texture.