POV-Ray : Newsgroups : povray.binaries.images : POVEarth still far away... : Re: POVEarth still far away... Server Time
25 Apr 2024 01:19:52 EDT (-0400)
  Re: POVEarth still far away...  
From: Bald Eagle
Date: 2 Aug 2020 16:05:00
Message: <web.5f271b8593bb714f1f9dae300@news.povray.org>
Also, for nested loop 3, you're using the eval_pigment MACRO from an include
file "functions.inc"

All that does is:
#macro eval_pigment(pigm, vec)
    #local fn = function { pigment { pigm } }
    #local result = (fn(vec.x, vec.y, vec.z));
    result
#end

Somehow this magically returns a vector quantity, rather than a scalar.  :O

But the point is, that maybe declaring the function at the beginning of the
scene and just evaluating it when you need to without a lot of intermediate
steps and storage variables might cut down on memory usage and speed things up a
bit.


Post a reply to this message

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