Page 1 of 1
Animating a flag ?!?
Posted: Thu May 26, 2005 2:22 am
by mcunha98
Hi,
Based into a simple texture, is possible i make a flag in "wind" effect ?
Exist a tutorial about this ????
Like this:

shader
Posted: Thu May 26, 2005 3:10 am
by tltrude
You need to make a new .shader file like this one from the game.
Code: Select all
static_kriegsflag
{
//qer_keyword special
//surfaceparm nonsolid
qer_editorimage textures/models/flags/kriegsmarine.tga
//surfaceparm alphashadow
cull none
deformVertexes flap s 128 sin .5 6 1 -1 0 2
deformVertexes flap s 64 sin 1 3 0.5 -1 0 1.5
{
map textures/models/flags/kriegsmarine.tga
//depthWrite
//alphaFunc GE128
rgbgen static
}
}