• How To Make Your Own Animated Textures!
    49 replies, posted
[QUOTE=TH89;18700821]hey grea$emonkey, I want to do a static texture with an animated selfillummask, for a blinking light on a camera. Is that possible? What would the VMT look like?[/QUOTE] Just animate a selfillummask? I've never tinkered with anything other than selfillum alone. Just experiment with it and see what happens. Be sure to put selfillum stuff outside of the animation proxies though.
I don't know what that means :(
[QUOTE=TH89;18707657]I don't know what that means :([/QUOTE] Show me what you mean.
It's the structure of the VMF that confuses me. I am VMF illiterate. Is this what I'd want? [code]"UnlitGeneric" { "$basetexture" "foldername/filename" "$vertexcolor" 1 "$vertexalpha" 1 "$nolod" 1 "$selfillum 1" "$selfillummask" "models/TH89/kazzin/speakerglow" "Proxies" { "AnimatedTexture" { "animatedtexturevar" "$selfillummask" "animatedtextureframenumvar" "$frame" "animatedtextureframerate" "5" } } }[/code]
[QUOTE=TH89;18708507]It's the structure of the VMF that confuses me. I am VMF illiterate. Is this what I'd want? [code]"UnlitGeneric" { "$basetexture" "foldername/filename" "$vertexcolor" 1 "$vertexalpha" 1 "$nolod" 1 "$selfillum 1" "$selfillummask" "models/TH89/kazzin/speakerglow" "Proxies" { "AnimatedTexture" { "animatedtexturevar" "$selfillummask" "animatedtextureframenumvar" "$frame" "animatedtextureframerate" "5" } } }[/code][/QUOTE] That looks right to me. Try it out.
Looks reasonable. $frame might need to be defined outside the proxy block along with the other keyvalues. If that fails to work, might use other proxies to modify the alpha or dimensions of the mask (and possibly $basetexture as well).
[QUOTE=Terrenteller;18708758]Looks reasonable. $frame might need to be defined outside the proxy block along with the other keyvalues. If that fails to work, might use other proxies to modify the alpha or dimensions of the mask (and possibly $basetexture as well).[/QUOTE] I don't think $frame needs to be defined elsewhere. It's always worked for me. :buddy:
Sorry, but I have a problem. I've created my gif, just a simple moving grass effect to try and feign movement for a map that takes place on a train, in left 4 dead. Unfortunately, I simply get pink and black squares when I try and put the texture in game. I have no idea what to do, can you help?
Post the .vmt.
[code]"LightmappedGeneric" { "$basetexture" "grassblur\grassblurvtf" "Proxies" { "AnimatedTexture" { "animatedtexturevar" "$basetexture" "animatedtextureframenumvar" "$frame" "animatedtextureframerate" "500" } } }[/code] And yes, the file is called grassblurvtf.vtf
What is the file path of the above .vmt and .vtf?
and this is essentially the image, although ulead stretched it for some reason. [img]http://filesmelt.com/downloader/grassblur.gif[/img] The path is: C:\Program Files\Steam\steamapps\common\left 4 dead\left4dead\materials\grassblur
Confirm the .vmt is in fact *.vmt and not *.vmt.txt.
Yeah, it's definitely vmt. I re-saved it in notepad as type "all files" to make sure It appears in hammer, as a blank square in the material selection menu, it's just when I apply the texture, it's all pink and black dots
Would you upload the two files somewhere?
Here they are. [url]http://filesmelt.com/downloader/grassblurvtf.vtf[/url] [url]http://filesmelt.com/downloader/grassblurvtf.vmt[/url]
Change: [code] "$basetexture" "grassblur\grassblur"[/code] To: [code] "$basetexture" "grassblur\grassblurvtf"[/code]
Ugh I feel stupid now. I moved the file before changing it, changed one of them, and forgot to change the other. Yes it's working now, thank you very much. [editline]10:09AM[/editline] Incidentally, is there a way to make it scroll AND animate? Like [code]"LightmappedGeneric" { "$basetexture" "grassblur\grassblurvtf" "Proxies" "TextureScroll" { "texturescrollvar" "$basetexturetransform" "texturescrollrate" 2 "texturescrollangle" -90 } { "AnimatedTexture" { "animatedtexturevar" "$basetexture" "animatedtextureframenumvar" "$frame" "animatedtextureframerate" "500" } } }[/code]
[QUOTE=gmaster;18879151]Ugh I feel stupid now. I moved the file before changing it, changed one of them, and forgot to change the other. Yes it's working now, thank you very much. [editline]10:09AM[/editline] Incidentally, is there a way to make it scroll AND animate? Like [code]"LightmappedGeneric" { "$basetexture" "grassblur\grassblurvtf" "Proxies" "TextureScroll" { "texturescrollvar" "$basetexturetransform" "texturescrollrate" 2 "texturescrollangle" -90 } { "AnimatedTexture" { "animatedtexturevar" "$basetexture" "animatedtextureframenumvar" "$frame" "animatedtextureframerate" "500" } } }[/code][/QUOTE] Again, try it. If it doesn't work then it will tell you. Personally, I've never tried that so the best way of learning this stuff is just experimenting.
Imma gonna bump this so other people can see it ._. Hope I don't get banned [highlight](User was banned for this post ("Bump" - Terrenteller))[/highlight]
Sorry, you need to Log In to post a reply to this thread.