• Animated material
    10 replies, posted
Wassup there. How to make animated material that can be used for ex. in HUD? I tried some methods in some guides(usually for sprays in TF2). I make GIF in PS -> I split to frames -> I turning it into VTF in VTFEdit and this works. But when I try to use this like material this doesn't work. For ex. I have in materials/hud folder lockdown.vtf and lockdown.vmt local mat = Material('hud/lockdown') surface.SetMaterial(mat) surface.SetDrawColor(255, 255, 255) surface.DrawTexturedRect(ScrW()/2 - 54, ScrH()/2 - 54, 108, 108) And I got purple.
Your lockdown.vmt is prolly is wrong. Post its contents.
Unfortunately, I lost it after this didn't show any work. I tried some .vtm that I found in some guides. Probably I do some things in VTFEdit wrong. Can you suggest me good guide or make your own?
No, just use VTFEdit, save a VTF file and then link the vmt into the vtf, but most likely you did wrong the vmt, or you tried to use a png in your vmt, thing that shouldn't work
If you have a big texture file (filesize wise), the game won't be able to load it.
i dont remember the filesize limit rn, but when i made my Visual Assistant i remember the file really cant be much...the limit is so tiny
What filesize or otherwise limit tho? I have seen vtf dozens of megabytes and 4k, how is that not enough? Also keep in mind that the more needlessly big textures you put onto your server, the more people will crash using them on their crappy PCs.
https://www.youtube.com/watch?v=9FzArGxs3Sk I worked on this a few years ago. The event horizon is an animated texture. It's 200 frames at 512x512 - 34MB. When I tried 200 frames at 1024x1024, the texture would not load in GMod. Not sure about 100 frames at 1024x1024, but It probably had a problem too since I ended up using 512x512 which GMod still loaded. There is some kind of a limit for sure.
the addon i made used a few textures that were really tiny in screen size, but used a alpha channel for transparency. they were too huge for gmod to load so i had to reduce a bit of quality, color, size etc to get it to working
Can you provide a sample vtf that has this problem?
genericdamage.vmt Not too sure if that upload works, but thats one of the files that actually works. Obviously i dont have the files anymore that were too big. Cause i dont need them.
Sorry, you need to Log In to post a reply to this thread.