distort - real time image distortion demo
distort demonstrates how texture mapping can be used to produce real time
image distortion effects. This is achieved by mapping a high resolution
texture onto a large array of polygons.
The imgfile argument is used to indicate the name of an alternate image
file. The default image,
/usr/demos/General_Demos/distort/data/distort.rgb, is a picture of a dog.
Use the left mouse button to select one of the following distortion effects:
Ripple [Toc] [Back]
This effect approximates looking at an image through a thin layer of
water. The right mouse button can be used to tap on the water, generating
Rubber [Toc] [Back]
The image is mapped onto a mesh of springs which behave like those
used in the jello demo. The mesh can be manipulated by holding down
the right mouse button and dragging.
Press the ESC key to exit the program.
Requires a hardware texturing or a good imagination. The source image
must be square.
PPPPaaaaggggeeee 1111 [ Back ]