POV-Ray : Newsgroups : povray.advanced-users : Nested objects limitations : For all those who actually answered! Server Time
29 Jul 2024 14:19:26 EDT (-0400)
  For all those who actually answered!  
From: Tim Nikias
Date: 2 Jan 2002 10:48:34
Message: <3C332B91.718020EB@gmx.de>
So, this is the pseudo-code:

//Macro
#macro Particle(Position)
 sphere{Position,1 hollow texture{Nice_And_Transparent}}
#end

union{
#declare C=0; #while (C < Particles)
 #declare This_Pos = Generate_Random_Position_Near_Origin
 Particle(This_Pos)
#declare C=C+1; #end
}

In effect, it should internally create something like:

union{
sphere{...}
sphere{...}
[...]
}

The actuall error-message occurs during tracing. The entire image itself
works fine, until
it reaches the particles, there it stops and aborts using the "too many
nested objects"-message.

It's not a crash (POV still works after that)
and I suppose it's not a bug (because this occurs only somewhat above
150 Particles or
such).

IMHO it has to do with several spheres overlapping, and POV-Ray can't
keep track
of it anymore (I read something like that somewhere at sometime...;)

So, I was just asking, how many objects-overlappings POV-Ray can handle.

This all DEFINITELY has NOTHING to do with UNIONs, since there is only
one
statement in the ENTIRE SCENE.

Still thanks for all the thoughts you gave, and hope, that perhaps now
someone has the answer
I'm looking for (after I've finally explained myself more precisely as I
should have in the first place).

Tim


Post a reply to this message

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