|
|
Tom Melly <tom### [at] tomandlucouk> wrote:
> > (There's a funny and sometimes useful side-effect on how it parses the
> > file, though...)
> Are you going to tell us what it is, or do I have to post another link to
> http://tinyurl.com/yuqbc ?
If you put for example a #declare something=something_else statement
in a file which you then #fopen and #read, POV-Ray will parse that #declare
as soon as it finds it exactly as if you had #included the file instead
(so that it contains the #declare alone without the extra data you are
#reading).
In other words, if you have something like this in your file:
1, 2, 3,
#declare Array = array[4] { <1,2,3>, <4,5,6>, <7,8,9>, <10,11,12> };
4, 5, 6
and then you #read those floats, after you have read the "4" POV-Ray
will have declared Array as an array of vectors containing those values.
(This feature has been *extremely* useful in the PCM format.)
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
|