AVI Lab

What's Happening

In version 3.0, the Web Driver allows you to play an AVI movie. To use a movie you apply it as a surface shader procedural. You can then apply the surface shader to 3D geometry or attach it to an empty WTGroup to be used as a sprite or decal. It can even be set as a texture for a spout!

In the scene above, a small movie is being used as the texture on the deforming flag model. You can turn it by dragging the mouse. Notice that because the movie acts as the texture for a surface shader layer, you can make use of the scene's lighting with the movie playing on 3D objects. The copy of the movie that you see playing in the background is attached to a WTGroup and is only there for reference. You can't use an AVI for a WTDrop because drops can't be created from a surface shader.

The AVI functionality is controlled through a WTSurfaceShader's procedural property. All movie controls, including loading the movie, are accessed through the command string of the setProceduralWithString API:

Key Methods Used

WTSurfaceShader::setProceduralWithString, WTGroup::attachSurfaceShader, WTModel::setSurfaceShader

Points to Remember