[Bf-blender-cvs] CVS commit: blender/release/scripts 3ds_export.py

Campbell Barton cbarton at metavr.com
Tue May 2 13:26:32 CEST 2006

campbellbarton (Campbell Barton) 2006/05/02 13:26:32 CEST

  Modified files:
    blender/release/scripts 3ds_export.py 
  Commited 3ds export enhancements from Mark Stijnman (beowulff)
  Will need to do some updates, Mesh over NMesh and optimize some areas but it works and is a big improvement.
  Detailed description:
  Modified the 3ds export script 3ds_export.py:
  - It now exports face UV correctly. 3ds only supports one UV coordinate per vertex. The script now duplicates vertices that had multiple UV pairs assigned to them so that each duplicate now only contains one and only one UV. Faces have their vertex indices adjusted accordingly.
  - Quads are now split into triangles better. 3ds only supports triangles, so quads need to be split into two triangles. Instead of rather arbitrarily splitting along the diagonal between points 0 and 2, the script now splits along the shortest diagonal. This creates a higher quality triangular mesh, as well as better preservation of symmetry.
  - Now creates an object node block, exporting object nodes, needed by some 3D importers. Among others, allows one to export object hierarchy.
  - Now exports Empties as 3ds Dummies.
  To be able to add all of the above new features, the script has been mostly rewritten and strongly restructured.
  Motivation for the rewrite was the desire to be able to use Blender to produce custom 3d cars for Trackmania:Sunrise (TM:S). Previously, the TM:S importer could not correctly handle the 3ds files from the Blender 3ds export script. With this version, one can export cars complete with UV textures, correct wheel placement and light placement. To my knowledge, this script would make Blender the first fully free 3d modeller that allows one to export 3ds models for TM:S (expect a tutorial soon). The ability to have proper UV coordinates exported into the 3ds file should also be very welcome to many.
  Add A Comment: Notepad
  Revision  Changes    Path
  1.2       +869 -673  blender/release/scripts/3ds_export.py

More information about the Bf-blender-cvs mailing list