This Short Tutorial Graphically Describes Some Functions That Can Be Performed
On The Internal 'clock' Variable In POV-RAY, That Is Used In All Animations.
POV-RAY Was Used To Graph, After Trying To Find A Graphing Program...
I Finaly Realized That The Best Grapher For The Task Was Right Under My Fingers!!



The Following Assumes That You Have Read All Of The POV-RAY Documentation Dealing With The
'clock' Variable. If You Do Not Already Have A Firm Grasp Of It's Use, These Functions Will Mean Little To You.
All Of The Examples Declare A New Variable 'NewClock' That Is Assigned The New Clock Value.
Use This Value In Place Of 'clock' In Your Animations To Take Advantage Of The Function.
The Following Graph Functions Are In The 0-1 Range, The Lighter And Darker
Crosshairs Being The .5 And .25 Steps, Respectively.
The POV Source Used To Graph All Of The Functions Is HERE

#declare NewClock=

clock

The Basic Clock Variable Starts At 0 Ends At 1

#declare NewClock=

1-clock

You Can Flip Or Inverse Any Function By

Subtracting It From 1

#declare NewClock=

abs(1-(clock*2))

Creates A Linear Down-Up Loopable

Motion

#declare NewClock=

1-abs(1-(clock*2))

Takes The Inverse Of The Previous

Function

#declare NewClock=

2*abs(.5-abs(1-(clock+.25)))

Same As Previous Two, Except That

You Can Start Your Down-Up Movement

In The Middle

#declare NewClock=

abs(sin(1*pi*clock))

Creates A Smooth Curve

#declare NewClock=

abs(sin(3*pi*clock))

Can Create Multiple Curves By Changing

The Scalar Before 'pi' To The Number Of

Curves Desired (3 In This Graph)

#declare NewClock=

(.5*sin(1*2*clock*pi))+.5

Creates A Smooth Wave

#declare NewClock=

(.5*sin(2*2*clock*pi))+.5

Can Change The Number Of Waves

With The First '2' Change That To The

Number Of Waves Desired (2 Here)

#declare NewClock=

sqrt(clock)

Arches The Basic Clock Function

Upward

#declare NewClock=

clock*clock

Arches The Basic Clock Function

Downward

#declare NewClock=

(clock+((.5*sin(4*2*clock*pi))+.5))/2

You Can Average Multiple Functions Together

(Basic Clock + 4 Waves In This Graph)


Contents Created By: Joseph Durbin - - - E-mail: dwa@rangenet.com