POV-Ray : Newsgroups : povray.binaries.utilities : Scripting : Re: Scripting Server Time
27 Sep 2024 18:18:33 EDT (-0400)
  Re: Scripting  
From: Gail Shaw
Date: 25 Jul 2001 01:54:09
Message: <3b5e5f01@news.povray.org>
"Povray" <tch### [at] ductapenet> wrote in message
news:3b5d9bf3$1@news.povray.org...
>     OOOhh, this made me think of something, actually..
>
>     What is povray itself could have perl *INSIDE* it..  Aka:
>
> perl_code {
>   for($i = 0;$i < 10;$i++)
>   {
>     $dist = $i * 5;
>     $out = "box { <$i, 0, 0> } box { <-$i, 0, 0> } spere { <0, 0, -$i) >
> $i}";
>   }
> }
>

#declare i=0;
#while (i<10)
    box {<5*i,0,0>,<i,1,1>} box {<-5*i,0,0>,<-i,1,1>} sphere {<0,0,-5*i>,i}
    #declare i=i+1;
#end

The pov scripting language is quite powerful on its own

Gail
--
*************************************************************************
* gsh### [at] monotixcoza                *   Step into the abyss,           *
* http://www.rucus.ru.ac.za/~gail/   *   and let go.          Babylon 5 *
*************************************************************************
* The difficult we do immediately, the impossible takes a little longer *
*************************************************************************


Post a reply to this message

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