POV-Ray : Newsgroups : povray.bugreports : v3.7: Is max_trace_level working correctly? Server Time
21 Dec 2024 11:38:30 EST (-0500)
  v3.7: Is max_trace_level working correctly? (Message 1 to 5 of 5)  
From: Kenneth
Subject: v3.7: Is max_trace_level working correctly?
Date: 5 Apr 2014 18:30:00
Message: <web.53408370629daabc2d977c20@news.povray.org>
I've lately noticed some really odd behavior in 3.7 ("odd" as compared to 3.62.)
Max_trace_level seems to be completely OFF or ON now, when its value is changed
between 1 and 2 (or anything higher than 2.) In other words, a value of 2
produces the same visual result as setting it to its maximum value, or so it
seems. The other odd thing is that the render statistics always return a 'Max
Level' of only 1, regardless of the max_trace_level setting or the number of
semi-transparent overlapping objects in a scene.

(This is in Windows XP, on a single_core AMD machine, using 32-bit v3.7 sse2.)

Here's a small test scene, with a switch for rendering in 3.62 vs. 3.7. Just
semi-transparent nested spheres.
----

// The switch...
#declare version_to_use = 2; // 1 for v3.62, 2 for v3.7

#if(version_to_use = 1)
global_settings{max_trace_level 5 assumed_gamma 2.2}

background {rgb .7}

#declare C=1;
#while(C<=40)
sphere{0,1
 scale .1 + .20*C
 pigment{rgbt <.1,1,.1,.99>}
 }
#declare C=C+1;
#end
#else
#end

#if(version_to_use = 2)
#version 3.7;
global_settings{max_trace_level 2 assumed_gamma srgb}

background {srgb .7}

#declare C=1;
#while(C<=40)
sphere{0,1
 scale .1 + .20*C
 pigment{srgbt <.1,1,.1,.99>}
 }
#declare C=C+1;
#end
#else
#end

// for both versions...
camera {
  perspective
  location  <1, 1, -25>
  look_at   <0, 0,  0>
  right     x*image_width/image_height
  angle 67
}


Post a reply to this message

From: Warp
Subject: Re: v3.7: Is max_trace_level working correctly?
Date: 6 Apr 2014 06:06:58
Message: <53412742@news.povray.org>
Kenneth <kdw### [at] gmailcom> wrote:
> #declare C=1;
> #while(C<=40)
> sphere{0,1
>  scale .1 + .20*C
>  pigment{rgbt <.1,1,.1,.99>}
>  }
> #declare C=C+1;
> #end
> #else
> #end

POV-Ray 3.7 does not increase the recursion count when the object has
an ior of 1 (ie. the direction of the ray doesn't change.)

If you give those spheres an ior different from 1, you should get the
behavior you expect.

-- 
                                                          - Warp


Post a reply to this message

From: Kenneth
Subject: Re: v3.7: Is max_trace_level working correctly?
Date: 6 Apr 2014 18:30:01
Message: <web.5341d4a9693703ebc2d977c20@news.povray.org>
Thanks; Alain has also explained this in another post. It seems that I need to
re-read the 3.7 change log, to familiarize myself with the many subtle changes
that have occurred since 3.62. ;-) Some of these haven't yet made it into the
new documentation or wiki.


Post a reply to this message

From: James Holsenback
Subject: Re: v3.7: Is max_trace_level working correctly?
Date: 7 Apr 2014 08:45:19
Message: <53429ddf$1@news.povray.org>
On 04/06/2014 06:26 PM, Kenneth wrote:
> Some of these haven't yet made it into the
> new documentation or wiki.

so this is just a generalized dig ... right? (lol) or is it a reference 
to the max_intersections issue you reported in p.d.inbuilt? btw ... 
corrected it!


Post a reply to this message

From: Kenneth
Subject: Re: v3.7: Is max_trace_level working correctly?
Date: 9 Apr 2014 19:30:00
Message: <web.5345d757693703ebc2d977c20@news.povray.org>
James Holsenback <nom### [at] nonecom> wrote:
> On 04/06/2014 06:26 PM, Kenneth wrote:
> > Some of these haven't yet made it into the
> > new documentation or wiki.
>
> so this is just a generalized dig ... right? (lol) or is it a reference
> to the max_intersections issue you reported in p.d.inbuilt? btw ...
> corrected it!

Yeah, I'm guilty. :-P  Thanks for the quick correction!


Post a reply to this message

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