From the depths, your journey home begins. Scintilla is about mystery, solving puzzles both of the gameplay and of the story, but there is also combat --and horror-- involved. Our themes come out of spiritual qualities, imagination, dreams, symbolism, and our goal is a vibrant, atmosphere-ridden adventure. This mod is being developed on Half-Life 2 Episode 2, and so it requires Ep2 to run.

Report article RSS Feed Simple noise effect trick via Hammer

How to do a crude noise effect over your screen in HalfLife2, without coding. Basic texture and Hammer knowledge needed.

Posted by Leon_Kilean on Jul 30th, 2011
Intermediate Mapping/Technical.

--Heya

So since that Shader Editor came out, we got rid of the old noise effect and implemented a way fancier post process effect -- which of I cant be arsed to talk more, you´ll see when you eventually play Scintilla.

But! But but..
Since every second Source modder out there is interested in having noise on their screen, without coding, and multiple people have harassed me on how to do that, I figured I´d save some time and write it here. What you need to know is generally how to work with .vmt files or create new textures. Nothing fancy, the basics will do.


TRICKERY! Noise screen overlay:

1. Make a texture file, .vtf, with pure noise into it. 1024x1024 will do, preferably with DXT1 compression..

2. The vmt file for this noise would be something along the lines of..

UnlitGeneric

{
    "$baseTexture" "yourtexture"
"$additive" "1"
"$nofog" "1"
"$nolod" 1
    "Proxies"
    {

        "TextureScroll"
        {
            "texturescrollvar" "$basetexturetransform"
            "texturescrollrate" 31.97
            "texturescrollangle" 58
        }    
    }
}

3. In the Hammer editor, have a Logic_Auto in your level, and in the properties, OnSpawn triggers a env_screenoverlay, and that screenoverlay  is assigned on the noise texture of yours.

4. ..And thats it! When you start the level, it´ll wrap your noisy texture across the screen.


Extra:
You most likely have to adjust the noise´s intensity alot. I used a VERY VERY dim texture for mine, basically it was like dark grey and black. I think one way to make the material dimmer would be via vmt code, "$color" "[0.5 0.5 0.5]" would cut half out of all the colour channels. Should work. Otherwise, just make the texture itself darker. Takes a bit of experimenting.
AND, you can have multiple frames in the .vtf ---this grows the texture´s size alot, so be wary--  and then use a AnimatedTexture proxy. In the above vmt example I used a proxy that makes the texture scroll crazy fast.. but in-game I had both the scrolling and 2 frame animation active. It did the trick, noise looked smooth.
        "AnimatedTexture"
        {
            "animatedtexturevar" "$baseTexture"
            "animatedtextureframenumvar"  "$frame"
            "animatedtextureframerate" "0.5"
        }

...and finally, if you dont know how to use proxies, check this out, superhandy.


So yeh, simple, but might come in handy for some modders.
cheers,
-H

Post comment Comments
Jokerme
Jokerme Jul 31 2011, 10:21am says:

Thanks, sure will come in handy :)

+2 votes     reply to comment
Jokerme
Jokerme Jul 31 2011, 10:55am replied:

Tried it. Works perfect :D

+3 votes     reply to comment
awesomepossum
awesomepossum Jul 31 2011, 12:44pm says:

Very cool!

+4 votes     reply to comment
KEEP_IT_UP!
KEEP_IT_UP! Jul 31 2011, 5:50pm says:

good stuff, good stuff! :)

+2 votes     reply to comment
GoldPlatinum
GoldPlatinum Aug 19 2013, 9:48am says:

Doesn't work properly, all that appears is a white background with animated noise.

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
Half-Life 2: Episode Two Icon
Platform
Windows
Contact
Send Message
Release Date
TBD
Mod Watch
Track this mod
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Mods
Flesh (Half-Life 2)
Flesh Half-Life 2 - Single Player Adventure
Scintilla (Half-Life 2: Episode Two)
Scintilla Half-Life 2: Episode Two - Single Player Adventure
Related Games
Half-Life 2
Half-Life 2 Single & Multiplayer First Person Shooter
Half-Life 2: Episode Two
Half-Life 2: Episode Two Single & Multiplayer First Person Shooter
Related Groups
Flesh HL2 development group
Flesh HL2 development group Developer & Publisher with 11 members
Level Design Group
Level Design Group Hobbies & Interests group with 581 members