Moving Textures?


[SAS]==Dirty_Harry
04-07-2006, 11:39 AM
Just playing around with some ideas for a map and was wondering is it possible to make textures look like they are moving.

I want an area of the floor to act as a conveyor belt and have tied the brush to func_conveyor and set the speed to what I want. The problem is that when you are not actually on the conveyor belt it is not apparent that it is moving as the texture is stationary.

Is there any way the texture can be animated to appear to be travelling in the same direction as the belt?

KominAaa
04-07-2006, 12:32 PM
material proxies in the vmt file :]

create a new vmt for the texture youre using as convoyer and add these lines.


"LightmappedGeneric"
{
"$basetexture" (dont modify this stuff) "shadertest/LightmappedTexture"

"Proxies"
{
"textureScrollVar"
{
"textureScrollRate" 10
//Rate of scroll in units per second
"textureScrollAngle" 90
//Angle of rotation to move along. (90 = right, 180 = left, etc)
}
}
}

[SAS]==Dirty_Harry
04-07-2006, 12:41 PM
Bearing in mind that i'm a complete noob :rolleyes: can you give me a bit mor info.

So do I create a .vmt file in dods/mapscr and name it the same as the texture and then copy that text and compile the map?

See told you I was a complete noob :D :D

KominAaa
04-07-2006, 02:27 PM
find the name of the texture youre using.

download vtf explorer.

export the .vmt file thats in the same directory as the .vtf file in dods's gcf youre browsing using vtf explorer.

place that .vmt in a folder in materials/"mymapname"/ in your dods folder.

open the vmt.

ad the lines I wrote,tweak them to fit your needs and save the vmt.

use that texture in hammer.

[SAS]==Dirty_Harry
04-07-2006, 03:04 PM
Thanks for that I will give it a try :)

[SAS]==Dirty_Harry
04-09-2006, 01:59 PM
Ok I am still having trouble getting the texture to move.

This is what I have done so far.

The texture I am using for the purpose of this experiment is nature/dirtfloor006a.

I have exported the .vmt to the following folder.

C:\Program Files\Steam\SteamApps\email\day of defeat source\dod\materials\mymapname

The .vmt having made the changes now looks like this

"LightmappedGeneric"
{
"$basetexture" "Nature/dirtfloor006a"
"$surfaceprop" "dirt"
}
"LightmappedGeneric"
{
"$basetexture" (dont modify this stuff) "shadertest/LightmappedTexture"

"Proxies"
{
"textureScrollVar"
{
"textureScrollRate" 10
//Rate of scroll in units per second
"textureScrollAngle" 90
//Angle of rotation to move along. (90 = right, 180 = left, etc)
}
}
}

I have also added to the same folder the original .vtf but the texture is not moving. Can someone please tell me where I have gone wrong?

KominAaa
04-09-2006, 04:28 PM
this is what you had to write

"LightmappedGeneric"
{
"$basetexture" "Nature/dirtfloor006a"
"$surfaceprop" "dirt"

"Proxies"
{
"textureScrollVar"
{
"textureScrollRate" 10
//Rate of scroll in units per second
"textureScrollAngle" 90
//Angle of rotation to move along. (90 = right, 180 = left, etc)
}
}
}

Theres no need to have the vtf with the vmt as its already in the gcf.

[SAS]==Dirty_Harry
04-10-2006, 04:17 AM
Still confused I have changed the .vmt to read exactly as your previous post but the texture still isnt moving.

I am only doing a fast compile so I don't know if that would have any bearing on the problem?

KominAaa
04-10-2006, 04:41 AM
http://developer.valvesoftware.com/wiki/Material_proxies

if that can help. :l

[SAS]==Dirty_Harry
10-01-2006, 03:27 PM
Well I finally got it to work but not from the wiki so if anyone else is interested or needs to know how to do it follow this simple tutorial.

For the purpose of this tutorial we will assume that we have chosen the texture anzio_grass001

Extract the anzio_grass001.vtf file using GCFScape.

Make a folder "mapname" in the following directory

C:\Program Files\Steam\SteamApps\email\day of defeat source\dod\materials

Place the anzio_grass001.vtf file in the folder.

Next open notepad and paste the following

"UnlitGeneric"
{
"$basetexture" "Nature/anzio_grass001"
"$surfaceprop" "no_decal"
"Proxies"
{
"TextureScroll"
{
"texturescrollvar" "$baseTextureTransform"
"texturescrollrate" "3.00"
"texturescrollangle" "180.00"
}
"ConveyorScroll"
{
"texturescrollvar" "$baseTextureTransform"
}
}
}

Save the file as anzio_grass001.vmt and place it in the same folder as the .vtf file.

Now restart hammer browse the texture and apply it to the face that you want to scroll.

Don't forget that when you release the map you will need to include the anzio_grass001.vtf and the anzio_grass001.vmt

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.