Also replace 1/4 by 3, 3/4 by B (while replacing 1 by F)
replace 1/4 by 44, 3/4 by CC (while replacing 1 by FF)...
> -----Original Message-----
> From: Biswajit Ghoshal
> Sent: Monday, November 06, 2000 4:19 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JAVA3D] Color interpolation for all the Point3f
> question
>
> Hi Andreas,
>
> You have almost got it!! However, I think that is the only way to keep up
> the consistency. As z rises from lowest point towards the highest point,
> blue should slowly turn red, and as such it will go through all the
> intermediate colors - all the combinations between blue and red, without
> any green anywhere ! I think that's what David asked for.
>
> For linear fitting some of the points may be like :
>
> On a 0 to 1 scale :
> z_min : R = 0 ; G = 0 ; B = 1
> z_quarter : R = 1/4 ; G = 0 ; B = 3/4
> z_mid : R = 1/2 ; G = 0 ; B = 1/2
> z_3-quarter : R = 3/4 ; G = 0 ; B = 1/4
> z_max : R = 1 ; G = 0 ; B = 0
>
> On Hexadecimal scale, replace 1 by F. For standard HTML coloring replace
> 1 by FF etc.
>
> Warm Regards,
> Biswajit
>
> -----Original Message-----
> From: Andreas Ebbert [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 06, 2000 3:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Color interpolation for all the Point3f
> question
>
> Hi,
>
> Biswajit Ghoshal wrote:
> >
> > Hi David,
> >
> > What is the equation between x, y and z? This is a typical problem of
> > curve-fitting. You must know z's highest and lowest values (even if
> they
> > are +/- infinities), which will correspond to 1 and 0 values of R; and 0
> and
> > 1 for B; G will always be 0. Also z's values will be directly
> proportional
> > to Blue and inversely proportional to Red. G will remain 0 throughout.
> I
> > think that's all about the idea.
>
> But then you would get some grey for medium z-values, don't you? You
> should think about what color the medium z-values should have and
> interpolate between these three points. for example:
>
>
> z_min : R = 0, G = 0, B = 0
> z_mid : R = 1, G = 0, B = 1
> z_max : R = 0, G = 0, B = 1
>
> That way you get violett for medium temperatures (if that is what you
> desire :-)
>
> Best Regards,
>
> Andreas
>
> ==========================================================================
> =
> 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".