A Game of Thrones • A Song of Ice and Fire NWN2 Persistent World • Low Magic Role Play

YATT: Texturemaps

Resources - Technical Documentation
Tuesday, 02 December 2008 00:11

A quick way to apply textures to areas you're building is to use the texture mapping feature of YATT, which allows you to assign textures using specific texture maps. We've provided a collection of ready made (tri-layer) texture maps for illustration purposes that you can download for your own use. You'll see three sets of maps organized by map size (16x16, 24x24, and 32x32): one set for the bottom layer, another set for the middle layer, and a third set for the top layer.

In this example, we'll use texture maps to apply textures to a 16x16 area. Launch YATT off the Plugins toolbar menu (make sure you have YATT installed in your toolset/plugins directory and enabled 3rd party plugins in the toolset options). First define your height and color maps in the Settings Browser, then define your texture maps:


Press the "Add" button in the Texturemap Collection Editor and import the file bottomlayer_16x16.bmp. Assign a texture to it and leave the Map Generation Rules section blank. Select the appropriate scale only if your texture map isn't already sized for a 16x16 map.

Press "Add" again and import middlelayer_16x16.bmp. Assign another texture. At this stage it doesn't matter what it is as long as it is different than the first layer. Repeat the same process for the toplayer.

You should now have something similar to the image below; Bottom layer on row 0, middle layer on row 1, and top layer on row 2.


Press OK and on the Settings Browser and set the Texture Overflow Action to "Merge" to mix all the textures together (layered). Once you are ready, build the area. What you will get is three layers of textures in the new area that are mixed in according to the levels of "noise" in the texture maps. Below is a sample output:


Now, the fun thing about this is that if you choose the "paint terrain" tool and move it over the main toolset window, the three textures appear at the bottom of the Terrain/Texturing window. Click on any of the textures to highlight it and then press the swapper button. You can now globally change that texture for another one.

There are two things to watch out for:

1) make sure you do not have the "select terrain" tool highlighted or you will just get the texture replaced in one 4x4 meta-tile.
2) don't use the same texture twice or one of your layers will be deleted and you will have to start all over again.

In the texture maps provided, the bottom layer has the least effect and is quite patchy, but the other layers are more prominent. The middle layer is generally intended for the main textures (like grass) and the top layer for complementary textures (like dirt). The bottom layer is intended as a base coat to expose small areas of rock/mud/etc.

Last Updated on Friday, 08 January 2010 13:25