Animating a flag ?!?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Animating a flag ?!?

Post by mcunha98 »

Hi,

Based into a simple texture, is possible i make a flag in "wind" effect ?
Exist a tutorial about this ????

Like this:

Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

shader

Post 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
        }
}
Tom Trude,

Image
Post Reply