POV-Ray : Newsgroups : povray.general : max_trace_level : Re: max_trace_level Server Time
5 Aug 2024 22:18:03 EDT (-0400)
  Re: max_trace_level  
From: Micha Riser
Date: 19 Aug 2002 16:57:12
Message: <3d615ba7@news.povray.org>
Thorsten Froehlich wrote:

> In article <3d60a321@news.povray.org> , Micha Riser <mri### [at] gmxnet> 
> wrote:
> 
> Of course it depends on the scene to some extend.  Yes, you can create
> really simple scenes that will not crash, but that does not mean that
> adding a few semitransparent objects with reflection and refraction won't
> get you there. 
> POV-Ray cannot know in advance which objects you will have in what order
> in
> your scene, so it cannot tell if the scene may work or may not.  It would
> have to know the scene before it has read it to gather such information,
> which would still be complex to do even if this could be avoided by
> placing max_trace_level at the end of the scene.

But this does not speak for a fixed limit on max_trace_level. You don't 
limit the number of objects either because with too many objects there will 
be not enough memory.

> BTW, by far
> most scenes do not have such a number of perfectly reflecting objects in
> their scene to even reach a max_trace_level of 256 before reaching
> adc_bailout.

I agree with that but as completly transparent containers are used for 
media and maybe also complete transparancy for some stacked cloud or 
something I see that this potentially could be a limit.

> Nobody said you cannot change it, or did I miss something?  If you think
> your program configuration (it has absolutely nothing to do with the OS
> btw) will handle it, just define MAX_TRACE_LEVEL_LIMIT to something bigger
> in
> config.h and compile POV-Ray yourself.  No big deal.

Of course one can change it (now the source is available). But that 
something is changeble does not mean that the default hasn't to be 
reasonable.

IMO it *is* a matter of OS. I cannot see any way to bring my linux into 
problems with the stack size other than explicitly limit it or make a scene 
that needs a stack size larger than my whole memory (which happens about at 
a max_trace_level of 500000). I do not see any different with that than 
running out of memory due to too many objects.

- Micha

-- 
http://objects.povworld.org - the POV-Ray Objects Collection


Post a reply to this message

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