POV-Ray : Newsgroups : povray.general : 3.2.1.6.5 in docs--clarification needed : 3.2.1.6.5 in docs--clarification needed Server Time
29 Jul 2024 04:24:29 EDT (-0400)
  3.2.1.6.5 in docs--clarification needed  
From: Kenneth
Date: 27 Feb 2013 04:40:01
Message: <web.512dd32aaffa69f8c2d977c20@news.povray.org>
I've been using functions in POV-Ray for years now (successfully)--pigment
functions, functions for isosurfaces, etc. Yet I've never been able to make
sense of the examples given in the docs at 3.2.1.6.5  "Declaring User-Defined
Color Functions". It's not the set-up of the functions themselves that are
mysterious, but the examples of their use.

Here are the two code lines given there:

#declare Vec = foo(1,2,3)

and

#declare Val = foo(2,3,4).gray

What do the values (1,2,3) and (2,3,4) represent? There's no explanation given,
and I can't figure it out intuitively. (Is it simply a shorthand way of saying
(1*x,2*y,3*z)?) I've read and re-read the sections preceding this one, yet still
don't have a clue.


Post a reply to this message

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