Source Engine

Using Terragen to Generate Displacements

Using Terragen to Generate Displacements

Easy Displacement Terrain.

Using Terragen to Generate Displacements Tutorial screenshot

Well first of all you will need a few programs to make this work, but once you have everything its a pretty easy process to make quick and easy terrain in Hammer.

Tools Needed!

  • Terragen - Download
    • Yes, there is a licensed version and a free version. The free version has some restrictions, but will work fine for what you will be using it for.
  • TGPGuiLib - Download
    • Just needed to get the next tool to work correctly
  • For Export Only - Download
    • This is what you will need to export your terrain file as a .bmp image for the next tool to be able to read and make displacements for you
  • DispGen - Download
    • This is the tool that will make your displacements and save a .vmf file for you to open and edit to your liking in Hammer.
Alright, now I will procede to explain how to generate some simple terrain in Terragen, and how to install/use all those tools. First, you need to run the installer for TGPGuiLib. You don't need to do anything else with this. For Export Only, you will need to unzip the files and copy/paste them into your Terragen directory (for instance C:\Program Files\Terragen). Now, open up Terragen, and a window will be there labeled Landscape. This is really all you will be dealing with, other then maybe the 3d view to get an idea of how it will look. Click on the 'Generate Terrain' button and another window appears. Things may look a bit confusing so I'm going to attempt to give a basic description for each option. However, you can find more information about this here.
Method - Styles used to randomly generate terrain, the stuff other then 'Subdivide & Displace II' is used to make more rugged and rocky terrain. I recommend keeping it the default for this however. Action - Self explanatory. The first option generates new terrain each time you click the 'Generate Terrain' button. The second option will add/subtract to it. Realism - This doesn't matter all too much, since you will still be limited to the restrictions of textures and setting of the Source Engine. Smoothing - The higher you make the slider, the more smooth your hill/mountains will become. Glaciation - Flattens the bottom of valleys and smooths angles. Canyonism - Basically the reverse of Glaciation. I recommend playing with these two setting the most to get different terrains. Size of Features - Minimum will make smaller steeper hills, while maximum makes more like plateaus (hills/mountains with flat tops).
The last two features, I recommend leaving them default. So click Generate Terrain till you get something you like. You can also click on View/Sculpt and make some crude changes with the sculpt tool as well, its pretty simple to use, but hard to get anything too detailed with it. Once you have a terrain you wish to work with, I recommend saving it as the Terragen terrain file, just in case. Now, when you are ready to export it, click on Accessories and select F.E.O Windows BMP. Just leave everything in the next window at default settings. NOTICE: If this option is not available, you have not correctly installed For Export Only! You can kinda preview how the terrain looks while still in Terragen. Just in the 'Rendering Control' box, uncheck 'Fixed Height Above Surface'. Then change your altitude so you are above the terrain to see everything. Then click the 3D button on the left to get a preview. You can move around by holding down the left mouse button to look and 'WASD' keys to move around. Now then, open up DispGen. You can mess with the brush generation parameters. If you even have a general knowledge of Hammer you should be able to figure it out. Where it says 'Heightmap File', click the button with three dots, and select your .BMP that you exported from Terragen. You can also click 'Run Smoothing' if you so desire. Pick a material and maybe an Alpha Map if you have one (I'm not going into alpha maps in this tutorial). Lastly, under VMF output, click the button with three dots and name a new map to save your newly created terrain in. Just click on Generate, and you should have a .vmf file with terrain all created for you and ready to edit. Have fun with this. Hopefully, I'll see some maps with badass terrain ;) This can also be used in any Source game really. If you have any questions, just send me a PM, and I'll try to get back to you ASAP.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

  • sephrosasia avatar
    sephrosasia Offline
    Member Joined 8 years ago
    Report post
    7 years ago:

    I've used terragen in the past but only to make images, and I didnt even think to combine the two before your tutorial, thank you for this :)


    Rubinelle CL
  • Euronymous avatar
    Euronymous Offline
    Member Joined 9 years ago
    Report post
    7 years ago:

    Really helpful, cheers!

  • Greyfrog_Design avatar
    Greyfrog_Design Offline
    5,999 points Ranked 648th
    Member Joined 10 years ago
    Report post
    7 years ago:

    Very good. i make displacements like that without all the extra programs though... but i think it could be very useful if you were to create a custom landscape for an island or volcano or some such thing.

    Indeed an good addition to the site media. I look forward to seeing more for this author.


    Prefab Moderator - SauceMan avatar
    Prefab Moderator - SauceMan
  • OwnT- avatar
    OwnT- Offline
    16,113 points Ranked 256th
    Member Joined 8 years ago
    Report post
    7 years ago:

    Nicely done, the outcome is awesome. And as always good use of html ^_^


    Can't stop, won't stop.
  • Smokec0ke avatar
    Smokec0ke Offline
    92,486 points Ranked 37th
    Member Joined 8 years ago
    Report post
    7 years ago:

    Pros: Explained well, In good detail, and very useful Notes: its a good 9.9/10


    I am Barcode avatar
    I am Barcode
  • -Fight- avatar
    -Fight- Offline
    6,077 points Ranked 638th
    Member Joined 8 years ago
    Report post
    7 years ago:

    Ill have to try this some time

    And... here...we.........go!
  • Misto avatar
    Misto Offline
    44,005 points Ranked 88th
    Member Joined 9 years ago
    Report post
    7 years ago:
    Posted by AsianBorat This is like, infinitely useful!!! I don't know why your bScore is somehow 0.0, but this is definitely a good tut.

    Thanks for the feedback. It was only 0 because a studio member assessed it first, which makes it 0 till someone else does.

    ... avatar
  • AsianBorat avatar
    AsianBorat Offline
    Member Joined 8 years ago
    Report post
    7 years ago:

    This is like, infinitely useful!!! I don't know why your bScore is somehow 0.0, but this is definitely a good tut.


    Pirates < Pinjas > Ninjas
  • ExtraOrdinary avatar
    ExtraOrdinary Offline
    8,445 points Ranked 465th
    Member Joined 9 years ago
    Report post
    7 years ago:

    Didn't know that this worked with Hammer, Nice tutorial, will try that out for sure :D

    Proud GTX285 User (02 June 200 avatar
    Proud GTX285 User (02 June 200
  • Decemberklar avatar
    Decemberklar avatar Offline
    7,796 points Ranked 501st
    Moderator Joined 9 years ago
    Report post
    7 years ago:

    A reason for me to reinstall the program.

    I feel that we will be using this a bit :D



Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share



About this module
This module lists all those involved in the creation of this Tutorial.
Key Authors


Misto avatar
Misto Offline
44,005 points Ranked 88th
Member Joined 9 years ago



About this module
This module displays this Tutorial's category.


About this module
This module displays what game this Tutorial is for.
Source Engine
Source Engine


3D Art & Rendering, Mapping
Difficulty Level


Date Added
7 years ago
Aug 19 2008 @ 6:31am UTC
Date Modified
2 years ago
Oct 24 2013 @ 3:35pm UTC


About this module
This module shows the average user rating of this Tutorial.
Skill LevelRatingVotes
Expert+++ 9 to 10 30
Expert++ 9 to 10 20
Expert+ 9 to 10 10
Expert 9 to 10 5
Intermediate+ 8 to 8.99 3
Intermediate 7 to 7.99 3
Beginner+ 6 to 6.99 2
Beginner 5 to 5.99 2
Beginner- 0 to 4.99 2

Ratings Breakdown

About this module
This module shows how the ratings are dispersed among the criteria.
Overall 9.7 6 9 to 10

More Tutorials from Misto