POV-Ray : Newsgroups : povray.newusers : read df3 in a loop : read df3 in a loop Server Time
4 Nov 2024 13:03:44 EST (-0500)
  read df3 in a loop  
From: Wolfgang Kapferer
Date: 29 Sep 2003 11:40:01
Message: <web.3f7851f2317d154499cf94980@news.povray.org>
Hello

I have a Problem reading some density files in a while loop.

The povray script should do following:

1. read a density file (e.g. tempn1.df3) and render a pictures, which is
stored as a tga or so.
2. read the next density file (e.g. tempn2.df3) adn do the same as before

3. loop it

I don't know how you can give a loopvariable in while for a filename.
....
density {
         density_file df3 "test1.df3"
   interpolate 1
   color_map {
      [0.00 rgb <0,0,0>]
   [0.40 rgb <0 0 1>]
      [0.50 rgb <0,1,0>]
   [0.60 rgb <1,0,0>]
      [1.00 rgb <1,0,0>]
   }
  }
....

How can I make test1.df3 to testx.df3, whereas x means x=1...n

Thank you very much for Your apprecaited help.

Wolfgang


Post a reply to this message

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