Animated strips are materials that scroll in steps across an image simulated animation. Below are example shaders and images from a fire animated shader used in Quake 4.

Shader


gfx/effects/fire/flame1
{
        qer_editorimage gfx/effects/fire/flame_strip.tga
        noSelfShadow
        translucent
        noShadows
        twosided
        {
                blend add
                map gfx/effects/fire/flame_strip.tga
                scale 1 / 32 , 1
                scroll table32[ time * .6 ] , 0
                clamp
                vertexColor 
        }
}

The important lines to notice are:


table table32 
{ 
        snap
        {
                0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
                16, 17, 18, 19, 20, 21, 22, 23 ,24, 25, 26, 27, 28, 29, 30, 31 
        }
}

Images


The animated fire image has 32 parts to it, each 128 pixels wide. This image has been resized to fit.

Here is a close-up of a part of the image.

ArtReference Q4Shaders AnimatedStrips (last edited 2005-11-09 21:33:14 by MattVainio)