Silly tool


(Sauron|EFG) #21

The tool is really simple, it just does a per pixel comparison with the background image; if the pixel is the same colour it is considered part of the background, if not then it’s part of the foreground. Because of the limitations with this method the use is rather limited, but at least it’s working good enough to produce some “fun” intro sequences.

If you can capture the exact same frames twice then this tool can be used (though I’d have to modify it to take a sequence of background images as input). Unfortunately I doubt the engine does that, but I’ll check when I get the time. :slight_smile:


(DarkangelUK) #22

You can rid of the players and keep the map easy, it’s getting rid of the map and map entities and keeping the players that’s hard. r_drawentities 0 for no players, r_drawworld for no map… just the moveable map entities are classed the same as players. guess you could just change all the textures to green, i did that on Q3 maps. Photoshop batch files make that job pretty easy.


(nUllSkillZ) #23

No need for a “invisible” mod.


(metzelmatze) #24

well i was really happy, when i heard of this tool, cause i had some ideas concerning player models running around in the “real world”.
But i got a problem. i recorded a demo, and made some tga files like shot0001.tga-shot0260.tga. so my command line shoukd be sth like
D: gadif\TGA_diff -s 10 -b 000000 f:\Enemy Territory\etpro\screenshots\shot0416.tga f:\Enemy Territory\etpro\screenshots\shot0417.tga f:\shot0000.tga
but nothing happens :(. even if i type : d: gadif\TGA_diff -?..
i think a wondow is poppin up for a veryvery short time like some miliseconds…
Well i dont know what the prob is.
thx for help


(Sauron|EFG) #25

If there’s spaces in the path you have to enclose it in quotes, like this:

D: gadif\TGA_diff -s 10 -b 000000 “f:\Enemy Territory\etpro\screenshots\shot0416.tga” “f:\Enemy Territory\etpro\screenshots\shot0417.tga” f:\shot0000.tga

Are you typing the command in the “Run” box? If you start a command prompt instead and run the tool from there you’ll (hopefully) see some error text when something goes wrong. :slight_smile:


(Sauron|EFG) #26

Ok, got some inspiration to add another feature after seeing that someone actually used the tool (in Vitamin P, which is well worth the download btw).

Colour filter can now be applied to background and/or foreground:

Should save a few steps compared to doing it in PS. :slight_smile:


(fretn) #27

rtcw - edv has this feature, its pretty easy to code, just add a cvar, and everywhere a model is added to the scene, prevent this or allow this (based on the cvar value (duh))


(Sauron|EFG) #28

Turns out it does render the exact same images, so I’ve added the feature to the latest version and written a short tutorial on how to use it with scripted cameras.


(Jaquboss) #29

invisible things has blendfunc GL_ZERO GL_ONE people…


(DarkangelUK) #30

Nice movie, maybe a tad short and repetative but still a nice movie.