Difference between revisions of "From 3dsmax to Oblivion CS"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Nercury
m
imported>ShadowDancer
m (→‎Getting it to Oblivion: typos/formatting)
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
After collecting information pieces from different sources for a month, I decided that it is time for tutorial, so others would not waste so much time like I did :). I will try to cover everything you need to get working model from 3dsmax9 to Construction Set (CS). That includes, basic knowledge how to set up model with collision in max (I assume you can model), how to use existing Oblivion textures, how to import existing models so you can examine how they are made and use them for comparison, how to export, fix 3dsmax9 collision in NifScope, get transparency to work, and finally import to CS.
This tutorial aim to be very practical guide to get static models from 3dsmax 7-9 to Oblivion Construction Set (CS). It is assumed that reader is new to NIF file format, NifSkope, and Oblivion CS. However, this tutorial does not cover 3dsmax modeling techniques, just steps needed to export the model.


Different sections of this tutorial may be useful not only for max users.
Some later sections of this tutorial may be useful not only for 3dsmax users.


==Before you begin==
==Before you begin==


1. You will need NifScope and NifTools plugin (for your max version).
1. You will need NifSkope and NifTools plugin (for your 3dsmax version).


NifScope. When you install it, go to Render->Settings and click "Oblivion" button. That will make it autodetect Oblivion data folder, so you will see textures on your models. Also, you can adjust background color here.
NifSkope. When you install it, go to Render->Settings and click "Oblivion" button. That will make it autodetect Oblivion data folder, so you will see textures on your models. Also, you can adjust background color here.


NifTools plugin. Run 3dsmax at least once before installing it. Then, extract NifPlugins.dlu to Max/plugins and MaxNifTools.ini to Max/plugcfg folders. If you are using 3dsmax9 and Nif plugin 0.2.10, copy MaxNifTools.ini to "<drive>:\Documents and Settings\<user>\Local Settings\Application Data\Autodesk\3dsmax\9 - 32bit\enu\plugcfg".
NifTools plugin. Run 3dsmax at least once before installing it. Then, extract NifPlugins.dlu to Max/plugins and MaxNifTools.ini to Max/plugcfg folders. If you are using 3dsmax9, copy MaxNifTools.ini to "<drive>:\Documents and Settings\<user>\Local Settings\Application Data\Autodesk\3dsmax\9 - 32bit\enu\plugcfg".


