Difference between revisions of "Reskinning Rudiments"

28 bytes added ,  07:32, 24 June 2012
Byline removed
imported>Darknel
imported>QQuix
(Byline removed)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[Category:Texturing_Tutorials]]
[[Category:Tutorials]]
[[Category:Tutorials]]
{{Tools|req0=[[NifSkope]]}}
== Reskinning Rudiments 1 ==
== Reskinning Rudiments 1 ==
Created by [[User:Darknel|Darknel]]
 


-------
-------
This tutorial is now substantially out of date in light of newer versions of TR. I leave it remains here only on the basis that it may contain some info omitted elsewhere which some readers may find helpful.
This tutorial is now substantially out of date in light of newer versions of TR. It remains here only on the basis that it ''may'' contain some info omitted elsewhere which some readers may find helpful.
I would urge you instead to use: [[Retexturing Made Easy]]
I would urge you instead to use: [[Retexturing Made Easy]]


Line 13: Line 18:
- All errors contained herein are my own. If you encounter any problems please PM me over at the forums.
- All errors contained herein are my own. If you encounter any problems please PM me over at the forums.


This tutorial gives an alternative approach to reskinning objects in Oblivion from that provided in [[Retex Guide]]. Whilst I do not seek to criticise that tutorial in any sense I would warn nooBs somewhat against using Nifskope for simple retexturing. Whilst it has an obvious appeal to the point'n'click generation Nifskope is actually an extremely powerful tool capable (and indeed primarily designed) for altering the Nif file data itself.  
This tutorial gives an alternative approach to reskinning objects in Oblivion from that provided in [[Retex Guide]]. Whilst I do not seek to criticise that tutorial in any sense I would warn nooBs somewhat against using NifSkope for simple retexturing. Whilst it has an obvious appeal to the point'n'click generation, NifSkope is actually an extremely powerful tool capable (and indeed primarily designed) for altering the NIF file data itself.  


At this stage I am dealing only with what I would call simple objects (i.e. those consisting of only one nif - not characters and most creatures which are comprised of multiple nifs called by an underlying skeleton.nif). More complicated objects will be dealt with in the forthcoming Reskinning Rudiments 2.
At this stage I am dealing only with what I would call simple objects (i.e. those consisting of only one NIF - not characters and most creatures which are comprised of multiple NIFs called by an underlying skeleton.nif). More complicated objects will be dealt with in the forthcoming Reskinning Rudiments 2.


First some '''vocabulary''':
First some '''vocabulary''':
Line 25: Line 30:


''DDS = Direct Draw Surface''
''DDS = Direct Draw Surface''
On top of the Nif you have the textures. These are stored in DDS format. There are  
On top of the NIF you have the textures. These are stored in DDS format. There are  
different levels of DDS (DXT1-5), but for present purposes don't worry about that -  
different levels of DDS (DXT1-5), but for present purposes don't worry about that -  
for reasons I'm going to come onto.
for reasons I'm going to come onto.


Each Nif has a standard DDS (the "colour map") and also an _n.dds. The latter stands for normal and refers to "normal mapping" see below. The n_dds also has an alpha channel which controls the way light interacts with the suface.
Each NIF has a standard DDS (the "colour map") and also an _n.dds. The latter stands for normal and refers to "normal mapping" see below. The n_dds also has an alpha channel which controls the way light interacts with the suface.


  Some Nifs also have a _g.dds which is a "gloss map" (these are  
  Some NIFs also have a _g.dds which is a "gloss map" (these are  
  outside the scope of the current tutorial, but I will eventually get around  
  outside the scope of the current tutorial, but I will eventually get around  
  to an advanced texturing tutorial to cover it).
  to an advanced texturing tutorial to cover it).


''Normal Map''
''Normal Map''
This governs the suface property of the Nif; all the lumps, bumps, scratches and scars.
This governs the suface property of the NIF; all the lumps, bumps, scratches and scars.


You can use the same "_n.dds" file for several textures by using an underscore ("_") and choosing the texture-names in such a way, that the text before the "_" is the same as in the "_n" file. The textures "texture.dds" "texture_1.dds" and "texture_2.dds" for example, will all use "texture_n.dds" as normal map.
You can use the same "_n.dds" file for several textures by using an underscore ("_") and choosing the texture-names in such a way, that the text before the "_" is the same as in the "_n" file. The textures "texture.dds" "texture_1.dds" and "texture_2.dds" for example, will all use "texture_n.dds" as normal map.
Line 49: Line 54:
'''Step 1:'''
'''Step 1:'''


First of all you will need to gain access to the nifs and dds files. To do this you need to use either [[BSA Commander]] or Ghostwheel's commandline BSA unpacker tool. Links to the latter and an excellent guide to it's use can be found here - [[BSA Unpacker Tutorial]]. I would however differ from the author on his final point. Take the BSA folder which contains all your unpacked meshes and textures and store it somewhere other than your Oblivion\Data folder - this helps to avoid later unfortunate confusion.
First of all you will need to gain access to the NIF and DDS files. To do this you need to use either [[BSA Commander]] or Ghostwheel's commandline BSA unpacker tool. Links to the latter and an excellent guide to it's use can be found here - [[BSA Unpacker Tutorial]]. I would however differ from the author on his final point. Take the BSA folder which contains all your unpacked meshes and textures and store it somewhere other than your Oblivion\Data folder - this helps to avoid later unfortunate confusion.


'''Step 2:'''
'''Step 2:'''
Line 60: Line 65:
'''Step 3:'''
'''Step 3:'''


