Tremulous Forum

Media => Other Tremulous Media => Topic started by: m4gnificent_b4st4rd on November 13, 2009, 02:39:14 pm

Title: Tutorial - Using a green screen map.
Post by: m4gnificent_b4st4rd on November 13, 2009, 02:39:14 pm
I've made a simple greenscreen map, see this thread (http://tremulous.net/forum/index.php?topic=12303.0). This map is empty apart from alien and human spawn, with everything else being a flat, shadowless map.

Here's a quick demo of what I did with it.

- I opened up the console and set cg_shadows to 0.
- I then spawned as a human in the game, committed suicide, respawned and took a screenshot of the body.
- I loaded the screenshot into gimp, cropped it to size and chose the Select > Select by colour tool.

(http://imgur.com/d0YYR.png)

- With all the green selected I removed it with the eraser tool.

(http://imgur.com/AKHd4.png)

- I then clicked Select > None to remove the selection.
- I used the eraser tool some more to remove the crosshair and gun.
- I saved the image as a PNG (to keep the alpha layer) and then overlaid it on another image.

(http://imgur.com/FeJ91.jpg)

- Resulting in my final image of a shipwrecked marine.

This was just a quick and dirty tutorial, but you get the general idea.  :)
Title: Re: Tutorial - Using a green screen map.
Post by: Taiyo.uk on November 13, 2009, 04:40:48 pm
Now antialias those jaggies and scale him down so he doesn't appear to be 20' tall. Add some mutilations else people will assume he just drank too much.
Title: Re: Tutorial - Using a green screen map.
Post by: m4gnificent_b4st4rd on November 13, 2009, 05:27:44 pm
Taiyo.uk - Yeah, it is a bit rough, wasn't done as a serious attempt though. :D

Interestingly enough it actually looks better without anti-aliasing on because there is a clean distinction between the model and the background which Gimp can easily separate. With anti-aliasing you get pixels which are a mix of the model's colour and the background colour so the colour select tool doesn't work cleanly and you are left with a greenish edge around your model.

Not sure what the solution to this is to be honest. It's possible there is a filter that could soften the edges slightly to give a pseudo-anti aliased effect. Maybe someone with more Gimp knowledge than myself might have some suggestions.