I wanted to merge the two textures using multitexturing. I wanted to render the alpha first, and then use the stored alpha values to specify how to blend a RGB texture with the already rendered RGB values.
 
I'm bit unsure about how multi texturing is implemented in Java3D. Of the two stated possibilities 1) and 2) my guess would be 1):
 
* is the texturing operation
C' = result
C = content in framebuffer
Ct1 = texture 1
 
1)
C' = (C * Ct1) * Ct2  - conceptually like a rendering of a list of single textures
 
2)
C' = C * (Ct1 * Ct2) 
 
 If a blend option like GL_DTS_ALPHA was available, then it could be done.
 
Allan
----- Original Message -----
Sent: Friday, September 21, 2001 8:25 PM
Subject: Re: [JAVA3D] Can multi texturing do this: Alpha + RBG = RGBA?

Yes it is.  Currently multi-texturing is only using a MODULATE blending.  This means the two textures are multiplied together.  So assuming you had two textures A and B, and A had an alpha of all 1's and B had all 0.5, then the resultant texture would be 0.5 for all the alpha's.
 
What you can't do it merge two textures together based on an alpha map and multitexturing, which is generally what people want to do.  So for example you cannot achieve a result for the red channel by (RedA * AlphaA) + (RedB (1-AlphaA)).
 
David Yazel
Cosm Development Team
http://www.cosm-game.com
-----Original Message-----
From: Allan Andersen [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 1:07 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Can multi texturing do this: Alpha + RBG = RGBA?

Hi,
 
Using multi texturing is it possible to "bake" a texture where the two ingrediens are a RGB texture and a ALPHA texture, where the results appears to be a "RGBA" texture which is applied to some geometry.
 
Allan Andersen 

Reply via email to