POV-Ray : Newsgroups : povray.beta-test : problem with normals/functions: crash! : problem with normals/functions: crash! Server Time
30 Jul 2024 10:20:54 EDT (-0400)
  problem with normals/functions: crash!  
From: Lutz-Peter Hooge
Date: 30 Nov 2001 19:34:41
Message: <MPG.16724448f4beb4ad9896c3@news.povray.org>
Hi everybody

This scene causes PovRay for Windows, Beta 8, to report a
"Rendering Error: Maximum function evaluation recursion level reached.",
and crash in the same moment.

When inserting the function explictly everywhere, instaead of #declaring 
it, it starts to render but is extremely slow.

The same thing works flawlessly in beta 7.

#version 3.5;

camera{location <0,4,-5>*.8 look_at <0,.5,0> angle 50}        

light_source{<1,2,1.5>*100 color rgb 1}

#declare sinxsin=function{min(abs(sin(x*pi/2)),abs(sin(z*pi/2)))}

#declare n0=
normal
{
	function{sinxsin(x,y,z)}
	slope_map{[0.0 <0,1>][0.1 <1,0>][0.5 <0.9,0>][0.51 <1,0>][1.0 
<1,0>]}
}

#declare n1=
normal
{
	average normal_map{[1.0 n0][1.0 granite -.1 scale .5]}
}  

#declare n2=
normal
{
	function{sinxsin(x,y,z)}
	normal_map
	{
		[0.5 n0]
		[0.6 n1]
	}
}

plane
{
	y,0
	texture
	{
		pigment{checker color rgb 1 color rgb 0 scale 2}              

		finish{specular 1}
		normal{n2}
	}        
	rotate -y*20
}


Post a reply to this message

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