POV-Ray : Newsgroups : povray.newusers : read df3 in a loop : Re: read df3 in a loop Server Time
30 Jul 2024 20:20:10 EDT (-0400)
  Re: read df3 in a loop  
From: Warp
Date: 29 Sep 2003 14:33:07
Message: <3f787ae3@news.povray.org>
Wolfgang Kapferer <wolfgang.e.kapferer.uibk.ac.at> wrote:
> I have a Problem reading some density files in a while loop.

> 1. read a density file (e.g. tempn1.df3) and render a pictures, which is
> stored as a tga or so.

  You can't render pictures in a while-loop. You use POV-Ray's animation
rendering options and use the 'clock' or 'frame_number' variables (in your
case the latter is probably easier) to do the job.

density {
         density_file df3 concat("test", std(frame_number, 0, 0), ".df3")

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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