BHD Terrain making tut by Sonic

In Memory Of Dr. Evil ~TAG

Moderators: Q-dad~TAG, EXP STAFF, Moderator

BHD Terrain making tut by Sonic

Postby SonicDeath » 02-01-2006 09:53 AM

BHD Terrain making tut by Sonic
Terrain Making Tut for BHD
by sonicdeath
Tools needed:
-Photoshop
-bhd mod tools
-PFF utility


File format used for terrain making:
.tga -used for color maps and textures
.cpt -this is what the trngen builds
.tpj -runs the trngen
.raw -used to to make your height map
.trn -terrian information

Introduction:
Before I go on, you must have a good understanding of photoshop and the bhd mod tools in order to follow this tut.I also suggest you
make a working PFF so you can view your terrain as I'm not sure dropping files into your BHD folder will work for BHD.

First thing....forget about quad terrains.
Don't try this until you have a better understanding of terrain making.
Also, you can view all the sample files needed for terrain building in the bhd mod tools sample folder.



Height map:

you start off by making a 1024x1024 greyscale and using brushes paint a bumpmap like so:

Image


save as a .raw file and name it something like yourterrain1_d.raw



Now...you have the beginnings of your height map



This next step is were many I believe give up while learning terrain making.

Make a folder and put it anywhere you like and name it yourterrian1

Now copy the Sample.TPJ which can be located in the sample folder in the BHD mod tools and put it in your yourterrian1
folder.

Now edit the Sample.TPJ file to reflect the location path of where your folder yourterrian1 is.

example path

terrainname "yourterrian1"
creator "you"
path "C:\BHD FILES\dfbhd_modtools_020304_xx\yourterrian1\" ;be sure to have a backwards slash at the end of path
depthmap "yourterrian1_d.raw"
output "yourterrian1"

lock_topleft 0 0
lock_topright 0 0
lock_bottomleft 0 0
lock_bottomright 0 0


-edit path and output as well and also terrain name and rename TPJ to yourterrian1

-Ok now you are ready to compile the .raw file in the BHD mod tools


running CPT:

Ok now you are ready to navigate to where your mod tools folder is located.

click the Tergen program in mod tools and open the yourterrian1.tpj

Image

In upper right click build and away you go.....

If your path is set correctly in your TPJ than the build will start compiling the lods ( this will take a good while)

When it is completed you will now have a yourterrian1.CPT file in your yourterrian1 folder along with alot more .tml files which you can ignore

Image
Colormap:

Well you have got this far to don't give up now.

Many people do color maps in programs such as terragen but I do mine the old fashion way in photoshop.
What I do is open the yourterrain1_d.raw in photoshop and use it as a base.
Convert it to a RBG color and start layering textures on top of that while overlaying each texture to get the right effect you desire.


Image


Once you are happy with your colormap save as yourterrian1_c.tga and as a 1024x1024



Getting terrain in game:

Ok, this is where the .TRN file comes into play.

Open the sample folder in BHD mod tools and and copy and paste the sample.trn into your working yourterrain1 folder.

Rename sample.TRN file to yourterrain1.TRN


Below is a sample TRN and I will put yourterrain1 in the main things you have to edit in order to at least view your terrain in game

There are many things you can change concerning this file such as polytrn_detailmap, but in the interest of time I'm only going to cover the must edits.


terrain_name "yourterrian1"
terrain_creator "you"

;terrain values

water_height 0 ;default, if zero will take from mission


polytrn_colormap yourterrian1_c.tga
polytrn_detailmap Detsand01.tga
polytrn_polydata yourterrian1.cpt
polytrn_tilestrip trntile10.tga
polytrn_charmap dvd3_m.pcx
polytrn_foliagemap dvd3_f.pcx

polytrn_sectorcount 8 ; width of sectors
polytrn_wrapx 1 ; do we wrap on X?
polytrn_wrapy 1 ; do we wrap on Y?

polytrn_origin -4 -4 ; move terrain origin by this amount (X,Y)

polytrn_sectors 4 2 4 2 4 2 4 2 ; width here must match above
polytrn_sectors 3 1 3 1 3 1 3 1
polytrn_sectors 4 2 4 2 4 2 4 2
polytrn_sectors 3 1 3 1 3 1 3 1
polytrn_sectors 4 2 4 2 4 2 4 2
polytrn_sectors 3 1 3 1 3 1 3 1
polytrn_sectors 4 2 4 2 4 2 4 2
polytrn_sectors 3 1 3 1 3 1 3 1

;lock_topleft 0 0
;lock_topright 1 1
;lock_bottomleft 0 0
;lock_bottomright 1 1

