POV-Ray : Newsgroups : povray.general : 3.2.1.6.5 in docs--clarification needed : Re: 3.2.1.6.5 in docs--clarification needed Server Time
29 Jul 2024 10:31:41 EDT (-0400)
  Re: 3.2.1.6.5 in docs--clarification needed  
From: Kenneth
Date: 27 Feb 2013 17:30:01
Message: <web.512e8868ef3a5b59c2d977c20@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
>
> For what it does:
>
> #declare Vec = foo(1,2,3) returns the rgb value at the (x,y,z) coordinate
> (1,2,3)
>
> #declare Val = foo(2,3,4).gray does the same thing, but then converts it to a
> single gray value based on rgb->grey conversion formula.

and later...

> Or perhaps you have a number of different flowers in a field (lets say five).
> Each time you check a spot where you want to place the flower, you can evaluate
> foo() at those coordinates...

Those are really clear and useful explanations. Thanks, Trevor! A new 'tool' to
use.

Up 'til now, I've been using eval_pigment to do exactly those kinds of things
(your flowers example.)

As is usual with me... ;-) ... I think that such a simple and concise
description of 'what it does' (the (1,2,3) values etc) would be a good addition
to the documentation--in "Declaring User-Defined Color Functions" perhaps or
somewhere preceding that.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.