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.
Regards,
Biswajit
> -----Original Message-----
> From: david Xia [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, November 05, 2000 9:26 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Color interpolation for all the Point3f question
>
> Hi,all:
>
> I have a question about color. I have many points,Point3f,whose
> coordinate is (x,y,z), z represent Temperature,for example,x,y represent
> position. I want the minimum z value represent the Blue color, the maxium
> z
> value represent the RED color, the z value between the minimum and maximum
> should get the proper color according to their value according to
> interpolation of z, so that when you look at the color, you can know if it
> is cold or hot.
>
> How can I get the color's RGB value for all of the Point3f points? What
> is
> the algorithm to do it?Can anyone give some idea or code example about it
> or
> point me to some websites?
>
> Thank you very much!
>
> David
===========================================================================
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".