2. Download Oblivion Mod Manager (http://timeslip.chorrol.com/obmm_download.html). Install it. Create new folder, something like "OblivionUnpacked". Go to Oblivion/data folder, and extract "Oblivion - *.bsa" files to "OblivionUnpacked". You do that by opening bsa file and clicking "extract all" button. You may skip "Voice" files, because for everything you would need 5,43GB disk space. Now when you are done (that will take a while), you can add "OblivionUnpacked" path to your NifScope paths list (Render->Settings->Add Folder...).
2. Download [http://timeslip.chorrol.com/obmm_download.html Oblivion Mod Manager]. Install it. Create new folder, something like "OblivionUnpacked". Go to Oblivion/data folder, and extract "Oblivion - *.bsa" files to "OblivionUnpacked". You do that by opening bsa file and clicking "extract all" button. You may skip "Voice" files, because for everything you would need 5,43GB disk space. Now when you are done (that will take a while), you can add "OblivionUnpacked" path to your NifScope paths list (Render->Settings->Add Folder...).


==Making your model==
==Making your model==


First time I was making a model, I had a question: what size does it need to be? Well, it's easy to find out! First of all, in max, click menu Customize->Configure User Paths..., and in "External files" tab add "OblivionUnpacked" folder. Then, click file->import, select "nif" file type, and browse "OblivionUnpacked\Meshes" for some mesh for comparison. I usually choose some house, for example, "Meshes\Architecture\Anvil\anvilhousemc02.nif". Import. If you did everything right, you should see that model in 3dsmax, completely textured!
When making a model for the first time for a game, you need to know what scale that game uses, so you get the size right. The best way would be to import some Oblivion model for side-by-side comparison.  


Now you can see how Oblivion model looks like and how to make it. Every mesh in it has only one texture assigned, and there usually is only one mesh with same texture.
First of all, in 3dsmax, click menu Customize->Configure User Paths..., and in "External files" tab add folder, where you unpacked oblivion data files. Then, click file->import, select "nif" file type, and browse "OblivionUnpacked\Meshes" for some mesh. You can choose some house, for example, "Meshes\Architecture\Anvil\anvilhousemc02.nif". If you did everything right, you should see that model in 3dsmax, completely textured!
 
You can also use such imported models to find out how they are made. For example, every mesh in them has only one texture assigned, and there is usually only one mesh with same texture.


Select all (Ctrl+A), and group it, so you can easily delete it later.
Select all (Ctrl+A), and group it, so you can easily delete it later.


Now, make a model. There are lots of modeling tutorials everywhere, so I won't cover that part. Use any technique you like. However, you will need "editable mesh" at the end, so optimize your model as needed for minimum polygon count, but good detail. Practice does wonders here ;). For this tutorial, I have made this simple hut:
Now, make a model. There are lots of modeling tutorials everywhere, so that part will not be covered here. Use any technique you like. However, you will need "editable mesh" at the end, so optimize your model as needed for minimum polygon count, but good detail. Practice does wonders here ;). For this tutorial, I have made this simple hut:


[[Image:Max9ToCSSmallHutPreview01.jpg]]
[[Image:Max9ToCSSmallHutPreview01.jpg]]
Line 33: Line 35:
[[Image:Max9ToCSMaterials.jpg]]
[[Image:Max9ToCSMaterials.jpg]]


==Exporting part 1==
==Exporting==


So, model is textured, everything is ready for export, right? No. This is good point to make backup, in case you will want to fix some mapping coordinates or use this mesh as base for new one. So, save a copy.
===Preparing meshes===


Now delete any unnecessary models and objects from scene.
So, now that the model is textured, everything is ready for export, right? No. This is good point to make a backup, in case you want to fix some mapping coordinates or use this mesh as a base for new one, so save a copy.


Now we will do following for every mesh:
Now delete any unnecessary models and objects from the scene.


1. If your mesh is not editable mesh, you can either asign "editable mesh" modifier, or select one of your meshes, go to utilities meniu, select Collapse->Collapse Selected.
Now we will do the following for every mesh:
 
1. If your mesh is not an editable mesh, you can either assign an "editable mesh" modifier, or select one of your meshes, go to the utilities menu, select Collapse->Collapse Selected.


[[Image:Max9ToCSCollapse.jpg]]
[[Image:Max9ToCSCollapse.jpg]]


This is to make your mesh "editable mesh". You also can use collapse to group different meshes with same texture into one, so there will be smaller node tree in NifScope later. I already did that for my model's walls.
This is to make your mesh an "editable mesh". You also can use collapse to group different meshes with same texture into one, so there will be smaller node tree in NifSkope later. I already did that for my model's walls.


2. Assign Reset XForm modifier. You can also find it in Utilities panel.
2. Assign Reset XForm modifier. You can also find it in the Utilities panel.


[[Image:Max9ToCSResetXForm.jpg]]
[[Image:Max9ToCSResetXForm.jpg]]


Always do this after any modifications to mesh. It resets pending transformations you have done to mesh. So you would not wonder looking to your model in NifScope later "why my roof is upside down".
Always do this after any modifications to mesh. It resets pending transformations you have done to mesh. So you would not wonder looking to your model in NifSkope later "why my roof is upside down".


3. Collapse again. Now we have clean editable mesh.
3. Collapse again. Now we have a clean editable mesh.


Repeat for every mesh.
Repeat for every mesh.


When you are done, and you don't need collision, you can select all you meshes and go directly to "Finally, exporting" part of this tutorial.
When you are done, and if you don't need collision, you can select all of your meshes and go directly to "Finally, exporting" part of this tutorial.


Otherwise, read on, brave one :)
Otherwise, read on, brave one :)


