Ok, after much thought, I don't think this is possible, and here is why.

We have the RGBA in 4 separate 8bit/pixel images. The operation we want to
accomplish is
lshift(R,24) + lshift(G,16) + lshift(B,8) + A. However, we're trying to
accomplish this with a BLEND, which has the form of

    C' = Brgb Trgb + Crgb (1 - Trgb)

This doesn't work. Suppose the red unit run and colors the object red. Now,
let the blue unit run, there is no setting of Trgb (0 through 1) such that
both red and blue can be sampled and combined at full saturation. What we
would like to be able to do is

    C' = [ B0rgb T0rgb + Crgb (1 - T0rgb) ] + [ B1rgb T1rgb + Crgb (1 -
T1rgb) ]

That is

    C' = [ interpolation with unit 0 ] + [ interpolation with unit 1 ]

or

    C' = sum of the results of 2 units

which is not possible since no combiner operation allows us to reference
more than one unit's results.


To get what you want, you'll have to preprocess the images in software
somehow. I'm not sure how. Sorry

-Stoney

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to