Introduction
3DS is the scene format of 3D Studio, Autodesk’s modelling and animation program for MS-DOS, first released in 1990 and later replaced by 3ds Max. It holds triangle meshes with texture coordinates, materials, lights, cameras and keyframe animation. Long after the DOS program, it stayed a common way to swap models between programs, and many old model libraries are in this format.
The format has tight limits from its time: each mesh holds at most 65,535 vertices and faces, because the counts are 16-bit, and texture file names follow the short MS-DOS 8.3 pattern. Autodesk never published it openly; what is known comes from studying the files, and some chunks are still not understood.
Structure
A 3DS file is binary and little-endian, built from nested chunks. Each chunk starts
with a 16-bit ID and a 32-bit length that includes its own 6-byte header, so a reader
can skip any chunk it does not know. The whole file is one main chunk,
0x4D4D. Inside it, the editor chunk 0x3D3D holds materials
(0xAFFF) and named objects (0x4000). A triangle mesh
(0x4100) contains the vertex list (0x4110), the face list
(0x4120) and the texture coordinates (0x4140). Keyframe
animation sits in a separate chunk, 0xB000.
00x4D4D main chunk, the whole file6-byte header…0x3D3D editor: materials and objectsvaries…0xAFFF material: name, colours, texture mapsvaries…0x4000 object: name, then a mesh, light or cameravaries
…0xB000 keyframer: animation tracksvaries
In this reference
- Chunks and data types – the chunk header, data types, colour and percentage chunks, related files, and an index of every chunk ID
- Scene settings – mesh version, units, shadows, background, ambient light, fog and the viewport chunks
- Objects and meshes – named objects and their flags, vertices, faces, material and smoothing groups, texture coordinates and the local coordinate system
- Materials and maps – colours, shading, material flags, the texture maps and masks and their options
- Lights and cameras – omni lights, spotlights and their settings, and cameras
- Keyframer – nodes, hierarchy, tracks and keys
Not described
Autodesk never published the 3DS format. These pages follow the reverse-engineered documents (Paul Bourke’s notes, 3dsinfo and Assimp’s source). The explorer has no 3DS viewer, so a dropped file shows as bytes.
Known, not yet covered
- Reference:
lib3ds, which would settle the shading values ofA100and the tiling bits ofA351; it was not read. - Viewer: there is no 3DS plugin.
Unknown
- Reference: the data of chunks
1430,1440,3090,7000,7010,7011,7030,4181,4182,A08A,A252and4625, the shaper and lofter chunks (5000,6000), the file types2D2D,2D3Dand3DFF, and 8 unknown track bytes. - Reference: where the sources conflict, which the pages note: the meaning of the gamma chunks
0011and0012, the order ofA354andA356, and the track flag bits.
Links
Software
- Autodesk 3ds Max – the successor to 3D Studio, which imports and exports 3DS (Windows)
- Blender – free open source 3D suite, which reads and writes 3DS through its add-on (Windows, macOS, Linux)
- MeshLab – free open source mesh viewer and editor (Windows, macOS, Linux)
Developers
- Assimp – library that imports dozens of 3D formats, 3DS among them (C++)
Reference
- 3dsinfo.txt – a reverse-engineered description of the chunk tree, materials and tracks, kept by scene.org
- 3DS file format – Paul Bourke’s collection of 3DS notes