==Exporting part 2==
===Preparing collision===


For collision, make  a mesh as simple as possible around your model. I am going to use 4 cubes for that and rotate them as needed. Here is my result:
For collision, make  a mesh as simple as possible around your model. I am going to use 4 cubes for that and rotate them as needed. Here is my result:
Line 71: Line 75:
[[Image:Max9ToCSConfigureButtonSets.jpg]]
[[Image:Max9ToCSConfigureButtonSets.jpg]]


1. Now, collapse your collision mesh together. Nif exporter can export only one collision mesh for model.
1. Now, collapse your collision mesh together. If you have the new NifSkope plugin version, you may use more than one collision mesh, and make them surround different materials (so you can hear the stone sound when walking on stone, or the dirt sound on dirt).


2. Reset XForm.
2. Click Reset XForm.


3. Next, click "UVWRemove", select checkbox "Set Gray", then first click "UVW" button, then "Materials".
3. Next, click "UVWRemove", select the "Set Gray" checkbox, then click the "UVW" button first, and then "Materials".


[[Image:Max9ToCSUVWRemove.jpg]]
[[Image:Max9ToCSUVWRemove.jpg]]


4. And Collapse again.
4. And then Collapse again.


5. With collision mesh still selected, click "NifProps". Select "Is Collision Mesh", and adjust other properties as needed.
5. With the collision mesh still selected, click "NifProps". Select "Is Collision Mesh", and adjust the other properties as needed.


[[Image:Max9ToCSNifProps.jpg]]
[[Image:Max9ToCSNifProps.jpg]]


We are going to use "Export" and not "Export Selected" when exporting with collision, so make your scene clean from anything unnecessary.
We are going to use "Export" and not "Export Selected" when exporting with collision, so make sure your scene is clean from anything unnecessary.


[[Image:Max9ToCSClean.jpg]]
[[Image:Max9ToCSClean.jpg]]


==Finally, exporting==
===Finally, exporting===


File->Export. Save as type: NIF:
File->Export. Save as type: NIF:
Line 95: Line 99:
[[Image:Max9ToCSExport.jpg]]
[[Image:Max9ToCSExport.jpg]]


Notice that i selected "textures\architecture\farmhouse" path, because i know that two of my textures are from that folder.
Notice that I selected the "textures\architecture\farmhouse" path, because I know that two of my textures are from that folder.


==Fixing collision in NifScope (skip this if you exported without it)==
==Fixing the model in NifSkope==
===Fixing collision===
 
''New versions of the NifSkope plugin seem to export correct collision, so you can skip this section. However, I leave this text here in case there are still some problems.''


Open your model with NifScope. If you see your collision in red wireframe where it should be, you did everything right.
Open your model with NifScope. If you see your collision in red wireframe where it should be, you did everything right.


Now, we will need to modify some nodes to make collision work (and not crash CS).
Now, we will need to modify some nodes to make the collision work (and not crash CS).


Right click root node -> Node -> Attach Extra Data -> NiStringExtraData:
Right click the root node -> Node -> Attach Extra Data -> NiStringExtraData:


[[Image:Max9ToCSAttachExtraData.jpg]]
[[Image:Max9ToCSAttachExtraData.jpg]]


Select it, change name to UPB.
Select it, change the name to UPB.
Open another NifScope, and open some other oblivion model, like door. For example, Architecture\Anvil\anvildoormc01.nif. Find NiStringExtraData node in it, copy contents from StringData parameter, and paste it to your model. It seems that no matter what contains in that parameter, it is fine if model has collision:
Open another NifSkope, and open some other oblivion model, like a door. For example, Architecture\Anvil\anvildoormc01.nif. Find the NiStringExtraData node in it, copy contents from the StringData parameter, and paste it into your model. It seems that no matter what it contains in that parameter, it works if that model has collision:


[[Image:Max9ToCSCopyStringData.jpg]]
[[Image:Max9ToCSCopyStringData.jpg]]


