POV-Ray : Newsgroups : povray.beta-test : Clock not working in functions Server Time
28 Jul 2024 18:27:20 EDT (-0400)
  Clock not working in functions (Message 1 to 2 of 2)  
From: Chambers
Subject: Clock not working in functions
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

From: Chris Cason
Subject: Re: Clock not working in functions
Date: 20 Jul 2008 05:54:56
Message: <48830b70$1@news.povray.org>
Chambers wrote:
> 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.

Fixerated, thanks for the report.

-- Chris


Post a reply to this message

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