foliage
graphic mveg2b.3di ; the 3DI to place on the terrain - must be <=20 verts
color_lower 0 ; 0=match ground 1=50% blend 2=retain full color
color_upper 1 ; 0=match ground 1=50% blend 2=retain full color
match 254 ; match with up to four different colors in the foliagemap
end

foliage
graphic mveg2c.3di ; the 3DI to place on the terrain - must be <=20 verts
color_lower 0 ; 0=match ground 1=50% blend 2=retain full color
color_upper 1 ; 0=match ground 1=50% blend 2=retain full color
match 253 ; match with up to four different colors in the foliagemap
end



Ok, now you are ready to see what you have made. Hopefully at this point you either have a working PFF to put your terrains in or you can drop files into your bhd dirictory although I'm not sure if you will be able to see them in med this way. You can drop file into the game directory for JO or DFX but what I suggest is you make a working PFF so you can view skins, terrains and models in a more a more organized way.


Files you need in PFF

yourterrain1.TRN
yourterrain1.CPT
yourterrain1_C.TGA

Thats all folks. Go in med and start a map with your terrian.

BHD to JO or DFX tutorial coming soon.
Image

<center>Death. The final high.<br>

</center>
SonicDeath
Senior Member
 
Posts: 546
Joined: 12-21-2004 10:33 PM

Postby smoke10 » 02-01-2006 01:24 PM

nice tut ill try and work on some terrians if i can get better :/....
<img>
<a><img></a>
smoke10
Moderator
 
Posts: 247
Joined: 02-20-2005 06:56 PM

Postby smoke10 » 02-01-2006 03:52 PM

i spent a quick 10 mins and came up w/ this...dont laugh its my 1st terrian.... but the colormap was easier than i thought

Image
Image
Image
Image
Image
<img>
<a><img></a>
smoke10
Moderator
 
Posts: 247
Joined: 02-20-2005 06:56 PM

Postby SonicDeath » 02-01-2006 08:07 PM

smoke10 wrote:i spent a quick 10 mins and came up w/ this...dont laugh its my 1st terrian.... but the colormap was easier than i thought

Image
Image
Image
Image
Image

Not bad for your first one.. Keep it up. I'll post a few more things concerning color maps when i have time.
Image

<center>Death. The final high.<br>

</center>
SonicDeath
Senior Member
 
Posts: 546
Joined: 12-21-2004 10:33 PM

Postby dzine » 02-02-2006 05:17 PM

A very thorough and extremely informative tutorial from Sonic... I had no idea where to start with terrains and this is perfect!!!
Smoke10 has made a very good start too! (at the speed I work at -slow- I'd better stick to buildings..lol)
dzine
EXP STAFF MEMBER
 
Posts: 170
Joined: 09-10-2004 12:50 AM

Postby SonicDeath » 02-12-2006 05:58 PM

dzine wrote:A very thorough and extremely informative tutorial from Sonic... I had no idea where to start with terrains and this is perfect!!!
Smoke10 has made a very good start too! (at the speed I work at -slow- I'd better stick to buildings..lol)


Thanks Dzine,

Your buildings btw are awsome. Keep up the great job and I'm looking forward to the NSO release.
Image

<center>Death. The final high.<br>

</center>
SonicDeath
Senior Member
 
Posts: 546
Joined: 12-21-2004 10:33 PM

Postby Eagle Eye » 11-07-2006 01:04 AM

Sonic, can you update the pics that are missing from this please..

Might start playing with terrains..

:)
Image
User avatar
Eagle Eye
Moderator
 
Posts: 164
Joined: 02-11-2004 08:40 PM

Postby SonicDeath » 11-07-2006 05:15 PM

Only cause I love you EE;)
Image

<center>Death. The final high.<br>

</center>
SonicDeath
Senior Member
 
Posts: 546
Joined: 12-21-2004 10:33 PM

Postby Eagle Eye » 11-08-2006 01:03 AM

LMAO..Gee, thanks mate, your sure such a nice guy, I really appreciate what you have done..

Cough.. Have I sucked up enough yet !!

No, really, thanks mate, I'm sure I'm not the only one who will benefit from this..

:)

Ta
EE
Image
User avatar
Eagle Eye
Moderator
 
Posts: 164
Joined: 02-11-2004 08:40 PM

Postby khorzu2 » 03-13-2010 04:43 AM

Images Are Lost?
khorzu2
Junior Member
 
Posts: 1
Joined: 03-13-2010 03:33 AM

Postby loa » 03-16-2010 03:00 PM

the post was made 4 years ago he has moved on since.
User avatar
loa
Administrator
 
Posts: 1132
Joined: 03-06-2004 01:54 PM


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron