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".

Reply via email to