POV-Ray : Newsgroups : povray.binaries.images : Persian carpet : Re: Persian carpet Server Time
30 Jul 2024 00:30:45 EDT (-0400)
  Re: Persian carpet  
From: Samuel Benge
Date: 4 Feb 2014 13:30:01
Message: <web.52f13106fb8343edbcc7b3280@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> On 3-2-2014 20:48, Samuel Benge wrote:
> > POV-Ray is notoriously slow when it comes to accessing macros from #include
> > files. Try placing the eval_pigment macro into your main scene file; the parse
> > time should be significantly reduced by doing so :)
>
> Absolutely. About twice as fast.
>
> Here is a close up of the carpet (using cones by the way).

Nice :)

You might be able to speed up the parse time even more. Since eval_pigment()
evaluates the RGB channels of a pigment, you might get a speed increase if you
make a function that samples only one channel, adding color after the fact. A
linear spline could be used in lieu of a color_map...

Sam


Post a reply to this message

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