Wednesday, February 24, 2016

NWN2 Creature Reskinning Tutorial

This tutorial assumes you have mdbcloner (http://neverwintervault.net/project/nwn2/other/tool/mdb-cloner).


Step 1: find the original game models you want to work with, you can look that up in the appearance.2da. Copy this model somewhere safe to work with. Some creatures have head models that are separate parts from the body, so there may be two files to copy. Some placeable models have numerous individual parts and would have to be reskinned in a modelling program such as gmax, as each part must have it's texture changed.

step 2: open the model in mdbcloner. This will let you see what textures are used for the creature. Find those in your install and make a copy somewhere safe. You're going to be editing the copy for the reskinning.


If it's a head model, the MDBCloner model interface has a few more options, but they should be self explanatory based on what you'll read below.

MDB Name: This is the name of the model. To make a copy of your model, change the name and click the Save Clone button. Note that the _CL_ in the model name tells the game that this is a cloth model option under the creature properties in the Armor Set Tab. The number at the end of the model name tells the game just which model variation this will be. The game uses an n-1 system for this, so model 01 shows up as model variation 00 in the Armor Set tab. A few creatures like the player races have different "main types" available such as plate armor, trolls are one example of a non-player that has multiple types. If you look at these models, you will see identifiers such as _PL_ (for plate armor). Here's a picture of the troll properties to show what I'm referring to.



Back to the MDBCloner fields:

Diffuse: This is the basic texture. You will need an image editing program to make whatever changes you want to the texture. How the texture wraps around the creature varies by model, and is beyond this tutorial. You may want to experiment by drawing a bright colored lines on your texture and seeing how they show up ingame. Note that if you make a portion of the image clear, you can functionally erase that part of the creature. The creature will still have legs for instance, but they won't be visible ingame because the texture for that part is a clear texture.

For the next three  textures, think of them as overlapping the Diffuse texture. For example the claws of your creature are represented in the same portion of the texture on all of the textures (bottom right corner for instance).
Tint: The tintmap of the object, this image file gets interpreted to apply tinting to the creature. If you want part of the creature to be tinted by the first channel property, color that part of the tintmap red. Blue and green are the other two channels.  You are not limited to pure red/blue/green, If the tint is purple the tint to be applied is a combination of red and blue channels. One way to make an intricate tintmap is to make a copy of the base texture, and adjust the hue/saturation in your image editing program until it is very strongly colored. The tintmap must end with the _t suffix.
Glow: If you want your creature to glow in the dark, you'll need one of these. Must end with the _i suffix. This texture is not necessary and not used for most creatures.
Normal: This texture controls the "bumpiness" of the texture, it's a visual trick to make you think there is depth where there isn't any. It must end with the _n suffix. Most programs will let you make a normal map from your diffuse map. To make one in GIMP, open your diffuse map and select filters -> maps -> normal map. The "scale" controls just how bumpy you want things to be. The normal map can be that peculiar shade shown below, or mostly clear or just about anything else. Don't worry, the game knows what to do with it.



While it's technically not necessary, I advise making the texture names the same as the model name, plus the relevant suffixes. This makes things easier to figure out. If you're not making significant changes, you may opt to just use the original normal map for any reskin, to save file space. Not my preference though.

Below I've picked my new model name and textures to use. I hit the "Save Clone" button and MDBCLoner will save my new model to the location specified in the Output folder. It does not prompt to save, or warn about potentially overwriting a file, it just does it.


Ok, we've made our clone, now to put it ingame.

Copy the model made by mdbcloner, and any textures you used, to your campaign/module/hak and load the campaign/module up in the toolset. Select your base creature you reskinned (a troll for example), and go to the properties for the creature, then the Armor Set tab (it's the last tab for me, I have to scroll to it). Your reskin should now be available under the variations dropdown. If it is (and it should be), you can now place your reskinned whatever ingame, no 2da editing required :-)


If you also have a reskinned head model for the creature that you want to use, you need to select it under the Appearance(head) property on the main properties tag.

If a texture is not available to the game, it will display the creature but with a bright texture that indicates it couldn't find the assigned texture.

One good thing is you can make texture changes quickly, just drop your new version of the changed texture file into your campaign/module, the new version will be used as soon as you change the "main variation" away and back to your chosen one.



No comments:

Post a Comment