Matte Effects

From HLAEwiki

Jump to: navigation, search


You want a cool matte effect with maybe a player running in front of a house and then that house turns into a chicken and then maybe into de_dust2 or 2fort, before the player fades out, all with the camera spinning round that player and zooming in and out. Yep, we've all been there and it was this kind of thing that I first made this plugin.


Lets start howeever, by choosing your matte colour. What colour you want will depend on personal preference or the video editor you will be using.

] mirv_matte_setcolor 0 255 0

The mirv_matte_setcolor command takes 3 arguments for red, green and blue, from 0 to 255. If you prefer floating point values have a look at mirv_matte_setcolorf. So our matte now is a perfect green, or #00FF00 as you might say if you were a pro-webdesigner. Or possibly not.


Now you choose what you are recording, using mirv_movie_splitstreams, which has 3 possible values.

] mirv_movie_splitstreams 1

This only shows the world, entities are invisible.

] mirv_movie_splitstreams 2

This only shows the entities, and the rest is the matte colour you specified.

] mirv_movie_splitstreams 3

This alternates between the world and entities, and is probably the one you'll be using more often (but maybe not).


By default MDT will do image dumping itself, so you don't need to faff around with startmovie. MDT will automatically name your images (you can specify filenames) as well as take numbers and stuff like that. See Manual:First Steps for more information. Plus it can do snazzy effects like depth dumping.


What, did somebody mention depth? Oh yeah, using mirv_movie_depthdump 1 you can also dump the depth buffer to tgas too. This is a representation of the depths of the image, the nearer to the observer something is the darker it'll be. You can use this for cool effects such as depth blurring or coloring. For more information refer to Category:Depthdump.


Right where were we? We'll set the filename in order to keep things nice and organised.

] mirv_movie_filename "that_scene_with_chicken"


There's a few more cvars and commands you might want to mess around with:

mirv_matte_entities 
allows to enter entity numbers that will be the only entities in the entity stream and the only entities not in the world steam.
mirv_matte_worldmodels 
use this to pick whether doors are in the world (1) or the entity streams (2)
mirv_matte_viewmodel 
same as above but with your player's viewmodel (the gun coming out your screen) instead

For even more commands just have a look at Category:Matte.


Finally use +mirv_recordmovie or mirv_recordmovie_start / mirv_recordmovie_stop to start the effects going (and the custom tga dumping if set).


A tutorial on chromatography would be handy really for post-plugin trickory, but beyond the scope of the plugin manual really!


You might find Category:Matte or Category:Output interesting.

Personal tools