From: Paolo Gibellini
Subject: Color of a point
Date: 25 Feb 2005 10:47:58
Message: <421f48ae@news.povray.org>
Hallo!
I'm writing a simple macro in order to cover of scales an object, and my
purpose is to assign to each scale the color of the surface of the object in
the point of tangency with the scale itself.
The question is...
...is possible to determinate the color of a point of given coordinates in
POV-Ray?
Thank you in advance,
;-)
Paolo
From: Marc Jacquier
Subject: Re: Color of a point
Date: 25 Feb 2005 11:09:46
Message: <421f4dca$1@news.povray.org>
news:421f48ae@news.povray.org...
> Hallo!> I'm writing a simple macro in order to cover of scales an object, and my> purpose is to assign to each scale the color of the surface of the object
in
> the point of tangency with the scale itself.> The question is...> ...is possible to determinate the color of a point of given coordinates in> POV-Ray?>> Thank you in advance,> ;-)> Paolo>>
try
eval_pigment(Pigm, Vect)
"Pigm" being your predeclared pigment and "Vect" being coordinates of the
point you are testing (beware object tranformations)
Marc
From: Paolo Gibellini
Subject: Re: Color of a point
Date: 28 Feb 2005 04:41:54
Message: <4222e762$1@news.povray.org>
It works, but only if the object to be covered by scales has only a pigment.
It's however a step further...
Thank you,
;-)
Paolo
"Marc Jacquier" ha scritto nel messaggio news:421f4dca$1@news.povray.org...
> try> eval_pigment(Pigm, Vect)> "Pigm" being your predeclared pigment and "Vect" being coordinates of the> point you are testing (beware object tranformations)>>> Marc>>