Now, adjust the node order to be like this (root node = 0, BSXFlags = 1, NiStringExtraData = 2):
Now, adjust the node order to be like this: root node = 0, BSXFlags = 1, NiStringExtraData = 2


(I usually select "NiStringExtraData", use Ctrl+Up until it moves just after root node, then select root node and click Ctrl+Up few times until it becomes 0)
(I usually select "NiStringExtraData", and use Ctrl+Up until it moves to just after the root node, then select the root node and click Ctrl+Up few times until it becomes 0)


[[Image:Max9ToCSOrder.jpg]]
[[Image:Max9ToCSOrder.jpg]]


Now expand bhkCollisionObject, and browse until you find bhkNiTriStripsShape. Select it, find NumDataLayers property and change it to 1.
Now expand the bhkCollisionObject, and browse until you find bhkNiTriStripsShape. Select it, find the NumDataLayers property and change it to 1.


[[Image:Max9ToCSbhkTriStripsShape.jpg]]
[[Image:Max9ToCSbhkTriStripsShape.jpg]]
Line 126: Line 133:
[[Image:Max9ToCSDataLayersUpdate.jpg]]
[[Image:Max9ToCSDataLayersUpdate.jpg]]


Expand array and find it's first property. Change it to "Static":
Expand the array and find it's first property. Change it to "Static":


[[Image:Max9ToCSChangeToStatic.jpg]]
[[Image:Max9ToCSChangeToStatic.jpg]]


