POV-Ray : Newsgroups : povray.animations : Re: parsing and animations : Re: parsing and animations Server Time
6 Oct 2024 10:39:01 EDT (-0400)
  Re: parsing and animations  
From: bruce
Date: 19 Mar 2002 20:06:23
Message: <slrna9foks.1kb.bruce@pingouin.rez-gif.supelec.fr>
In article <3c97783e@news.povray.org>, Gallas wrote:
> I'm not much of a hardcore pov-ray user (more or less the opposite).
> My idea of making an animation is giving first_frame and final_frame the
> right values in some .ini-file. When I do this I get the same parse time for
> every frame.
> And for the record, the array do contain coordinates of objects.
> Actually it contains coordinates for objects during every frame of the
> animation, so I can access it with frame_number.
>

You should better try, if possible, to calculate each position with the clock
variable instead of having all of them in an array. (moreover, you could
easily change the number of frames of your animation). If you really need
to have all those values, put the value for each frame in a separate fil and
read only this one during animation
For exemple, rendering 100 frames, create 100 files called data_xxx.dat, where
xxx is the number of the frames the data are refering to. In your pov scene, 
open only the right file (with frame_number), and catch the data from the file.
Hope it will help (and you understood my bad english)

	-- Bruce


Post a reply to this message

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