[Up] [Previous] [Next]

10.1.2 TimeCounter Engines

TimeCounter engines are animation engines that produce cyclic output. They start counting from some start value to some stop value, generating output while counting, and after reaching the stop value the engine starts again from the beginning. The important input fields are:

The important output field is:

Example

Here is a complete Inventor .iv file for a simple example where the radius of the base of a cone changes in response to the output of a TimeCounter engine. Just cut and paste the text into a file named test.iv and then do ivview -q test.iv:

#Inventor V2.0 ascii

Separator {
    PerspectiveCamera {
        position        0 1 10
    }
    Cone {
        bottomRadius = 
            TimeCounter {
                min 0
                max 3
                frequency 0.2
            }
            . output
        height 2
    }
}

You should note several things about this example:


MIT home page HTML written and maintained by Reid M. Pinchback (reidmp@mit.edu)
Last modified 96/06/11; copyright © 1996 MIT