Hi Joachim,
The new Dot3 combine mode only takes two color sources.
If you refer to the javadoc for TextureAttributes.java
COMBINE_DOT3 :
C' = 4 * ((C0_r - 0.5) * (C1_r - 0.5) +
(C0_g - 0.5) * (C1_g - 0.5) +
(C0_b - 0.5) * (C1_b - 0.5))
where C0 and C1 are the two color sources.
The value C' will be placed to the all three r,g,b components of the output.
-Charmaine
> Delivered-To: [EMAIL PROTECTED]
> MIME-Version: 1.0
> Date: Thu, 20 Dec 2001 10:10:10 +0100
> From: Joachim Diepstraten <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Question concerning Dot3 Texturecombiner
> To: [EMAIL PROTECTED]
>
> Hi
>
> I've got a question concerning the new Dot3-Texture-Combine mode.
> I slightly got the feeling that something is not right with it.
> The third combine source doesn't seem to have any effect on the
> final result. If I've understood it right the Dot3-Combiner works
> this way first it calculates the dot3 product between the first
> two sources and then saves the results in the r,g,b components.
> This result will be used to calculate another dot3 product
> with the third source and the final result is again saved in
> the r,g,b, right? So the funny thing is I've got following
> constellation:
>
> First source Texture_Color
> Second source Constant_Color (1.0f, 1.0f, 1.0f)
> Third source Previous_Texture_Unit_State
>
> The Texture used as first source is constant filled with RGB
> 255/255/255 (which would be 1.0f, 1.0f, 1.0f) the third
> source uses a real grayscale texture. But the result I see on
> the screen is just a complete white object. I'm using the
> Win32/OpenGL implementation of J3D1.3beta1 on a Geforce2MX400.
>
> Another question is it possible to deactivate the third source
> I don't really see a real use for it. Better 2 or 4 sources
> but 3 is in my opinion quite useless. Or use the third
> source rather as modulate/multiply combine instead of dot3
>
> EOF,
> J.D.
>
> --
> Explore SRT with the help of Java3D
> (http://wwwvis.informatik.uni-stuttgart.de/relativity/minkowski)
> (http://www.antiflash.net/java3d/relativity (mirror)
>
> ===========================================================================
> 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".
===========================================================================
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".