IBM TJ Watson Research

IBMImageOnRectangleSkewing

IBMImageOnRectangleSkewing.mp4

Description

A Rectangle of size 200 200 is inside a Transform2D with the scale field at 1 2, so its scaled by twice in the Y direction but maintains it's original size in the X direction. The rectangle has a texture image of size 200x200 which was originally size 200x400 but has been prescaled in Y direction so that when used a texture in this case it will rendered back at its original size albeit with some loss of resolution in the Y direction due to scaling. There is also another Rectangle of size 200x400 in the same location, of light-gray color, showing the original position before skewing takes place.

At t=2s an interpolator starts changing the scale orientation over a period of 8s from 0 to 2*PI radians, maintaining it there briefly, before restarting the cycle over.

Screenshot

Snapshot taken at t=0.



Snapshot taken as some intermediate point in the cycle.



Back to main index