Pages

130 posts / 0 new
Last post
Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Nif Import/Export plugin for 3dsmax 2013

Hi all,

I have been busy porting the 3dsmax NIF Import/Export plugin to 2013. I will continue to update this topic with newer versions as I get further into the port. After the initial port is complete I will be focusing my attention on improving the plugin to get as close as possible to game ready assets straight from 3dsmax.

I have also started this topic so people can suggest improvements that they would like to see implemented once the base port is complete.

You can get the latest version (Last updated 11/08/2014) from here, for 64-bit:

https://drive.google.com/file/d/0BzqpBc4MrAMXc2dkRUhFSzdwNEE...

And a test 32-bit version can be found (Last updated 11/08/2014) here (It does not contain the additional DLL's as they are 64-bit only - Which means no MOPP or Capsule collision exporting):

https://drive.google.com/file/d/0BzqpBc4MrAMXTWRIYmUyM3B0RGc...

As of now the following has been implemented:

11/08/2014
- Fixed importing/exporting of skeletons. Plugin will now replace incoming bones from chosen skeleton.nif if "Import Skeleton" is chosen.

List of improvements I will be working on after base port:

- Vertex color export improvement
- Export the correct Num UV's - taking into consideration Tangents/Binormals
- Correctly calculate the Tangents/Binormals
- Correctly produce the correct animation nodes
- Incorporate Ormin's MOPP collision fixes
- Seperate materials for BSLightingShader and BSEffectShader nodes for Skyrim - with full configurability
- Particle systems

If you do download and test the plugin and something goes wrong. ie. 3dsmax crashes. Please show a screenshot, outline the steps you did to recieve the crash and your operating system version and type.
 

Edited by: Ehamloptiran on 08/10/2014 - 22:28
Sjors Boomschors
Sjors Boomschors's picture
Contributor
Offline
Last seen: 2 years 1 month ago
Joined: 07/21/2011 - 07:49
Karma: 811
I am a 32bit 3DsMax user.

I am a 32bit 3DsMax 2012 user.

tommythegun
tommythegun's picture
Contributor
Offline
Last seen: 1 year 2 months ago
Joined: 07/02/2013 - 04:06
Karma: 259
Ehamloptrian - thats amazing

Ehamloptrian - thats amazing - ill check that out when i get home! Thanks a lot :)

Ravanna
Ravanna's picture
Contributor
Offline
Last seen: 1 year 1 month ago
Joined: 02/19/2013 - 12:21
Karma: 2596
Donor
I will be testing this on new

I will be testing this on new PC :)

plasmax
plasmax's picture
Member
Offline
Last seen: 2 years 9 months ago
Joined: 01/11/2014 - 07:01
Karma: 153
Google Drive gives me an

Google Drive gives me an Error 404 on the .dll and .dlu - if anyone has downloaded can they reupload the files?

cire992
cire992's picture
Member
Offline
Last seen: 7 months 3 weeks ago
Joined: 05/22/2013 - 18:46
Karma: 51
plasmax, select 'file' from

plasmax, select 'file' from the menu at the top and pick 'download' from the dropdown menu.

plasmax
plasmax's picture
Member
Offline
Last seen: 2 years 9 months ago
Joined: 01/11/2014 - 07:01
Karma: 153
Thank you cire! Don't know

Thank you cire! Don't know why I didn't try that.

Tested, worked. Issues:

1) Crashed once on export before I edited the .ini file to remove programs I don't have (Oblivion etc - didn't have to do this with 2011 version)

2) Selected BSFadeNode on export, got NiNode in nifskope

3) Had to re-assign textures once in nifskope, even after I edited the .ini adding direct mesh and texture paths (as I did with 2011).

Will be testing this more! :)

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
1) Crashed once on export

1) Crashed once on export before I edited the .ini file to remove programs I don't have (Oblivion etc - didn't have to do this with 2011 version)

If you have an ini file for the 2011 version, just copy that and replace the one I provided. Since the ini file I provided was my ini file from 2011.

2) Selected BSFadeNode on export, got NiNode in nifskope

This is normal for the moment, haven't implemented different root node's yet.

3) Had to re-assign textures once in nifskope, even after I edited the .ini adding direct mesh and texture paths (as I did with 2011).

I will look into this one, thought I had got the texture root paths implemented, apparently not.

EDIT: Just realised, very few of the ini options will actually work at this point, as I have not implemented that part. Which includes texture root paths, only the GUI option will work. Ini options will be implemented at the end, once the rest of the code has been ported.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Added dismemberment modified.

Added dismemberment modified. Updated first post and link has been updated to the latest version.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Added bhkRigidBody modifier

Added bhkRigidBody modifier and some bhk helper objects. First post updated.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Added bhkListObject and

Added bhkListObject and bhkProxyObject. MOPP style collisions can now be exported. First post updated.

plasmax
plasmax's picture
Member
Offline
Last seen: 2 years 9 months ago
Joined: 01/11/2014 - 07:01
Karma: 153
Testing rig export.

Testing rig export.

Stick with whatever the default is, but try unticking multiple partitions, this should generate a NiSkinInstance then add a BSDismemberment modifier, and export with Multiple Partitions and this should generate a Dismemberment node  
Reading this made me realise I should probably be testing this stuff when I've had some sleep. :)   Anyway, I exported a simple cylinder with 3 bones & a skin modifier and then added dismemberment for the 2nd one. I'm using the 2011 MaxNifTools.ini if that's relevant.     Then create some collisions using the collision helper tools under NifTools under the Helpers tab and export and see if you get Collision nodes   This is the next step.
Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Ported furniture and shader

Ported furniture and shader code. Only importing is left of the base port. First post updated.

Sjors Boomschors
Sjors Boomschors's picture
Contributor
Offline
Last seen: 2 years 1 month ago
Joined: 07/21/2011 - 07:49
Karma: 811
@Ehamloptiran:

@Ehamloptiran:
I have been working on the creation of new tree models to be used in Skywind and Skyblivion, due to the limitations and bugs in the older 3DsMax exporters I never managed to produce a 100% working in game tree. It always requested allot of manual work in Nifskope to get things working. I am not a big fan of manual Nifskope work and due to my limited knowledge on all the settings, I never ever got a model to work in game without issues.

If you have some time I would like you to take a look at importing and exporting a default Skyrim tree model. Nif files containing trees are different from the other files.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Sjors Boomschors wrote:

Sjors Boomschors wrote:

If you have some time I would like you to take a look at importing and exporting a default Skyrim tree model. Nif files containing trees are different from the other files.

I plan to implement importing/exporting of custom nodes once the base port is complete. I will take note of trees. Also the plugin has been updated to include importing of meshes and some collisions. No textures or skinned meshes yet. First post updated.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Added vertex colors and

Added vertex colors and skyrim collisions to import. Updated first post.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Added importing of textures.

Added importing of textures. Updated first post.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Added importing of skin

Added importing of skin modifier and dismemberment. First post updated

Smerk
Smerk's picture
Member
Offline
Last seen: 1 year 7 months ago
Joined: 12/11/2012 - 18:00
Karma: 344
Man this is awesome! Keep up

Man this is awesome! Keep up the good work. :)

thegreatgamecreator
thegreatgamecreator's picture
Member
Offline
Last seen: 2 years 11 months ago
Joined: 02/08/2013 - 15:06
Karma: 129
Someone has been a busy bee

Someone has been a busy bee

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Added basic animation

Added basic animation importing. First post updated.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Just some small updates this

Just some small updates this time. Most important is the Havok shapes and Num UV Sets. First post updated.

Sjors Boomschors
Sjors Boomschors's picture
Contributor
Offline
Last seen: 2 years 1 month ago
Joined: 07/21/2011 - 07:49
Karma: 811
@Ehamloptiran:

@Ehamloptiran:
The new 7-2-2014 32bit plugin does import models now, thanks! I will beable to test the plugin a bit more now.

thegreatgamecreator
thegreatgamecreator's picture
Member
Offline
Last seen: 2 years 11 months ago
Joined: 02/08/2013 - 15:06
Karma: 129
Your my hero Ehamloptiran.

Your my hero Ehamloptiran.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Added the ability to export

Added the ability to export Compressed mesh collisions. First post updated.

Model in 3dsmax with red outlined collision:

Mesh in CK previewer with black outlined collision:

Mesh ingame with collision:

zilav
zilav's picture
Contributor
Offline
Last seen: 3 months 3 days ago
Joined: 11/26/2012 - 12:51
Karma: 1338
That box in Whiterun reminds

That box in Whiterun reminds me of obelisk form space odyssey :)

Awesome progress.

DIYDeath
DIYDeath's picture
Member
Offline
Last seen: 2 years 9 months ago
Joined: 09/08/2013 - 08:06
Karma: 56
wow, just wow.

wow, just wow.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
No update to plugin. But

No update to plugin. But started working on particle system import and wanted to share progress. Currently working on PCloud emitters.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Importing of BSTreeNode and

Importing of BSTreeNode and BSLeafAnimNode:

Importing of Texture animation (Offset UV, Scale UV, Alpha)

First post updated.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Added new SwitchNode object

Added new SwitchNode object (Under helpers --> NifTools) to be able to create NiSwitchNode functionality. It allows you to visually flip between different branches. So far for import only.


