POV-Ray : Newsgroups : povray.general : using rhe quality setting from a .pov file : Re: using rhe quality setting from a .pov file Server Time
18 Apr 2024 23:45:06 EDT (-0400)
  Re: using rhe quality setting from a .pov file  
From: Leroy
Date: 13 May 2019 12:55:01
Message: <web.5cd9a11df44f24c24fe984260@news.povray.org>
tTh <tth### [at] noneinvalid> wrote:
> Hello
>
> I'm working on a scene with a lot of light, and rendering
> take a lot of time, even in low quality to place the elements,
> and I thought of a function, equivalent to 'clock' which
> returns the value of the -Q parameter of the command line,
> so I can do :
>
> #if (quality > 5)
>     light_source { ... }
> #end
>
> I diged through the documentation and found nothing.
> Is it possible to plan this for a future version?
> Is it easy to go into the source code to try to add
> the function? And where to start?
>
> tTh.
>
>
> --
> http://la.buvette.org/POV/Cloitre

What version are you using?
3.7 will let you declare a constant in an INI file
Declare=IDENTIFIER=FLOAT
Just set use this.
Have fun!


Post a reply to this message

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