The next stage is to make the Nif file reference your texture as opposed to its default. The easiest way to do this is with JOG's tool: Texture Replacer (TR), available from here - [[NIF Retexturing]]
The next stage is to make the NIF file reference your texture as opposed to its default. The easiest way to do this is with JOG's tool: Texture Replacer (TR), available from [[TR Retexturing Tool|here]].


Like BSA in step 1 TR is a command line tool.The above link will link you to a guide on how to use it. TR can do many things but for now all you need do with it is this:
Like BSA in step 1 TR is a command line tool.The above link will link you to a guide on how to use it. TR can do many things but for now all you need do with it is this:
Line 74: Line 79:
'''Step 4'''
'''Step 4'''


At this point your nif is essentially reskinned. However, there are no instances of it in the game yet. Open the CS. Select the original item (eg. items > armour > thief > cuirass). In the edit window click the nif button and navigate to your reskinned nif in the Oblivion\Data\meshes folder. - if your doing an object which refers to it (such as armour) repeat this for the _gnd. nif. But note that you don't have to reskin the _gnd.nif with TR!
At this point your NIF is essentially reskinned. However, there are no instances of it in the game yet. Open the CS. Select the original item (eg. items > armour > thief > cuirass). In the edit window click the NIF button and navigate to your reskinned NIF in the Oblivion\Data\meshes folder. - if your doing an object which refers to it (such as armour) repeat this for the _gnd.nif. But note that you don't have to reskin the _gnd.nif with TR!


Rename your object. When you close the window it will ask if you want to create a new form ID, say yes. Now in the items > armour menu find your new object and drag and drop it into a cell. Make it one near to where you will start the game so you can see it asap.
Rename your object. When you close the window it will ask if you want to create a new form ID, say yes. Now in the Items > Armor menu find your new object and drag and drop it into a cell. Make it one near to where you will start the game so you can see it ASAP.


'''Step 5'''
'''Step 5'''


Now, you have a model in game the texture of which will be set to whatever is in your Oblivion\Data\textures folder with the same file name as you set in TR. Now you actually need to edit the texture. How you do this will depend on the software you have access to. If you only have something very simple use DDS Converter 2 (available  here - [http://eliteforce2.filefront.com/file/DDS_Converter;29412]) and switch from DDS into jpeg. If you have Photoshop or Paintshop you can use the NVidia plugin to open the DDS file directly (plugin available here - [http://developer.nvidia.com/object/nv_texture_tools.html]).
Now, you have a model in game the texture of which will be set to whatever is in your Oblivion\Data\textures folder with the same file name as you set in TR. Now you actually need to edit the texture. How you do this will depend on the software you have access to. If you only have something very simple use DDS Converter 2 (available  here - [http://eliteforce2.filefront.com/file/DDS_Converter;29412]) and switch from DDS into JPEG. If you have Photoshop or Paintshop you can use the NVidia plugin to open the DDS file directly (plugin available here - [http://developer.nvidia.com/object/nv_texture_tools.html]).
There is also one for GIMP - [http://nifelheim.dyndns.org/~cocidius/dds/ here]
There is also one for GIMP - [http://nifelheim.dyndns.org/~cocidius/dds/ here]


Knowing how to repaint the texture really is just a question of trial and error. Again I'll hopefully get a chance to put up another tutorial describing techniques. You may find it helpful to use NifSkope at this stage, this will put up a 3d model of your mesh the texture of which will change every time you save the changes in your drawing application (although only if you're working directly on the dds file). NifSkope is freely available here - [http://sourceforge.net/project/showfiles.php?group_id=149157&package_id=170735].
Knowing how to repaint the texture really is just a question of trial and error. Again I'll hopefully get a chance to put up another tutorial describing techniques. You may find it helpful to use NifSkope at this stage, this will put up a 3D model of your mesh the texture of which will change every time you save the changes in your drawing application (although only if you're working directly on the DDS file). NifSkope is freely available here - [http://sourceforge.net/project/showfiles.php?group_id=149157&package_id=170735].


How you save the changes to your texture will again depend on which way you opened it. If you're using the NVidia plugins they can save out directly in DDS. Make sure to have generate mipmaps ticked and use DXT5 (interpolated alpha) format or DXT3. Usually DXT3 will suffice, but for more intricate normal maps DXT5 may be preferable. If you're using jpeg or psd save in that format and use DDS Converter to switch back to DDS, replacing the original file.
How you save the changes to your texture will again depend on which way you opened it. If you're using the NVIDIA plugins they can save out directly in DDS. Make sure to have generate mipmaps ticked and use DXT5 (interpolated alpha) format or DXT3. Usually DXT3 will suffice, but for more intricate normal maps DXT5 may be preferable. If you're using JPEG or PSD, save in that format and use DDS Converter to switch back to DDS, replacing the original file.


More will follow on normal maps, speculars, particles, etc.
More will follow on normal maps, speculars, particles, etc.
Line 91: Line 96:


==See Also==  
==See Also==  
[[Retexturing Made Easy]]
*[[Retexturing Made Easy]]
 
*[[Normal Maps Basics]]
[[Normal Maps Basics]]
*[[NifSkope Alchemy]]
 
*[[Retex_Troubleshooting|Retex Troubleshooting]]
[[NifSkope Alchemy]]
*[[Command Prompt Basics]]
 
[[Retex_Troubleshooting|Retex Troubleshooting]]
 
[[Command Prompt Basics]]
Anonymous user