IBM TJ Watson Research

IBMImagesSkewingSpinning

IBMImagesSkewingSpinning.mp4

Description

An ImageTexture on a Rectangle, Circle, IndexedFaceSet2D and Curve2D. Each shape is scaled by a factors of 1 2 and is both skewed and rotated by interpolating scaleOrientation and rotationAngle from 0 to 360 degrees over a period of 5s and then for 5s the shapes stand still in their unskewed, 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 skewing and spinning.



Back to main index