- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Meshing >
- 3DS Max - 3ds Max geom plugin and rig generator for animTool
- Site Map >
- Modding and Creation >
- Sims 3 Creation >
- Meshing >
- 3DS Max - 3ds Max geom plugin and rig generator for animTool
Replies: 7 (Who?), Viewed: 16452 times.
#1
15th Aug 2011 at 11:03 AM
Posts: 5
3ds Max geom plugin and rig generator for animTool
I couldn't find many max plugins so I made this one. This plugin lets you import geom models, generates rig config files for animTool and imports the smd animation files with rotation only.This is a port of Blender GEOM Mesh Plugin . The only other main change is that it generates the hashes for the bones.
Install the gr2 rig file importer. I'm using 3ds Max 2011 and I think the importer I used was nwn2utilsmaxplugins2.3.0.exe which required granny2.dll to be copied to 3ds Max 2011 folder.
To install the geom plugin go to utilities, click "MaxScript" then "Run Script" on the included ms file. Then select "Sims3 Utits" from the Utilities dropdown. This will display two buttons.
Import Geom: To use this first create a folder with the *.gr2 rig file inside it. Then create a sub folder (any name) to store each simgeom file and optionally add the textures which assigns the diffuse ("*_m_*.dds") and secular ("*_s_*.dds") materials e.g.
TestImporter
-- auRig.gr2
-- Test UpperBody Folder
---- upperBody.simgeom
---- texture_m_.dds
-- Test LowerBody Folder
---- lowerBody.simgeom
---- texture_m_.dds
In max click the "Import Geom" button to import the rig and add all geometry to the rig. It also creates a rig config file e.g auRig.txt in the root folder. Use the new config file with animTools to convert CLIP files to SMD.
Import SMD: Use the smd generated by animTool to import the animation. This works like a regular smd importer but only includes rotation animations and not positions. Not including position animations fixed a lot of animation errors I was getting, especially in facial animations.
I'll probably convert the morph importer plugin for max some other time.
Attached files:
3dsMaxSims3Plugin.zip (6.5 KB, 854 downloads) - View custom content | ||
21395 08-15-11 21:16 GeomImport.ms -------- ------- 21395 1 file |
Advertisement
#2
15th Aug 2011 at 1:58 PM
Posts: 491
Thanks: 8604 in 169 Posts
OMG!!! This is soooo cool!!! 3Ds Max is the main package I work with. I'm a bit busy at the moment, but once I get the time I'll be sure to test it out! Thanks soooo much.
This space intentionally left blank...
This space intentionally left blank...
#3
19th Aug 2011 at 5:19 PM
Posts: 29
Thank you, but unfortunatly, I'm not able to use this plugin. Wherever I put the file granny2.dll, it seems that it can't find it.
Import Error
Unable to locate file: granny2.dll
I've tested with 3ds max 2011 on Windows 7 x64
Import Error
Unable to locate file: granny2.dll
I've tested with 3ds max 2011 on Windows 7 x64
#4
20th Aug 2011 at 3:49 AM
Posts: 5
I also had issues with the dll not being found. I think I downloaded the NWN2 plugin from
http://nwvault.ign.com/View.php?vie...ns.Detail&id=27 then followed the install instructions to copied the following files
C:\Program Files\Autodesk\3ds Max 2011\granny2.dll
C:\Program Files\Autodesk\3ds Max 2011\plugins\NWN2Utils.dlu
C:\Program Files\Autodesk\3ds Max 2011\plugcfg\NWN2Utils.ini
but it still didn't work. I think the issue was that there are different versions of the granny2.dll. The dll from the granny crowd scene doesn't work. The correct one is in the "GR2 Expotron Exporter (3dsMax)" at http://gr2decode.altervista.org/download.html.
I'm also using Windows 7 x86 and havn't tested it on x64.
http://nwvault.ign.com/View.php?vie...ns.Detail&id=27 then followed the install instructions to copied the following files
C:\Program Files\Autodesk\3ds Max 2011\granny2.dll
C:\Program Files\Autodesk\3ds Max 2011\plugins\NWN2Utils.dlu
C:\Program Files\Autodesk\3ds Max 2011\plugcfg\NWN2Utils.ini
but it still didn't work. I think the issue was that there are different versions of the granny2.dll. The dll from the granny crowd scene doesn't work. The correct one is in the "GR2 Expotron Exporter (3dsMax)" at http://gr2decode.altervista.org/download.html.
I'm also using Windows 7 x86 and havn't tested it on x64.
#5
20th Aug 2011 at 3:52 AM
Posts: 5
Another issue I had was that it couldn't read auRig, cuRig or puRig. Thanks to Nukael, I found out that these files have extra bytes at the start which can be removed with a hex editor.
I've included a new version of the plugin. I fixed a bug that would prevent some models from loading and the models should load much faster now.
I've included a new version of the plugin. I fixed a bug that would prevent some models from loading and the models should load much faster now.
Attached files:
GeomImport_0_1.zip (7.8 KB, 210 downloads) - View custom content | ||
27121 08-20-11 14:45 GeomImport.ms -------- ------- 27121 1 file |
#6
20th Aug 2011 at 6:03 AM
Posts: 29
Quote: Originally posted by bobbuilder45
I also had issues with the dll not being found. I think I downloaded the NWN2 plugin from http://nwvault.ign.com/View.php?vie...ns.Detail&id=27 then followed the install instructions to copied the following files C:\Program Files\Autodesk\3ds Max 2011\granny2.dll C:\Program Files\Autodesk\3ds Max 2011\plugins\NWN2Utils.dlu C:\Program Files\Autodesk\3ds Max 2011\plugcfg\NWN2Utils.ini but it still didn't work. I think the issue was that there are different versions of the granny2.dll. The dll from the granny crowd scene doesn't work. The correct one is in the "GR2 Expotron Exporter (3dsMax)" at http://gr2decode.altervista.org/download.html. I'm also using Windows 7 x86 and havn't tested it on x64. |
Thank you, but I still have the same error.
#7
20th Aug 2011 at 12:03 PM
Posts: 5
Sorry to hear that, sounds like the gr2 importer doesn't work with the x64 version. I've created some max rig files so you don't need to use the gr2 importer. I've included auRig, cuRig and puRig along with the matching text files to use with animTool in the attached Rigs folder. I also included a "testImport" folder that includes geom, textures and a smd. The new GeomImport.ms script displays a "Import (max)..." button. Click it and select puRig.max from the testImport folder. Hopefully this will work.
Attached files:
GeomImport_0_2 set.zip (6.45 MB, 349 downloads) - View custom content | ||
0 08-20-11 22:57 GeomImport_0_2 set/ 28368 08-20-11 22:30 GeomImport_0_2 set/GeomImport.ms 0 08-20-11 22:54 GeomImport_0_2 set/Rigs/ 14236 08-08-11 19:29 GeomImport_0_2 set/Rigs/auRig.gr2 794624 08-20-11 22:19 GeomImport_0_2 set/Rigs/auRig.max 9903 08-20-11 11:05 GeomImport_0_2 set/Rigs/auRig.txt 14352 08-08-11 19:50 GeomImport_0_2 set/Rigs/cuRig.gr2 798720 08-20-11 22:19 GeomImport_0_2 set/Rigs/cuRig.max 9841 08-20-11 11:11 GeomImport_0_2 set/Rigs/cuRig.txt 14264 08-08-11 19:48 GeomImport_0_2 set/Rigs/puRig.gr2 798720 08-20-11 22:20 GeomImport_0_2 set/Rigs/puRig.max 9846 08-20-11 11:11 GeomImport_0_2 set/Rigs/puRig.txt 0 08-20-11 22:54 GeomImport_0_2 set/testImport/ 1163776 08-20-11 13:02 GeomImport_0_2 set/testImport/example.avi 0 08-20-11 22:54 GeomImport_0_2 set/testImport/hair/ 780865 08-19-11 20:58 GeomImport_0_2 set/testImport/hair/5a.simgeom 722636 08-19-11 23:52 GeomImport_0_2 set/testImport/hair/hairLayers4ColorsDHardLightAndBG_d_.png 755075 08-19-11 21:00 GeomImport_0_2 set/testImport/hair/hair_o_.png 396544 08-19-11 21:00 GeomImport_0_2 set/testImport/hair/hair_s_.png 0 08-20-11 22:54 GeomImport_0_2 set/testImport/overalls/ 921675 08-18-11 23:16 GeomImport_0_2 set/testImport/overalls/puBody_d_and_clothing.png 15643 08-11-11 20:08 GeomImport_0_2 set/testImport/overalls/puFeet_lod1.simgeom 152639 08-18-11 21:38 GeomImport_0_2 set/testImport/overalls/S3_015A1849_00EF1430_000000006C81BBC3_puBodyOverallsShirt_jeans_lod1%%+GEOM.simgeom 313800 08-18-11 23:03 GeomImport_0_2 set/testImport/overalls/_puBodyOverallsShirt_normal_map_n_.png 240071 08-18-11 22:04 GeomImport_0_2 set/testImport/overalls/_puBodyOverallsShirt_specular_s_.png 0 08-20-11 22:54 GeomImport_0_2 set/testImport/puEyeLash/ 6940 08-11-11 20:11 GeomImport_0_2 set/testImport/puEyeLash/puFace_lod0_1.simgeom 699192 08-13-11 16:04 GeomImport_0_2 set/testImport/puEyeLash/S3_00B2D882_00000000_F27771ADAE433813_puFace_a_0xf27771adae433813%%+_IMG.dds 1398256 08-13-11 16:04 GeomImport_0_2 set/testImport/puEyeLash/S3_00B2D882_00000000_F27771ADAE43381D_puFace_o_0xf27771adae43381d%%+_IMG.dds 0 08-20-11 22:54 GeomImport_0_2 set/testImport/puFace/ 9011 08-16-11 21:09 GeomImport_0_2 set/testImport/puFace/puFace_lod0.simgeom 94317 08-11-11 20:38 GeomImport_0_2 set/testImport/puFace/puFace_lod0_2.simgeom 5424 08-11-11 20:38 GeomImport_0_2 set/testImport/puFace/puFace_lod0_3.simgeom 699192 08-13-11 16:04 GeomImport_0_2 set/testImport/puFace/S3_00B2D882_00000000_F27771ADAE433801_puFace_s_0xf27771adae433801%%+_IMG.dds 699192 08-13-11 16:04 GeomImport_0_2 set/testImport/puFace/S3_00B2D882_00000000_F27771ADAE433813_puFace_a_0xf27771adae433813%%+_IMG.dds 699192 08-13-11 16:04 GeomImport_0_2 set/testImport/puFace/S3_00B2D882_00000000_F27771ADAE433816_puFace_d_0xf27771adae433816%%+_IMG.dds 699180 08-13-11 16:04 GeomImport_0_2 set/testImport/puFace/S3_00B2D882_00000000_F27771ADAE43381C_puFace_n_0xf27771adae43381c%%+_IMG.dds 699192 08-13-11 16:04 GeomImport_0_2 set/testImport/puFace/S3_00B2D882_00000000_F27771ADAE43381F_puFace_m_0xf27771adae43381f%%+_IMG.dds 14264 08-08-11 19:48 GeomImport_0_2 set/testImport/puRig.gr2 798720 08-20-11 22:20 GeomImport_0_2 set/testImport/puRig.max 0 08-20-11 22:54 GeomImport_0_2 set/testImport/puScalp/ 12459 08-12-11 21:14 GeomImport_0_2 set/testImport/puScalp/puScalp_lod0.simgeom 2860 08-16-11 21:12 GeomImport_0_2 set/testImport/puScalp/S3_00B2D882_00000000_75AECFABC8FE9704_puScalp_n_0x75aecfabc8fe9704%%+_IMG.dds 699192 08-16-11 21:12 GeomImport_0_2 set/testImport/puScalp/S3_00B2D882_00000000_75AECFABC8FE9707_puScalp_d_0x75aecfabc8fe9707%%+_IMG.dds 699192 08-16-11 21:12 GeomImport_0_2 set/testImport/puScalp/S3_00B2D882_00000000_75AECFABC8FE9719_puScalp_s_0x75aecfabc8fe9719%%+_IMG.dds 706872 08-14-11 17:35 GeomImport_0_2 set/testImport/p_react_laugh1_y.smd -------- ------- 16598245 46 files |
#8
21st Aug 2011 at 7:36 AM
Posts: 116
Thanks: 1168 in 17 Posts
This is most excellent! I am glad someone is working on GEOM plugins for 3DS Max;
Unfortunately I only own a license for 3DS 2012 version, but nevertheless here is my tests:
- I wasn't able to setup your script as MAXScript Utility to showup;
Whoever I am able to do so if I set it instead of utility, rollout (in your script just switch comments )
- I can get a GEOM to import, but only the mesh, once the script start to setup the boneList array, if finds none (@459)
The auRig is from the package, perhaps I shouldn't be using that one?
I didn't went into thorough tests, but once I get time I will see if I can try debug it more deeply.
Although I can confirm the mesh is imported successfully.
All normals axis are aligned properly, UVs properly applied, no isolated vertices as well.
Did the test with both low and high poly amount, 1k and 24k respectively.
While high-poly meshes will take a while to calculate everything, will cause 3DS to lock up with no response, it is processing the data.
Just need to wait.
The only thing is that the GEOM mesh use a flipped axis (compared to 3DS df unit, -90Z?), so I just use the command to rotate
rotate $ (angleaxis 90 [1,0,0])
Do you plan on starting development on a Exporter as well?
Not long ago I wrote a small script to get the vertex weight of the mesh,
While I scrapped out the idea of what I was going to try to make, I am sure you can put it to a better use than me:
You made my whole week already just when I saw this, I just can't simply give a thank you, this is a HUGE step!
One ahead on getting perfect bone assignments for high-poly, that would open many doors in terms of making custom high-poly meshes to The Sims 3.
Make my modding dreams possible as well!
Unfortunately I only own a license for 3DS 2012 version, but nevertheless here is my tests:
- I wasn't able to setup your script as MAXScript Utility to showup;
Whoever I am able to do so if I set it instead of utility, rollout (in your script just switch comments )
- I can get a GEOM to import, but only the mesh, once the script start to setup the boneList array, if finds none (@459)
The auRig is from the package, perhaps I shouldn't be using that one?
I didn't went into thorough tests, but once I get time I will see if I can try debug it more deeply.
Although I can confirm the mesh is imported successfully.
All normals axis are aligned properly, UVs properly applied, no isolated vertices as well.
Did the test with both low and high poly amount, 1k and 24k respectively.
While high-poly meshes will take a while to calculate everything, will cause 3DS to lock up with no response, it is processing the data.
Just need to wait.
The only thing is that the GEOM mesh use a flipped axis (compared to 3DS df unit, -90Z?), so I just use the command to rotate
rotate $ (angleaxis 90 [1,0,0])
Do you plan on starting development on a Exporter as well?
Not long ago I wrote a small script to get the vertex weight of the mesh,
While I scrapped out the idea of what I was going to try to make, I am sure you can put it to a better use than me:
Code:
msh = $ max modify mode vertexCount = getNumverts msh for i = 1 to vertexCount do ( vertexBoneCount = skinOps.GetVertexWeightCount msh.modifiers[#skin] i for bn = 1 to vertexBoneCount do ( weight = skinops.getvertexweight msh.modifiers[#skin] i bn -- write the weight to exporter/array.. for _vertice_ i _bone_ bn ) )
You made my whole week already just when I saw this, I just can't simply give a thank you, this is a HUGE step!
One ahead on getting perfect bone assignments for high-poly, that would open many doors in terms of making custom high-poly meshes to The Sims 3.
Make my modding dreams possible as well!
Who Posted
|