IBM TJ Watson Research

IBMImagesSpinning

IBMImagesSpinning.mp4

Description

An ImageTexture on a Rectangle, Circle, IndexedFaceSet2D and Curve2D. Each shape is rotated through 360 degrees, anticlockwise, over a period of 5s and then for 5s the shapes stand still in their unrotated state. This cycle repeats indefinitely.

The 5s rotation is driven by a TimeSensor with loop set to false. Another TimeSensor is set with loop true and its cycleInterval set to 10s. Its cycleTime eventOut is routed to the startTime of the 5s TimeSensor. Hence each period of the 10s TimeSensor the 5s TimeSensor is started.

Screenshot

Snapshot taken while spinning.



Back to main index