Ok:
Example:
RGB values: SRC Color (1.0,0.0,0.0) DST: Color: x,y,z
f_src = BLEND_ZERO
f_dest= BLEND_SRC_COLOR (not avilable in J3D)
final color:
r: 0.0 * 1.0 + 1.0 * x = x
g: 0.0 * 0.0 + 0.0 * y = 0.0
b:0.0 * 0.0 + 0.0 * z = 0.0
-> only the red component of DST is rendered, i.e. all other components are
filtered out.
regards
Paul
Joachim Diepstraten schrieb:
> Hi Paul (sorry about the K in my last message typo)
>
> > * BLEND_ZERO - the blend function is f = 0.
> > * BLEND_ONE - the blend function is f = 1.
> > * BLEND_SRC_ALPHA - the blend function is f = alphasrc.
> > * BLEND_ONE_MINUS_SRC_ALPHA - the blend function is f = 1 - alphasrc.
> >
> > which take the alpha value (or 0 or 1) in the blending equation.
> > What I want is
> > the color itself to be used in the blending equation, which is necessary to
> BLEND_ONE is what you're looking for or simply:
>
> final_color = f_src * src_color + f_dest * dest_color
>
> BLEND_ONE would mean
>
> final_color = 1 * src_color + f_dest * dest_color
>
> BLEND_ZERO would mean
>
> final_color = 0 * src_color + f_dest * dest_color
>
> BLEND_SRC_ALPHA would mean
>
> final_color = alpha_src * src_color + f_dest * dest_color
>
> BLEND_ONE_MINUS_SRC_ALPHA would mean
>
> final_color = (1-alpha_src) * src_color + f_dest * dest_color
>
> Hope this helps though I am not sure what sort of filter you're looking
> for.
>
> EOF,
> J.D.
>
> --
> Jmark2k+1 (http://www.antiflash.net/jmark)
> Test the performance of your PC online!
>
> ===========================================================================
> 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".