eloth
eloth's picture
Moderator
Offline
Last seen: 2 months 1 week ago
Joined: 07/16/2010 - 06:12
Karma: 1227
omg omg omg omg omg omg :D

omg omg omg omg omg omg

Tajnarasha
Tajnarasha's picture
Member
Offline
Last seen: 2 years 8 months ago
Joined: 11/28/2013 - 17:35
Karma: 631
I'm not sure I'm even able to

I'm not sure I'm even able to fathom just how helpful all of this will be for the project. Wow Eham; this is seriously amazing work! 

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Exporting of SwitchNode

Exporting of SwitchNode objects is now possible:


Fixed importing/exporting of capsule collisions:


First post updated.

blabba
blabba's picture
Member
Offline
Last seen: 2 years 7 months ago
Joined: 03/16/2014 - 10:06
Karma: 12
Hello, I've been using this

Hello, I've been using this plugin successfully with 3DSMax 2014,

I just have 1 question, do you have any idea if this supports importing skeleton.nif files into 3dsMax and make the bones Max bones instead of dummy helpers?

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
I have had no problems with

I have had no problems with importing skeleton.nif during testing. The only part it won't import at the moment are the collision constraints.

Teechan
Teechan's picture
Offline
Last seen: 4 years 1 week ago
Joined: 10/06/2012 - 13:53
Karma: 1
(Using Max 2013) Recent

(Using Max 2013) Recent versions of the plugin imports the skeleton.nif with all dummies instead of bones. I looked around the .ini and didn't see an option to import bones instead.

I also noticed Oblivion .KF animation files won't import to an Oblivion skeleton.nif. I know most of this is for Skyrim, but figured I'd point it out. (Thank you for the work either way!)

Chr1s0g
Chr1s0g's picture
Offline
Last seen: 1 year 2 months ago
Joined: 03/21/2013 - 12:28
Karma: 9
hey great work on the plugin

hey great work on the plugin an i know it dont say its for 2015 x64 but it dont work for that just though it let you know :) works great for 2014 though :)

Smerk
Smerk's picture
Member
Offline
Last seen: 1 year 7 months ago
Joined: 12/11/2012 - 18:00
Karma: 344
Its not designed for newer

Its not designed for newer versions at this point because an majority of the team is working in older versions.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
I'm actually surprised it

I'm actually surprised it works for 2014 (Good news it is, means I dont have to do a seperate 2014 build) as for 2015, I was not even aware that it was out yet. I will leave that for later when the plugin is more fleshed out.

pralima87
pralima87's picture
Offline
Last seen: 3 years 11 months ago
Joined: 03/25/2014 - 13:54
Karma: 10
Hi Ehamloptiran,

Hi Ehamloptiran,

I'm using you version with Max 2014 and is working fine and really fast :D!

My only issue is that if I configure the INI textures and skeleton will show properly.

But Max will show a Error upon exporting.

picture of the error attached.

Any way to avoid this? Or just leave the INI as it is?

AttachmentSize
Image icon Error134.14 KB
Lotholan
Lotholan's picture
Offline
Last seen: 4 years 2 weeks ago
Joined: 03/28/2014 - 05:34
Karma: 1
I'm pretty much following

Yeah, I'm getting that error message too for Exporting.
I'm pretty much following these video tutorials.
Because I'm saving my mods in a folder separate from my extracted data, I had to modify the plugin's directories for textures and meshes in the MaxNifTools.ini file.
Here's a snippet of the important change

After finally getting to video 6 and trying to export the models and skeleton I just imported I got that error message with the box text.

 

Not exactly sure what's goin on here.  Just a general error.  It seems to have something to do with the skeleton or nodes, cause if I have just the body and armor selected and do 'Export Selected' it works fine, but without a skeleton it's bare (of) bones.  Any thoughts?
I'm running 64 bit, on Windows 7.

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
Yeah the error is not exactly

Yeah the error is not exactly readable due to wide strings. Are you able to send me the MAX file? I plan to do a bunch of work on the plugin this weekend, so if you send me the MAX file, I may be able to fix the error you are having at the same time as my other work.

pralima87
pralima87's picture
Offline
Last seen: 3 years 11 months ago
Joined: 03/25/2014 - 13:54
Karma: 10
Ehamloptiran wrote:

Ehamloptiran wrote:

Yeah the error is not exactly readable due to wide strings. Are you able to send me the MAX file? I plan to do a bunch of work on the plugin this weekend, so if you send me the MAX file, I may be able to fix the error you are having at the same time as my other work.

Sorry but.. what MAX file?

Error is in japanese or chinese now :/..

