Home | Download | Discussion | Help | Site Map | New Posts | Sign in

Latest Site News

Guidelines/Rubrics Changes - posted on 16th Jun 2017 at 6:09 PM
MTS has all free content, all the time. Find out how YOU can help to keep it running. Tell me how...
Advertisement:

Picked upload! SMD importer/exporter for blender, Updated Oct 27th

by Bobcatben Posted 28th Aug 2007 at 2:05 PM - Updated 27th Nov 2013 at 9:09 PM by Nysha
513 Thanks Say Thanks
88 Favourited
4,258 Downloads
96,259 Views
Advertisement:
99 Comments / replies (Who?)
Picked Upload! This is a picked upload! It showcases some of the best talent and creativity available on MTS and in the community.
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.
Tags: #blender, #mesh, #export, #import, #smd

Operating System: Windows Linux Mac OS X
Utility Type: Meshing Tools
Plugin Type: Blender

You must have the expansion or stuff packs listed below installed to use this custom content. Please see the post text for any exceptions.

Sims 2
Key: - File was updated after upload was posted
Filename - Tip: You can click the magnifying glass to see the archive contents Size Downloads Date
import_smd.zip 2.1 KB 7,773 29th Aug 2007
export_smd.zip 2.1 KB 6,620 29th Aug 2007
Don't forget to Thank the creator after downloading! Use the Thanks button located above the screenshots above.
Basic Download and Install Instructions:

1. Download: Click the download link to save the .rar or .zip file(s) to your computer.

2. Extract: Use WinRAR (Windows) or Stuffit (Mac) to extract the .package file(s) from the .rar or .zip file(s).

3. Place in Downloads Folder: Cut and paste the .package file(s) into your Downloads folder:
  • Windows XP: Documents and Settings\(Current User Account)\My Documents\EA Games\The Sims 2\Downloads\
  • Windows Vista/7/8: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads\
  • Mac: Users\(Current User Account)\Documents\EA Games\The Sims 2\Downloads\

-or-

4. Place in Program Files: Cut and paste the .package file(s) into your appropriate Install folder:
  • Windows XP: C:\Program Files\EA GAMES\The Sims 2 (Your Latest EP)\TSData\Res\Catalog\Bins
  • Windows Vista/7/8: C:\Program Files\EA GAMES\The Sims 2 (Your Latest EP)\TSData\Res\Catalog\Bins
  • Windows Vista/7/8: C:\Program Files(x86)\EA GAMES\The Sims 2 (Your Latest EP)\TSData\Res\Catalog\Bins
  • Origin: C:\Program Files (x86)\Origin Games\The Sims 2 Ultimate Collection\Fun with Pets\SP9\TSData\Res\Catalog\Bins
  • Mac: APPLICATIONS FOLDER -> THE SIMS 2 -> TSDATA -> RES -> CATALOG


Need more information?
 
Page 1 of 4
99 Comments / Replies (Who?) - 91 Feedback Posts, 7 Thanks Posts
Hide Thanks Posts for this thread (Show only feedback)
Page 1 of 4
Back to top
Advertisement: