POV-Ray : Newsgroups : povray.binaries.images : POVEarth still far away... : Re: POVEarth still far away... Server Time: 24 Oct 2020 03:10:02 GMT
  Re: POVEarth still far away...  
From: Bald Eagle
Date: 2 Aug 2020 20:05:00
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-2008 Persistence of Vision Raytracer Pty. Ltd.