A few notes to clarify things a bit.
It wasn't clear in step four since there are a lot of mask choices, but you want to add a black (full transparency) mask just like in step 2.
Once you have your files working the way you want, save them as .dds files, this will reduce file size to roughly 1/4 of the tgs file size. DDS is also the format of the stock game exterior textures, so it's possible there is some optimization hardcoded we don't know about. Paint.net works fine for converting to dds using the stock settings of conversion when you select save as.
Textures that are not square work fine.
MODDER'S NWN2 CUSTOM TEXTURE GUIDE
|Resources - Manuals and Guides|
|Thursday, 07 April 2011 15:28|
Tags:nwn2 custom terrain textures-nwn2 texture guide-neverwinter nights 2 toolset-neverwinter nights 2 modding
This tutorial describes one method of creating terrain textures for NWN2. It may not be the best or most complete way, but it works quite nicely. This method also removes the glossy shine from textures for a more realistic appearance. You will need to download the NormalMap plug-in for GIMP and install it in order to use this tutorial.
For each texture, there needs to be three .TGA files:
Select a .BMP image scaled to 64x64 pixels in size. Make a copy of the texture you're working with, then resize the image in GIMP to 64x64 pixels. In GIMP, go to "Image" then go to "Scale Image". To resize the image, click the small button behind the number field (looks sort of like a broken chain link). Type in the new size, then hit "ok". Put the 64x64 .BMP image into your Program Files/Neverwinter Nights 2/NWN2Toolset/Terrain folder.
Make another copy of the original image. Scale this texture image to a multiple of 8; 512x512 is the standard texture size in NWN2, but you can use 1024x1024 if you require a crisper texture.
A larger texture will consumer more memory, and in the case of 1024x1024, it will use the space of FOUR 512x512 textures, so choose wisely.
Click on "Layer", then "Mask". Select "Add Layer Mask...". Now, click on "Black (full transparency). Click the "Add" button. Next, go to "Layer", then "Mask", and click "Apply Layer Mask". Now, save the image as .TGA (example: TT_MyTexture).
Open the image file that has the layer mask that we were just working with. Save it as, for example, TT_MyTexture_c. This file must have the "_c" at the end of it to work properly.
Open the image that you first scaled to multiples of 8 (the picture with the actual terrain image). Next, go to "Filters" tab, go down to "Map", then "Normalmap...". Where it says "Filter" in the Normalmap box, choose your filter type (ie 5x5), then hit "Ok". Now, click "Layer", then "Mask", then "Add Layer Mask". Now click "Layer", "Mask", then "Apply Layer Mask". Save this file as, for example, TT_MyTexture_n. This file must have the "_n" at the end of it to work properly.
Edit terrainmaterials.2da. Find a blank row at the end of the .2da file and input the basic name of your texture. Example: TT_MyTexture. Set each to a value of 255, then select for the last entry, the terrain type that most resembles the new texture. If you have a grassy texture, type in "Grass".
Put the terrainmaterials.2da and the three .TGA files into your My Documents/Neverwinter Nights 2/Override folder or your Campaign folder. Fire up the toolset, then start painting the textures down.
The textures should be as close to square as possible. If they are not, dark lines will appear around the texture when painted down. And if you prefer to have shiny textures, just don't add the masks described in the tutorial.