POV-Ray : Newsgroups : povray.newusers : #include, animations, : Re: #include, animations, Server Time
29 Jul 2024 06:14:54 EDT (-0400)
  Re: #include, animations,  
From: Skywise
Date: 5 Jun 2006 03:45:06
Message: <4483e102@news.povray.org>
kurtz le pirate <kur### [at] yahoofr> wrote in news:kurtzlepirate-
12B112.10462204062006@news.povray.org:

<Snipola>
> ... on the first frame, the filename is "spheres0001.inc" no ?
> but, why not using directly the 'frame_number' variable ?
> 

<Snipola>
> 
> #declare index=0;
> #while (index< frame_number)
>   #declare filename=concat("spheres",str(index,-4,0),".inc");
>   #include filename
>   #declare index=index+1;
> #end
> 
> 
> with your 'ini' this give you "spheres0001.inc" to "spheres0365.inc" and 
> at each 'frame', all previous "spheresxxxx.inc" are included but of 
> course, all includes are parsed and parsed and parsed...

I had never used the frame_number parameter before so I simply
went with what I knew. Heck, I had never tried what I am doing
before either. Your code is obviously the better way to do this
as I can leave the clock moving form 0 to 1.

However, this doesn't help the render speed problem. Not sure
if you thought it would or not. Each subsequent frame is still
taking longer.

Brian
-- 
http://www.skywise711.com - Lasers, Seismology, Astronomy, Skepticism
Seismic FAQ: http://www.skywise711.com/SeismicFAQ/SeismicFAQ.html
Quake "predictions": http://www.skywise711.com/quakes/EQDB/index.html
Sed quis custodiet ipsos Custodes?


Post a reply to this message

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