Jump to content
Official BF Editor Forums

[tool] Bf2 Tpaint


Recommended Posts

I'm posting this up here as the main site TPaint use to be hosted on has gone down and I dont want this to be lost to the community :)

I did not make this tool or this tut, this was made by [PC]BF2C|Token :)


I've created a simple tool to make texturing your maps easier. It will make both the color map and detail map, based on height and gradient.


It does not make highly realistic textures like terragen and world machine, but it is useful to create a base texture if you want to paint the terrain by hand. It also includes a tool that will split a whole color/detail map into the correct format for the editor (tx00x00.dds...), which will be useful if you use an external program, eg Terragen.

Download BF2_TPaint_v0.33:

Link 1: http://realitymodfiles.com/rhino/editor/bf2_tpaint_v0.33.rar

Link 2: Domein gereserveerd door VIP Internet

Link 3: bf2_tpaint.rar Download File on FileFront

WinRAR Beta 3.60 beta 7 save and install, then when unzipping bf2_tpaint put it in the Battlefield 2\bf2_tpaint folder. Yes you will have to make the directory.


1. BACKUP your level first, I won't accept any blame if you screw up your map that you have been working on for 20 hours :).

2. Extract the rar to your level folder so that the files sit in the subfolder ..\MY_LEVEL\bf2_tpaint\

3. Run "BF2_TPaint.exe"

4. You have some new (as of v0.3) options now:


For best results you should select "Mirror colour texture" unless your colours textures are seamless. Deselect "Paint surrounding terrain" if you want to just paint the primary terrain and save time. Click "Go" to make it go.

5. Delete the folders MY_LEVEL\editor\detailmaps, MY_LEVEL\editor\colormaps and MY_LEVEL\editor\lowdetailmaps. Remember you should have made backups.

6. Copy the folders "colormaps", "detailmaps" and "lowdetailmaps" (if you painted the surrounding terrains) to ...\MY_LEVEL\editor

7. Open the editor

8. Assign detail textures and materials, so that Layer 1 is your steep texture (eg. Rock), Layer 2 is your high texture(eg. Grass) and Layer 3 is your low texture(eg. sand):


9. Assign LowDetailTypes and generate the Low Detailmap.

10. Save your level with the following options:


How To Change Colours:

BF2_TPaint uses 3 textures to paint the high areas, the low areas and the steep areas, named "high.tga", "low.tga" and "steep.tga" respectively. You can change these textures to suit your map, but they must be 512x512 24-bit BGR TGA images. The images need to be placed in the "data" subfolder.

How To Change Blending Coefficients:

BF2_TPaint uses 2 gradients to determine how the 3 colour textures are blended together, called "grad_angle.tga" and "grad_height.tga", found in the data subfolder. They are 512x10 8-bit Mono TGA images that can be easily created in an image editing program, such as Photoshop.


Open this image and you will see the gradient that determines the height and smoothness of the blend between the low.tga and high.tga.


The maximum height of your terrain can be found on the tweaker bar:



The texture created by blending low.tga and high.tga is then blended with steep.tga depending on the normal angle of the terrain and this gradient.


Command Line Parameters

As of version .33 BF2_TPaint can take command line parameters. If the program is executed with the following parameters then the dialog box will not appear and BF2_TPaint will process the textures maps straight away.

bf2_tpaint -mirror 1 -surround 1 -deltemps 1

Where 1==true and 0==false, be carefull of the case-sensitivity.

Token 2005


A simple command line tool, used by BF2_TPaint that will take a full size color / detail texture and split it up in to the smaller textures used by the bf2 editor.

You could also use it to split up textures generated with programs such as Terragen or World Machine. It's syntax is:

bf2_tsplit [detailmap] [colormap]

or you can give "null" as the filename to either argument if you want to just split a colormap, or just split a detailmap. Just make sure that the original images that you are splitting are the right size for your height map.

Token 2005

Link to comment
Share on other sites

  • 4 weeks later...

Try raising and lowering a tiny part of your terrain, resave, and run tpaint again.

Link to comment
Share on other sites

always read the instructions ^_^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...