Welcome, Guest! Login | Register

Creating alpha blending textures. [Print this Article]
Posted by: Bill
Date posted: Dec 06 2004
User Rating: N/A
Number of views: 7259
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:

 CODE  
"WorldVertexTransition"
{
"$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 00:16:28
nice job :)

Posted By: SoUlFaThEr on Dec 09 2004 at 22: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 04 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
Spinning Corpses Simple Fix
Half-Life | Coding | Snippets
By: darkPhoenix | Sep 05 2008
 
Where do we go from here
General | News
By: MIFUNE | Jun 09 2008
 
The Input/Output system
Half-Life 2 | Level Design
By: nazitaco | Dec 23 2007
 
Where do we go from here
General | News
By: Rob_F | Nov 22 2007
 
Rescaling Half-Life
Half-Life | Coding | Shared Tutorials
By: christoph | Nov 12 2007
 
GameUI
Half-Life 2 | Coding | Client Side Tutorials
By: Evil_j | Oct 29 2007
 
3 State Zoom For Any Weapon
Half-Life 2 | Coding | Server Side Tutorials
By: Ennuified | Oct 18 2007
 
Storing weapons on ladder
Half-Life 2 | Coding | Snippets
By: cct | Sep 07 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: DarkNight | Aug 28 2007
 
CTF Gameplay Part 1
Half-Life | Coding | Shared Tutorials
By: deedok | Aug 20 2007
 

Site Info
296 Approved Articless
5 Pending Articles
3940 Registered Members
0 People Online (15 guests)
About - Credits - Contact Us

Wavelength version: 3.0.0.9
Valid XHTML 1.0! Valid CSS!