POV-Ray : Newsgroups : povray.binaries.images : Submitting values to a POV-Ray script? Server Time
6 Nov 2024 04:16:09 EST (-0500)
  Submitting values to a POV-Ray script? (Message 1 to 2 of 2)  
From: Jörg "Yadgar" Bleimann
Subject: Submitting values to a POV-Ray script?
Date: 17 Sep 2020 17:11:42
Message: <5f63d10e$1@news.povray.org>
Hi(gh)!

Now, thanks to your advices, the generation process proper of the mesh2s 
from ASTER data has started... and as doing this by hand would be 
unnecessarily slow, I would like to know whether it is possible to give 
a POV-Ray script values from the shell command line - in this case, it 
would be the geographical coordinate and the resolution (for different 
levels of detail - 225, 450, 900, 1800 or full 3601) of the tile to 
generate...

See you in Khyberspace!

Yadgar


Post a reply to this message

From: jr
Subject: Re: Submitting values to a POV-Ray script?
Date: 17 Sep 2020 18:15:00
Message: <web.5f63de92e52dcc14d00143e0@news.povray.org>
hi,

Yadgar wrote:
> Now, thanks to your advices, the generation process proper of the mesh2s
> from ASTER data has started... and as doing this by hand would be
> unnecessarily slow, I would like to know whether it is possible to give
> a POV-Ray script values from the shell command line - in this case, it
> would be the geographical coordinate and the resolution (for different
> levels of detail - 225, 450, 900, 1800 or full 3601) of the tile to
> generate...

see
<http://wiki.povray.org/content/Reference:Scene_Parsing_Options#Index_Entry_declare_ini-option>

however, that's only good for numbers.  I take it you now keep each mesh in its
own .inc file?  in which case you could consider putting file name, geolocation,
and resolution into a simple text file, "kabul.dat" or whichever, and read this
at the beginning of the scene, initialising from that data.  once that works,
you could change the text data file name to 'current.dat' or something, and use
the symbolic links available in Linux, eg, say you have 'kabul.dat' and
'tblisi.dat',
and a symlink made like:

  $ rm -f current.dat
  $ ln -s tblisi.dat !$

ie deleting the old link, then remaking it with the new file name. that way,
then, you don't need to edit the scene anymore.


regards, jr.


Post a reply to this message

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