POV-Ray : Newsgroups : povray.advanced-users : Help needed! Forest memory problems : Re: Help needed! Forest memory problems Server Time
29 Jul 2024 10:23:54 EDT (-0400)
  Re: Help needed! Forest memory problems  
From: Warp
Date: 21 Dec 2002 08:48:57
Message: <3e047149@news.povray.org>
Apache <apa### [at] yahoocom> wrote:
> oops! Why isn't POV-Ray doing this yet? Or maybe it already does? Hmmm... I
> think I'm a bit confused here  :-)

  I think that the reason is mostly historical.
  For some primitives certain transformations are handled in a special way.
For example, if you translate a sphere, no transformation matrix is generated
for it, but its center is simply changed accordingly. This is a kind of
simple optimization. Of course this means that referencing is not possible
with this feature.

  I don't remember if anyone has actually measured if it really affects the
speed of the rendering that much, specially with usual scenes (instead of
artificial ones constructed just to measure this).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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