POV-Ray : Newsgroups : povray.beta-test : Clock not working in functions : Clock not working in functions Server Time
28 Jul 2024 16:31:17 EDT (-0400)
  Clock not working in functions  
From: Chambers
Date: 2 Jul 2008 22:42:32
Message: <486c3c98$1@news.povray.org>
This scene demonstrates the problem.
----
camera {
	location -z
	look_at 0
}

#declare _f = function { x + clock }

plane {
	-z, 0
	pigment {
		function { _f(x,y,z) }
		color_map {
			[0 color rgb x]
			[1 color rgb z]
		}
	}
	finish {ambient 1}
}
----
Try specifying a clock value with +k, and it has no effect on the scene.
Replacing the function with
   #declare _f = function { x }
and adding
   translate x*clock
to the plane results in the plane shifting, demonstrating that the clock 
value is being correctly read in the scene.  It just isn't being used in 
the function correctly.

Beta 27 on Windows XP Pro, running on an Intel C2D### [at] 24gHz w/ 3Gb RAM.
Release (3.6) does not demonstrate this flaw.

...Chambers


Post a reply to this message

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