POV-Ray : Newsgroups : povray.binaries.utilities : Scripting Server Time
31 Oct 2024 16:17:32 EDT (-0400)
  Scripting (Message 1 to 4 of 4)  
From: Rocco Rutte
Subject: Scripting
Date: 18 Jul 2001 05:12:06
Message: <3b5552e6@news.povray.org>
before asking the question, let me first describe what i'm planing to do:

i'd like to render a movie. using povray's built-in animation function is 
to complicated. so i use perl to write the povray files according to my 
"storyboard". because rendering the animation at once (i plan about half an 
hour or so) would take to long i'd like to split it. after each session i'd 
like to compress the .tga's in an mpeg-stream. the mpeg-streams are to be 
merged later. so is there any tool available for the unix platform (linux 
would be okay, too) i could use to compress a number of .tga's to one .mpeg?

-- 
Gewalt ist die letzte Zuflucht der Inkompetenten.
- Isaak Asimov (1920-1992)


Post a reply to this message

From: Povray
Subject: Re: Scripting
Date: 24 Jul 2001 12:01:55
Message: <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}";
  }
}

    I mean, just a rough psuedo code idea..

"Rocco Rutte" <pdm### [at] gmxnet> wrote in message
news:3b5552e6@news.povray.org...
> before asking the question, let me first describe what i'm planing to do:
> i'd like to render a movie. using povray's built-in animation function is
> to complicated. so i use perl to write the povray files according to my
> "storyboard". because rendering the animation at once (i plan about half
an
> hour or so) would take to long i'd like to split it. after each session
i'd
> like to compress the .tga's in an mpeg-stream. the mpeg-streams are to be
> merged later. so is there any tool available for the unix platform (linux
> would be okay, too) i could use to compress a number of .tga's to one
.mpeg?


Post a reply to this message

From: Gail Shaw
Subject: Re: Scripting
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

From: Rev  Bob 'Bob' Crispen
Subject: Re: Scripting
Date: 25 Jul 2001 04:05:46
Message: <Xns90E91F7275A7Frevbob@127.0.0.1>
The kindly Rev. overheard "Gail Shaw" <gsh### [at] monotixcoza> saying on
25 Jul 2001: 

> #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

But you're missing the point!  POVRay is *way* too readable.

Now if you had something like:

    	10 0 do 0 0 5 i * i 1 1 box -5 i * 0 0 i negate 1 1 box
      0 0 5 i * sphere loop

*then* you'd have something!

Somebody who's written forth more recently than 15 years ago would no 
doubt do it more cryptically.

The same program in APL is two characters, neither of which I have on 
my keyboard.
-- 
Rev. Bob "Bob" Crispen
crispen at hiwaay dot net

Every program has at least one bug and can be shortened by at least
one instruction -- from which, by induction, one can conclude that
every program can be reduced to one instruction which doesn't work.
- fortune


Post a reply to this message

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