artizan
artizan's picture
Offline
Last seen: 4 years 1 week ago
Joined: 04/10/2014 - 13:54
Karma: 2
hi there, i've been trying to

hi there, i've been trying to install this plugin. but i just keep failing. when i use it on 3ds max then i get an error message when opening 3ds max.

Any suggestion for this? 

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
This version of the plugin

This version of the plugin will not work on anything earlier than 3DS Max 2013

artizan
artizan's picture
Offline
Last seen: 4 years 1 week ago
Joined: 04/10/2014 - 13:54
Karma: 2
thanks for the quick reply,

Nice, i got it to work on 3ds max 2013, But i have another question. in nif utilities on max 2009/2012 you could set textures paths. When i import meshes into 3ds max with your 2013 plugin. Then it wont import the textures, Is there a way to set the textures paths again? for morrowind,Bloodmoon,Tribunal,oblivion,Knights of nine,Shivering isles, Skyrim

Still its a nice plugin

pralima87
pralima87's picture
Offline
Last seen: 3 years 11 months ago
Joined: 03/25/2014 - 13:54
Karma: 10
artizan wrote:

artizan wrote:

Nice, i got it to work on 3ds max 2013, But i have another question. in nif utilities on max 2009/2012 you could set textures paths. When i import meshes into 3ds max with your 2013 plugin. Then it wont import the textures, Is there a way to set the textures paths again? for morrowind,Bloodmoon,Tribunal,oblivion,Knights of nine,Shivering isles, Skyrim

Still its a nice plugin

right now loading textures by editing the INI file will cause errors when exporting. we need to wait for more updates from Ehamloptiran. But yes this plugin is very good! And our only hope to edit nifs with MAX 2013/14.

pralima87
pralima87's picture
Offline
Last seen: 3 years 11 months ago
Joined: 03/25/2014 - 13:54
Karma: 10
artizan wrote:

sorry double post.

begalund
begalund's picture
Offline
Last seen: 3 years 11 months ago
Joined: 04/14/2014 - 06:53
Karma: 1
Having not attempted this

Having not attempted this before, I might be putting things in the wrong place, but after attempting to install the plugin, I'm getting the following error:

--------------------------- Error Loading Plug-in DLL ---------------------------

DLL <C:\Program Files\Autodesk\3ds Max 2013\PlugIns\EhamPlugin.dlu> failed to initialize. Error code 193 - %1 is not a valid Win32 application.  

So, I'm either sticking the file in the wrong place (very possible I suppose), or is there some other error?  And, yes, I did grab the x86 version and am using the 2013 32-bit version of 3ds.  

blabba
blabba's picture
Member
Offline
Last seen: 2 years 7 months ago
Joined: 03/16/2014 - 10:06
Karma: 12
Turns out I don't think this

Turns out I don't think this plugin successfully handles animations yet....

Or at least I can't import skyrim .kf file onto XPMS skeleton, is anyone else successful in doing this?

Ehamloptiran
Ehamloptiran's picture
Member
Offline
Last seen: 3 years 5 months ago
Joined: 12/19/2013 - 20:04
Karma: 204
Donor
pralima87 wrote:

pralima87 wrote:



right now loading textures by editing the INI file will cause errors when exporting. we need to wait for more updates from Ehamloptiran. But yes this plugin is very good! And our only hope to edit nifs with MAX 2013/14.



Really? This is how I have been testing the exporting since the beginning. I will investigate but not sure on the issue there.

begalund wrote:


Having not attempted this before, I might be putting things in the wrong place, but after attempting to install the plugin, I'm getting the following error:

--------------------------- Error Loading Plug-in DLL ---------------------------

DLL <C:\Program Files\Autodesk\3ds Max 2013\PlugIns\EhamPlugin.dlu> failed to initialize. Error code 193 - %1 is not a valid Win32 application.  

So, I'm either sticking the file in the wrong place (very possible I suppose), or is there some other error?  And, yes, I did grab the x86 version and am using the 2013 32-bit version of 3ds.  



That error message suggests its a 64-bit DLL trying to load in a 32-bit environment. But you say you used the 32-bit (x86) version. I'll have to test

blabba wrote:


Turns out I don't think this plugin successfully handles animations yet....

Or at least I can't import skyrim .kf file onto XPMS skeleton, is anyone else successful in doing this?



You are correct, animation has been a low priority for me at the moment. Since Skyrim does not natively use .KF files for animations, I will probably not have an Import/Export KF feature. The options will include:

- NIF + Individual Controllers
- NIF + NiControllerManager
- NIF + HKX Hybrid - This will export transformations to HKX and any other type of anim (Particle effects, etc.) as a NiControllerManager

Not sure when I will get around to that though, as collisions still remain my top priority.

Pages