SMD importer/exporter for blender, Updated Oct 27th
(i will be updating these every so often as i find bugs/other people tell me about bugs so check the updates at the bottom if you use it)
smd is much more flexible for sims 2 modeling then .obj's
my desire to make this started when i tried to make speakers that could sit on the floor, or on a counter instead of hanging on the wall, and SimPE started misreading the vertex/face count of my .obj's and refusing to import them, then when i found out if i wanted to make a body mesh i couldn't make new/delete vertices's, only move them.
so over the past few days i wrote these 2 scripts for blender, 1 which imports a skeleton/mesh from a smd, and 1 that exports.
ive been testing it since last night and new vertices's work, as do bone weights.
the 2 .py files go in the .blender/scripts/ folder of your blender folder(default is c:/program files/blender/.blender/scripts/), the scripts work in linux too(tested) and most likely on Mac's as well.
the importer is simple enough to use, to export, you need the mesh to be parented to the skeleton(the meshes import this way with the importer to see what i mean), it uses vertex group bone weights for the bone weighting(also imports this way), if no set of bones with a mesh is found, it exports the first mesh it fines, with a dummy bone in the finished smd.
Some common things that might trip you up when exporting..
1, if you have to scale/rotate your mesh from object mode, hit ctrl+A
afterward to apply the scaling/rotation to the actual mesh.
2, dark edges at the ends of shirt sleeves and pants legs is caused by 2 differing angled faces sharing a edge, just apply a edge split modifier to the mesh, and tweak the angle setting till it looks good.
3, if you change bone weights/add new vertices, make sure the total bone weighting for a given vertex is always equal to 1.0(this can cause problems once in game) i may add the option to the exporter to balance any slightly under/overweighted vertices in the future.
4, also, never have more then 4 bones weighting to a single vertex(sims 2 only supports up to 4 bones per vertex)
5, if your mesh has a skeleton(ie, its a body mesh) always have the mesh parented to the skeleton(which can be added to blender by importing a default body mesh and deleting the mesh itself), if it is a static mesh, no bones are needed.
please let me know if theres any improvements i could make/bugs i need to fix
Version updates:
Oct 27th: exporter updated to 0.5, added normalization of bone weights.
Sept 22nd: exporter updated to 0.4, added more error handlers and the ability to convert to triangles if the mesh has quads.
Sept 20th: updated the exporter to 0.3, fixed a bug with not catching vertex groups without matching bones and crashing it.
Sept 12th: updated the importer to 0.3, fixed bugs with normals and merging vertices's with different normals.
Aug 29th: updated exporter to 0.2(fixed a bug with exporting a mesh with no skeleton, eg for non animated things like statues)
Additional Credits:
many other exporter/importer scripts in blender that i looked to for reference/how todo stuff, and the half life smd exporter(doesn't work with sims smd's) that i learned how get the bone rotations from.
export_smd.zip
Download
Uploaded: 29th Aug 2007, 2.1 KB.
7,364 downloads.
|
||||||||
import_smd.zip
Download
Uploaded: 29th Aug 2007, 2.1 KB.
8,547 downloads.
|
||||||||
For a detailed look at individual files, see the Information tab. |
Install Instructions
1. Download: Click the download link to save the .rar or .zip file(s) to your computer.
2. Extract the zip, rar, or 7z file.
3. Place in Downloads Folder: Cut and paste the .package file(s) into your Downloads folder:
- Origin (Ultimate Collection): Users\(Current User Account)\Documents\EA Games\The Sims™ 2 Ultimate Collection\Downloads\
- Non-Origin, Windows Vista/7/8/10: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads\
- Non-Origin, Windows XP: Documents and Settings\(Current User Account)\My Documents\EA Games\The Sims 2\Downloads\
- Mac: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads
- Mac x64: /Library/Containers/com.aspyr.sims2.appstore/Data/Library/Application Support/Aspyr/The Sims 2/Downloads
- For a full, complete guide to downloading complete with pictures and more information, see: Game Help: Downloading for Fracking Idiots.
- Custom content not showing up in the game? See: Game Help: Getting Custom Content to Show Up.
- If you don't have a Downloads folder, just make one. See instructions at: Game Help: No Downloads Folder.
Loading comments, please wait...
Updated: 27th Nov 2013 at 10:09 PM by Nysha
-
OUTDATED: The "CEP" (Color Enable Packages) - V. 2.0 - 14-MAR-2005
by Numenor 31st Dec 2004 at 3:52am
637 358.3k 6 -
[UPDATE] Sims 2 GMDC Import/Export for Blender 2.79
by SmugTomato 22nd May 2018 at 4:43pm , updated 25th May 2018 at 11:49pm
65 49k 51 -
The Sims 2 GMDC Importer/Exporter for Blender 2.80+
by DjAlex88 19th May 2021 at 1:39pm , updated 29th Sep 2022 at 10:44pm
47 9.5k 32
-
Better Alien Abductions: Updated July 20th
by Bobcatben 11th May 2007 at 4:37pm
Ever feel like your aliens only have one thing on theyre mind when they abduct people? this mod will more...
53 79.7k 54 -
No Aging Past Adult And/Or Elders, Updated 10/23/2006 Updated Pets EP Version.
by Bobcatben 13th Jun 2006 at 6:39pm
This is my 2nd hack uploaded, and more complex then the previous one. more...
36 55.3k 28 -
Work Out in..., Run Course in... Extended menus- Updated 06/24
by Bobcatben 23rd Jun 2006 at 10:46pm
Updated Please Redownload As a sequel to my sleep in... more...
21 39.5k 13 -
Open/Closeable Garage Door Mod
by Bobcatben 4th Oct 2006 at 5:50pm
i whipped this up after seeing a request and playing with the garage doors myself for awhile, this more...
+1 packsNightlife -
More Sleep Choices, Updated Oct 1st
by Bobcatben 16th Jun 2006 at 1:39am
i been wracking my brain for over 2 months trying to figure out how to make this baby, and i more...
27 128k 36 -
Dive in Anything, Diving Board Hack
by Bobcatben 1st Oct 2006 at 10:04pm
My Latest " in anything" mod, this one is for the diving board. more...
36 71.6k 38 -
No School for Teens. Updated 07/07/2006
by Bobcatben 13th Jun 2006 at 5:06pm
This is a hack i made a few months ago, makes it so teenage sims dont have to goto school more...
64 102.6k 90 -
The Roboticizer, Updated 03/17/2008
by Bobcatben 20th Jul 2006 at 7:35pm
Update March 17th 2008: Added Alternate version that uses the "MiRobots " skin by DumBblOndE, which must be downloaded separately. more...
+1 packsUniversity -
No Reading the paper on the toilet
by Bobcatben 7th Jul 2006 at 5:10pm
By Request This hack will keep Sims from reading the paper on the toilet. more...
11 28.5k 15