Re: scrolling texture
Posted by Dark Tree on
Mon May 16th 2005 at 9:33am
646 posts
264 snarkmarks
Registered:
Apr 30th 2004
Occupation: DigiPen student
Location: USA
I am trying to figure out how to animate a texture so that it scrolls. I am making a conveyor belt and I wanted to have a moving texture. I tried making a func_conveyor, but it only moved me...not the texture.
Well I found a water vmt with a "texturescroll" variable in it, but I cannot seem implement it into MY custom texture. Here is what I did:
"LightmappedGeneric"
{
"$basetexture" "move/belt"
"$surfaceprop" "rubber"
"Proxies"
{
"AnimatedTexture"
{
"animatedtexturevar" "$normalmap"
"animatedtextureframenumvar" "$bumpframe"
"animatedtextureframerate" 30.00
}
"TextureScroll"
{
"texturescrollvar" "$bumptransform"
"texturescrollrate" .05
"texturescrollangle" 45.00
}
}
}
I even tried it withOUT the "AnimatedTexture" section and I have my vtf's and vmt's all in the right folders. The textures shows up in hammer and HL2.....but it still aint moving....are there even moving textures IN Half-Life 2? ARRRGH!
Do I need to take out the proxies? Or.....remove bumtransform (since I don't need it bumpmapped I guess)....can you see anything wrong with this picture? Does this texture need to by tied to an entity or something? Maybe an alpha layer or two layers for each image I want in ONE vtf?
Re: scrolling texture
Posted by Leperous on
Mon May 16th 2005 at 8:09pm
Leperous
Creator of SnarkPit!
member
3382 posts
1635 snarkmarks
Registered:
Aug 21st 2001
Occupation: Lazy student
Location: UK
Well, does it work if you remove bumptransform? (not that I imagine it will)... Can you use both "AnimatedTexture" and "TextureScroll" at the same time? Try removing the former and try again (perhaps with a higher texturescrollrate)?
Re: scrolling texture
Posted by Dark Tree on
Mon May 16th 2005 at 11:10pm
Posted
2005-05-16 11:10pm
646 posts
264 snarkmarks
Registered:
Apr 30th 2004
Occupation: DigiPen student
Location: USA
Leperous and Rof...thank you. Perfect. Just took out the AnimatedTexture Section, and made the line read: "texturescrollvar" "$basetexturetransform".
Rof, I didn't even see that you had changed $bumptexturetransform to $basetexturetransform! I did figure it out but I should have read more carefully! Thank you both.