SMD importer/exporter for blender, Updated Oct 27th
MTS has all free content, all the time. Donate to help keep it running.
SCREENSHOTS
Picked Upload!
This is a picked upload! It showcases some of the best talent and creativity available on MTS and in the community.
Created by Bobcatben
Uploaded: 28th Aug 2007 at 2:05 PM
Updated: 27th Nov 2013 at 9:09 PM by Nysha
Updated: 27th Nov 2013 at 9:09 PM by Nysha
these plugin scripts for blender will allow you to import and export smd's tailored for the sims 2 for use in simpe.
(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.
(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.
Filename | Size | Downloads | Date | |||||
export_smd.zip
Size: 2.1 KB · Downloads: 7,317 · 29th Aug 2007 |
2.1 KB | 7,317 | 29th Aug 2007 | |||||
import_smd.zip
Size: 2.1 KB · Downloads: 8,507 · 29th Aug 2007 |
2.1 KB | 8,507 | 29th Aug 2007 | |||||
For a detailed look at individual files, see the Information tab. |
Key:
- - File was updated after upload was posted
Install Instructions
Basic Download and 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:
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.
Also Thanked - Users who thanked this download also thanked:
Packs Needed
None, this is Sims 2 base game compatible!
Other Information
Operating System:
– Windows
: Windows XP, Windows Vista, Windows 7, etc
– Linux
: Various flavours of Linux, may need Mono or Wine
– Mac OS X
: OS X, may need Mono
Utility Type:
– Meshing Tools
: Tools and utilities helpful to meshers.
Plugin Type:
– Blender
: Plugins for Blender
Tags
More Downloads BETA
Here are some more of my downloads: