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 Jun 2019 17:05:47 GMT
  Re: using rhe quality setting from a .pov file  
From: Leroy
Date: 13 May 2019 16:55:01
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-2008 Persistence of Vision Raytracer Pty. Ltd.