Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/sites/a/ on line 20
Wavelength | Your Game Editing Resource | Creating alpha blending textures.
Welcome, Guest! Login | Register

Creating alpha blending textures. [Print this Article]
Posted by: Bill
Date posted: Dec 07 2004
User Rating: N/A
Number of views: 11549
Number of comments: 2
Description: How to create an alpha blending texture.
Blend textures are primarily used on displacement maps to create smooth transitions between two textures, e.g. grass and rock on terrain.

Creating your own blend texture is a very simple process, the first step is to choose the two textures that you want to blend together, if you're going to be using existing Half-Life 2 textures the best way to choose them is probably to fire up Hammer and open the texture browser, find two textures that you want to use and take note of their names, for this example I will be using nature/rocks_red_grass and nature/grassfloor002a.

Now the first step is to create a new VMT file in your materials directory, to do this create a new .txt file and rename to something like blend_dirtgrass01.vmt. Now open up this new file in notepad and enter the following:

"$basetexture" "nature/rocks_red_grass"
"$basetexture2" "nature/grassfloor002a"
"%keywords" "nature"

As you can see, $basetexture and $basetexture2 specify which materials you want to blend together, there are other variables/peramters that you can add to this VMT file just like any other material, I will be covering more aspects of VMT creation in later tutorials.

So save the VMT and open up Hammer, type in your keyword or the name of the texture and your new blend texture will be there ready to use on your displacement maps. Enjoy! :)

Rate This Article
This article has not yet been rated.

You have to register to rate this article.
User Comments Showing comments 1-2

Posted By: SilentSounD on Dec 08 2004 at 06:16:28
nice job :)

Posted By: SoUlFaThEr on Dec 10 2004 at 04:10:28
oh man thanks a lot for this bit of info! rock on

i cant wait until some genius writes the complete shader explanation tutorial and all the uses of all those damn shaders! what a mess im wasting so much time trying to get stuff to work and id rather be mapping :(

You must register to post a comment. If you have already registered, you must login.

Latest Articles
3rd person View in Multiplayer
Half-Life 2 | Coding | Client Side Tutorials
How to enable it in HL2DM

By: cct | Nov 13 2006

Making a Camera
Half-Life 2 | Level Design
This camera is good for when you join a map, it gives you a view of the map before you join a team

By: slackiller | Mar 05 2006

Making a camera , Part 2
Half-Life 2 | Level Design
these cameras are working monitors that turn on when a button is pushed.

By: slackiller | Mar 04 2006

Storing weapons on ladder
Half-Life 2 | Coding | Snippets
like Raven Sheild or BF2

By: British_Bomber | Dec 24 2005

Implementation of a string lookup table
Half-Life 2 | Coding | Snippets
A string lookup table is a set of functions that is used to convert strings to pre-defined values

By: deathz0rz | Nov 13 2005

Latest Comments
knock knock
General | News
By: MIFUNE | Dec 31 2017
knock knock
General | News
By: omega | Dec 22 2016
knock knock
General | News
By: MIFUNE | Oct 10 2015
New HL HUD Message System
Half-Life | Coding | Shared Tutorials
By: chbrules | Dec 31 2011
knock knock
General | News
By: Whistler | Nov 05 2011
Particle Engine tutorial part 4
Half-Life | Coding | Client Side Tutorials
By: darkPhoenix | Feb 18 2010
Particle Engine tutorial part 2
Half-Life | Coding | Client Side Tutorials
By: darkPhoenix | Feb 11 2010
Particle Engine tutorial part 3
Half-Life | Coding | Client Side Tutorials
By: darkPhoenix | Feb 11 2010
Game Movement Series #2: Analog Jumping and Floating
Half-Life 2 | Coding | Shared Tutorials
By: mars3554 | Oct 26 2009
Particle Engine tutorial part 5
Half-Life | Coding | Client Side Tutorials
By: Deadpool | Aug 02 2009

Site Info
297 Approved Articless
8 Pending Articles
3940 Registered Members
0 People Online (12 guests)
About - Credits - Contact Us

Wavelength version:
Valid XHTML 1.0! Valid CSS!