Thats all. Now it should not crash and collision should work. Some credit goes to Razorwind and his 3dsmax9 (http://www.silgrad.com/wbb2/thread.php?threadid=6977) collision tutorial. You can check it out too, if you find any of my explanations not clear enough.
Thats all. Now it should not cause a crash and the collision should work. Some credit goes to Razorwind and his [http://www.silgrad.com/wbb2/thread.php?threadid=6977 3dsmax9 collision tutorial]. You can check it out also, if you find any of my explanations are not clear enough.


==Fixing Texture Paths==
===Fixing Texture Paths===


Browse for every NiTexturingProperty and check if paths in NiSourceTexture are correct, and if not, change them.
Browse for every NiTexturingProperty and check that the paths in NiSourceTexture are correct, and if not, change them.


==Adding transparency==
===Adding transparency===


[[Image:Max9ToCSAddingTransparency.jpg]]
[[Image:Max9ToCSAddingTransparency.jpg]]


Right click your mesh part which should be transparent, then Node -> AttachProperty -> NiAlphaProperty. Also, Node -> AttachProperty -> VertexColorProperty. Select NiVertexColorProperty, and change these settings:
Right click your mesh part which should be transparent, then Node -> AttachProperty -> NiAlphaProperty.


Flags: 40
====Additional info about transparency====
Right click NiAlphaProperty->Flags. There are basically three ways in which transparency could be done. It depends on the mesh as to which way is better.


VertexMode: VERT_MODE_SRC_AMB_DIF
=====Alpha blending without testing=====
When transparent mesh parts in your model usually are not behind one another, this mode is best, because it produces smooth and nice edges. However, if you have some heavily transparent object (like a plant), you may see sky through some of leaves instead of other leaves. That happens because it seems that this version of the engine does not sort triangles before drawing them.


LightingMode: LIGHT_MODE_EMI_AMB_DIF
[[Image:Max9ToCSAlphaBlendingWithoutTesting.jpg]]


Finally, you can test your model.
=====Alpha blending with testing=====
To overcome this sorting problem, you can enable alpha testing. Setup it like shown below, and adjust the Threshold value until you find an optimal result. Threshold is the minimum required value for the alpha channel to be clipped. So you get some artifacts around edges, but generally the meshes are drawn correctly.


Now, some explanations about transparency.
[[Image:Max9ToCSAlphaBlendingWithTesting.jpg]]


Right click NiAlphaProperty->Flags. There are basically three ways in which transparency could be done. It depends on mesh which way is better.
=====Testing only=====
And then, if you don't like artifacts around edges, you can choose the same method in which oblivion trees are drawn: Testing Only


==Alpha blending without testing==
[[Image:Max9ToCSTestingOnly.jpg]]
When transparent mesh parts in your model do not usually are behind one another, this mode is best, because it produce smooth and nice edges. However, if you have some heavily transparent object (like plant), you may see sky through some of leaves instead of other leaves. That happens because it seems that this version of engine does not sort triangles before drawing them.


[[Image:Max9ToCSAlphaBlendingWithoutTesting.jpg]]
==Getting it to Oblivion==


==Alpha blending with testing==
Now, when everything is ready, save the nif file, and open CS.
To overcome sorting problem, you can enable alpha testing. Setup it like shown bellow, and adjust Threshold value until you find optimal result. Threshold means minimum required value for alpha channel to be clipped. So you get some artifacts around edges, but generally meshes are drawn correctly.


[[Image:Max9ToCSAlphaBlendingWithTesting.jpg]]
Open the "File" menu, and choose "Data".
Any group of modifications to a game is called a plugin and saved to an esp file. If you want just to test your mesh, you can create a temporary mod by selecting Oblivion.esm in this list and clicking OK. However, if you have an existing mod, you don't need any help from me :)


==Testing only==
In the Cell View select the "Tamriel" World Space, then ICWaterfront03 (you will recognize this location).
And then, if you don't like artifacts around edges, you can choose the same method oblivion trees are drawn. Only Testing:


[[Image:Max9ToCSTestingOnly.jpg]]
I assume your mesh already is in some Data\Meshes\Test folder (this is just an example). In the Object Window, expand "World Objects" -> Static, and then select it. Then right click on any object, choose "New", click "Add NIF File", and browse for your file. When you are done, you can also change the ID property in the editor. Click OK, and your mesh should appear under Static\Test. Then drag it to the render window. Move it with left mouse button, rotate with the right mouse button, move up/down with Z button pressed, rotate view with the shift button pressed. More information on this is in [[A_beginner%27s_guide%2C_lesson_1_-_The_Construction_Set_Primer|A beginner's guide - The Construction Set Primer]].


Now, when everything is ready, save our nif file, and load it in CS. I hope it does not crash for you. Good luck :)
Good luck!


[[Image:Max9ToCSsmallhut.jpg]]
[[Image:Max9ToCSsmallhut.jpg]]


[[Category:Tutorials]]
[[Category:Tutorials]]

Latest revision as of 00:32, 28 July 2008

This tutorial aim to be very practical guide to get static models from 3dsmax 7-9 to Oblivion Construction Set (CS). It is assumed that reader is new to NIF file format, NifSkope, and Oblivion CS. However, this tutorial does not cover 3dsmax modeling techniques, just steps needed to export the model.

Some later sections of this tutorial may be useful not only for 3dsmax users.

Before you begin[edit | edit source]

1. You will need NifSkope and NifTools plugin (for your 3dsmax version).

NifSkope. When you install it, go to Render->Settings and click "Oblivion" button. That will make it autodetect Oblivion data folder, so you will see textures on your models. Also, you can adjust background color here.

NifTools plugin. Run 3dsmax at least once before installing it. Then, extract NifPlugins.dlu to Max/plugins and MaxNifTools.ini to Max/plugcfg folders. If you are using 3dsmax9, copy MaxNifTools.ini to "<drive>:\Documents and Settings\<user>\Local Settings\Application Data\Autodesk\3dsmax\9 - 32bit\enu\plugcfg".

2. Download Oblivion Mod Manager. Install it. Create new folder, something like "OblivionUnpacked". Go to Oblivion/data folder, and extract "Oblivion - *.bsa" files to "OblivionUnpacked". You do that by opening bsa file and clicking "extract all" button. You may skip "Voice" files, because for everything you would need 5,43GB disk space. Now when you are done (that will take a while), you can add "OblivionUnpacked" path to your NifScope paths list (Render->Settings->Add Folder...).

Making your model[edit | edit source]

When making a model for the first time for a game, you need to know what scale that game uses, so you get the size right. The best way would be to import some Oblivion model for side-by-side comparison.

First of all, in 3dsmax, click menu Customize->Configure User Paths..., and in "External files" tab add folder, where you unpacked oblivion data files. Then, click file->import, select "nif" file type, and browse "OblivionUnpacked\Meshes" for some mesh. You can choose some house, for example, "Meshes\Architecture\Anvil\anvilhousemc02.nif". If you did everything right, you should see that model in 3dsmax, completely textured!

You can also use such imported models to find out how they are made. For example, every mesh in them has only one texture assigned, and there is usually only one mesh with same texture.

Select all (Ctrl+A), and group it, so you can easily delete it later.

Now, make a model. There are lots of modeling tutorials everywhere, so that part will not be covered here. Use any technique you like. However, you will need "editable mesh" at the end, so optimize your model as needed for minimum polygon count, but good detail. Practice does wonders here ;). For this tutorial, I have made this simple hut:

File:Max9ToCSSmallHutPreview01.jpg

And adjusted size to look good near other oblivion models. My model has 3 meshes: walls, roof, and roof edges:

File:Max9ToCSSmallHutPreviewDivided.jpg

Every mesh has Standard material assigned, and edge mesh, additionally, has opacity map (opacity map just for seeing it in max, it is optional when exporting):

File:Max9ToCSMaterials.jpg

Exporting[edit | edit source]

Preparing meshes[edit | edit source]

So, now that the model is textured, everything is ready for export, right? No. This is good point to make a backup, in case you want to fix some mapping coordinates or use this mesh as a base for new one, so save a copy.

Now delete any unnecessary models and objects from the scene.

Now we will do the following for every mesh:

1. If your mesh is not an editable mesh, you can either assign an "editable mesh" modifier, or select one of your meshes, go to the utilities menu, select Collapse->Collapse Selected.

File:Max9ToCSCollapse.jpg

This is to make your mesh an "editable mesh". You also can use collapse to group different meshes with same texture into one, so there will be smaller node tree in NifSkope later. I already did that for my model's walls.

2. Assign Reset XForm modifier. You can also find it in the Utilities panel.

File:Max9ToCSResetXForm.jpg

Always do this after any modifications to mesh. It resets pending transformations you have done to mesh. So you would not wonder looking to your model in NifSkope later "why my roof is upside down".

3. Collapse again. Now we have a clean editable mesh.

Repeat for every mesh.

When you are done, and if you don't need collision, you can select all of your meshes and go directly to "Finally, exporting" part of this tutorial.

Otherwise, read on, brave one :)

Preparing collision[edit | edit source]

For collision, make a mesh as simple as possible around your model. I am going to use 4 cubes for that and rotate them as needed. Here is my result:

File:Max9ToCSCollision.jpg

Now, if you have not done so, configure your Utilities panel to contain two additional things: NifProps and UVWRemove:

File:Max9ToCSConfigureButtonSets.jpg

1. Now, collapse your collision mesh together. If you have the new NifSkope plugin version, you may use more than one collision mesh, and make them surround different materials (so you can hear the stone sound when walking on stone, or the dirt sound on dirt).

2. Click Reset XForm.

3. Next, click "UVWRemove", select the "Set Gray" checkbox, then click the "UVW" button first, and then "Materials".

File:Max9ToCSUVWRemove.jpg

4. And then Collapse again.

5. With the collision mesh still selected, click "NifProps". Select "Is Collision Mesh", and adjust the other properties as needed.

File:Max9ToCSNifProps.jpg

We are going to use "Export" and not "Export Selected" when exporting with collision, so make sure your scene is clean from anything unnecessary.

File:Max9ToCSClean.jpg

Finally, exporting[edit | edit source]

File->Export. Save as type: NIF:

File:Max9ToCSExport.jpg

Notice that I selected the "textures\architecture\farmhouse" path, because I know that two of my textures are from that folder.

Fixing the model in NifSkope[edit | edit source]

Fixing collision[edit | edit source]

New versions of the NifSkope plugin seem to export correct collision, so you can skip this section. However, I leave this text here in case there are still some problems.

Open your model with NifScope. If you see your collision in red wireframe where it should be, you did everything right.

Now, we will need to modify some nodes to make the collision work (and not crash CS).

Right click the root node -> Node -> Attach Extra Data -> NiStringExtraData:

File:Max9ToCSAttachExtraData.jpg

Select it, change the name to UPB. Open another NifSkope, and open some other oblivion model, like a door. For example, Architecture\Anvil\anvildoormc01.nif. Find the NiStringExtraData node in it, copy contents from the StringData parameter, and paste it into your model. It seems that no matter what it contains in that parameter, it works if that model has collision:

File:Max9ToCSCopyStringData.jpg

Now, adjust the node order to be like this: root node = 0, BSXFlags = 1, NiStringExtraData = 2

(I usually select "NiStringExtraData", and use Ctrl+Up until it moves to just after the root node, then select the root node and click Ctrl+Up few times until it becomes 0)

File:Max9ToCSOrder.jpg

Now expand the bhkCollisionObject, and browse until you find bhkNiTriStripsShape. Select it, find the NumDataLayers property and change it to 1.

File:Max9ToCSbhkTriStripsShape.jpg

Now right click on DataLayers -> Array -> Update

File:Max9ToCSDataLayersUpdate.jpg

Expand the array and find it's first property. Change it to "Static":

File:Max9ToCSChangeToStatic.jpg

Thats all. Now it should not cause a crash and the collision should work. Some credit goes to Razorwind and his 3dsmax9 collision tutorial. You can check it out also, if you find any of my explanations are not clear enough.

Fixing Texture Paths[edit | edit source]

Browse for every NiTexturingProperty and check that the paths in NiSourceTexture are correct, and if not, change them.

Adding transparency[edit | edit source]

File:Max9ToCSAddingTransparency.jpg

Right click your mesh part which should be transparent, then Node -> AttachProperty -> NiAlphaProperty.

Additional info about transparency[edit | edit source]

Right click NiAlphaProperty->Flags. There are basically three ways in which transparency could be done. It depends on the mesh as to which way is better.

Alpha blending without testing[edit | edit source]

When transparent mesh parts in your model usually are not behind one another, this mode is best, because it produces smooth and nice edges. However, if you have some heavily transparent object (like a plant), you may see sky through some of leaves instead of other leaves. That happens because it seems that this version of the engine does not sort triangles before drawing them.

File:Max9ToCSAlphaBlendingWithoutTesting.jpg

Alpha blending with testing[edit | edit source]

To overcome this sorting problem, you can enable alpha testing. Setup it like shown below, and adjust the Threshold value until you find an optimal result. Threshold is the minimum required value for the alpha channel to be clipped. So you get some artifacts around edges, but generally the meshes are drawn correctly.

File:Max9ToCSAlphaBlendingWithTesting.jpg

Testing only[edit | edit source]

And then, if you don't like artifacts around edges, you can choose the same method in which oblivion trees are drawn: Testing Only

File:Max9ToCSTestingOnly.jpg

Getting it to Oblivion[edit | edit source]

Now, when everything is ready, save the nif file, and open CS.

Open the "File" menu, and choose "Data". Any group of modifications to a game is called a plugin and saved to an esp file. If you want just to test your mesh, you can create a temporary mod by selecting Oblivion.esm in this list and clicking OK. However, if you have an existing mod, you don't need any help from me :)

In the Cell View select the "Tamriel" World Space, then ICWaterfront03 (you will recognize this location).

I assume your mesh already is in some Data\Meshes\Test folder (this is just an example). In the Object Window, expand "World Objects" -> Static, and then select it. Then right click on any object, choose "New", click "Add NIF File", and browse for your file. When you are done, you can also change the ID property in the editor. Click OK, and your mesh should appear under Static\Test. Then drag it to the render window. Move it with left mouse button, rotate with the right mouse button, move up/down with Z button pressed, rotate view with the shift button pressed. More information on this is in A beginner's guide - The Construction Set Primer.

Good luck!

File:Max9ToCSsmallhut.jpg