Help - Search - Members - Calendar
Full Version: Animated Sprays
Sneaky Monkeys Forum > General > Public Discussion
MonkeyFiend
something I've been playing with - a (complex) way of getting L4D sprays animated... you do from time to time see a crap animation of a survivor in a closet being used as a tag.. it's pretty much the only animated spray I've seen.

So I thought I'd make a new one:



(although its smaller than this due to size limitations..

can be downloaded from:

http://sneakymonkeys.com/vtf/spray.vtf

The max file size for a VTF is 120KB, no limit on frames, but each frame needs a layer mask and other pointless stuff

I'll probably make something better soon, but at least we know animated sprays are possible biggrin.gif
Magik5
ooh the possibilities

gna try this when i get home =]
fido77
hmmmmm. wonder if sound can be added also?!?! i want my dog to be barking, or growling
MonkeyFiend
QUOTE(fido77 @ Mar 18 2009, 12:59 PM) *
hmmmmm. wonder if sound can be added also?!?! i want my dog to be barking, or growling


sound can't be added to a texture file.

A scripted object would work, but thats the realms of custom maps.
fido77
how can i get my doggy movin? like he's tearin through the wal!!! that would be awesome. lol
MonkeyFiend
well looking at a scaled 128x128 image, per frame consumes about 10K, so you're looking at 10 frames maximum (more like 8 in reality) for your animation. Basically you need a series of 256 or 128 sized images to form an animation.

Looking at the monkey with gun, this is 4 frames, the total being about 60KB (where the maximum for a VTF is 120)

I've also not seen any mechanism for controlling frame transition speed
Magik5
whats the default?
MonkeyFiend
can't tell... I'd take a stab at 20ms though
fido77
slowing down should be fairly easy if your programming this stuff in. just use a counter where it loops through the image a few times then changes.
Magik5
not if the compression software doesnt allow ;p
fido77
check out my new sig =FaRT=ikiltnoobs made for me!!!! i think its pretty good!!! even though it don't have our site adress on it.lol
fido77
i tried putting in a new avatar, but it don't seem to be changing

[edit] oh, there it goes. lol.[edit]
kermit
Can anyone make me a animated spray of a frog please havnt the foggys idea how
MonkeyFiend
Thar be a guide here:

http://orangpelupa.blogspot.com/2008/12/le...t-animated.html

Or post the animated gif or static frames to make an animation here and me or someone should be able to churn one out smile.gif
løṡτ_сøṉƒυṡεḋ:
QUOTE(MonkeyFiend @ Mar 18 2009, 01:53 AM) *
something I've been playing with - a (complex) way of getting L4D sprays animated... you do from time to time see a crap animation of a survivor in a closet being used as a tag.. it's pretty much the only animated spray I've seen.

So I thought I'd make a new one:



(although its smaller than this due to size limitations..

can be downloaded from:

http://sneakymonkeys.com/vtf/spray.vtf

The max file size for a VTF is 120KB, no limit on frames, but each frame needs a layer mask and other pointless stuff

I'll probably make something better soon, but at least we know animated sprays are possible biggrin.gif

i have been making animated .vtf files for some time now and as long as you abide by several constraints it always work


keep in mind that an animated spray is not really animated rather just a selection of .vtf shown at different periods.

//constraints:

sizes must be integrals^2 i.e. 2,8,16,32,64 (no point going higher as u cant use multi frames and a animated spray is pointless) max use 256 but u are on the verge of going over the 128kb (real limit) of the allowed upload for a spray.

so image size and physical mem size are your real hurdles. create several (depending on project) .png files and save them in a "spray" dir, or whatever u want to call it. labled 1.png 2.png 3.png 4.png (their physical mem size now is NOT and indication of .vtf size.) open VTFedit (please get this from NEM'S tools) aynwhere else is a older version and dont support leechers. 

select file > import > select all 1,2,3,4.png > and import* . then under general select animated texture and under options make sure the "auto create vmt file" is selected. export to game dir and u r done.



EveceGob73
hypnotic... and marvellous... all animated content from here on in should have
this rhythmical arse involved somehow
Magik5
oh my, i just spilt my coffee
MonkeyFiend
was about to get the spamhammer out then realised it wasn't. Quality.. this guy should write horoscopes biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2025 Invision Power Services, Inc.