POV-Ray : Newsgroups : povray.beta-test : max_intersections Server Time
28 Jun 2024 03:09:24 EDT (-0400)
  max_intersections (Message 1 to 5 of 5)  
From: Stephen
Subject: max_intersections
Date: 28 Aug 2010 12:33:34
Message: <4c793a5e@news.povray.org>
When I tried to increase max_intersections in 3.7 I got a parse error.
"Nonic03_Fail04X_.pov" line 10: Parse Error: No matching } in 
'global_settings', float function 'float constant' found instead

global_settings {
     adc_bailout       0.001
     ambient_light     rgb <1.000,1.000,1.000>
     assumed_gamma     2.200
     irid_wavelength   rgb <0.250,0.180,0.140>
     max_intersections 64
     max_trace_level   150
     number_of_waves   10
     noise_generator   3
     charset           ascii
}


Am I missing something?

-- 

Best Regards,
	Stephen


Post a reply to this message

From: clipka
Subject: Re: max_intersections
Date: 28 Aug 2010 12:47:02
Message: <4c793d86$1@news.povray.org>
Am 28.08.2010 18:33, schrieb Stephen:
> When I tried to increase max_intersections in 3.7 I got a parse error.
> "Nonic03_Fail04X_.pov" line 10: Parse Error: No matching } in
> 'global_settings', float function 'float constant' found instead
>
> global_settings {
> adc_bailout 0.001
> ambient_light rgb <1.000,1.000,1.000>
> assumed_gamma 2.200
> irid_wavelength rgb <0.250,0.180,0.140>
> max_intersections 64
> max_trace_level 150
> number_of_waves 10
> noise_generator 3
> charset ascii
> }
>
>
> Am I missing something?

It's a bug, not a feature :-/

According to the POV-Ray source code, "max_intersections FLOAT" is 
apparently supposed to do nothing in POV-Ray 3.7, but the parser fails 
to eat the FLOAT parameter.

You can work around this by commenting-out the offending line (or 
placing a "#if (version < 3.7)...#end" around it). Actually, you should 
also have received a parser warning, "'max_intersections' is no longer 
needed and has no effect in POV-Ray 3.7 or later."


Post a reply to this message

From: Stephen
Subject: Re: max_intersections
Date: 28 Aug 2010 13:19:42
Message: <4c79452e$1@news.povray.org>
On 28/08/2010 5:46 PM, clipka wrote:
> Am 28.08.2010 18:33, schrieb Stephen:

>>
>> Am I missing something?
>
> It's a bug, not a feature :-/
>

I love them. ;-)

> According to the POV-Ray source code, "max_intersections FLOAT" is
> apparently supposed to do nothing in POV-Ray 3.7, but the parser fails
> to eat the FLOAT parameter.
>
> You can work around this by commenting-out the offending line (or
> placing a "#if (version < 3.7)...#end" around it).

Oh! did I miss out that it had a #version 3.6; before the Global 
Settings block?

> Actually, you should
> also have received a parser warning, "'max_intersections' is no longer
> needed and has no effect in POV-Ray 3.7 or later."


Then it is feature that I did not get the warning with #version 3.6; but 
do with #version 3.7; :-P



scene that has a few reflections and refractions. It has been confirmed 
by StephenS.
What sort of dump do you want with the scene file?

-- 

Best Regards,
	Stephen


Post a reply to this message

From: clipka
Subject: Re: max_intersections
Date: 28 Aug 2010 13:33:00
Message: <4c79484c$1@news.povray.org>
Am 28.08.2010 19:19, schrieb Stephen:

>> Actually, you should
>> also have received a parser warning, "'max_intersections' is no longer
>> needed and has no effect in POV-Ray 3.7 or later."
>
> Then it is feature that I did not get the warning with #version 3.6; but
> do with #version 3.7; :-P

Yes, that's intentional indeed :-)



> scene that has a few reflections and refractions. It has been confirmed
> by StephenS.
> What sort of dump do you want with the scene file?

Dunno, I think Chris knows how to analyze Windows "core dumps". I 
personally prefer to re-create the error and single-step around the code.


Post a reply to this message

From: Stephen
Subject: Re: max_intersections
Date: 28 Aug 2010 14:07:29
Message: <4c795061$1@news.povray.org>
On 28/08/2010 6:32 PM, clipka wrote:
> Am 28.08.2010 19:19, schrieb Stephen:
>
>>> Actually, you should
>>> also have received a parser warning, "'max_intersections' is no longer
>>> needed and has no effect in POV-Ray 3.7 or later."
>>
>> Then it is feature that I did not get the warning with #version 3.6; but
>> do with #version 3.7; :-P
>
> Yes, that's intentional indeed :-)
>

Aye right! :-D



>> scene that has a few reflections and refractions. It has been confirmed
>> by StephenS.
>> What sort of dump do you want with the scene file?
>
> Dunno, I think Chris knows how to analyze Windows "core dumps". I
> personally prefer to re-create the error and single-step around the code.

Well I'll Start a new thread and upload the scene file in 
povray.beta-test.binaries as it needs an imagemap for it to fail.

-- 

Best Regards,
	Stephen


Post a reply to this message

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