Introduction
LWOB is the original object format of LightWave 3D, written by LightWave up to version 5. It was documented by LightWave’s authors, Allen Hastings and Stuart Ferguson, whose description was last revised in November 1994. A file holds one object: its points, the polygons and curves made from them, and the surfaces that colour and shade them.
LightWave 6 replaced it with LWO2, which keeps the same extension but changes almost every chunk.
Structure
An LWOB file is an IFF file: one big-endian FORM chunk whose form type
is LWOB, holding further chunks. It must contain a PNTS
chunk (point positions), an SRFS chunk (surface names) and a
POLS chunk (polygons), and may contain any number of SURF
chunks (surface settings) and at most one CRVS chunk (spline curves).
POLS and CRVS must come after PNTS and
SRFS. A file holding only SURF chunks is a saved surface
description.
0FORM chunk ID, length, form typeLWOB12 bytes12PNTS point positions12 bytes each…SRFS surface namesvaries…POLS polygons, and optionally CRVS curvesvaries…SURF one per surfacevaries
In this reference
- Geometry chunks – the FORM, PNTS, SRFS, POLS with detail polygons, and CRVS, with an annotated example file
- Surfaces – the SURF chunk and every sub-chunk: colour, flags, shading levels, reflection, textures
Not described
What the LWOB reference and the viewer here leave out.
Known, not yet covered
- Viewer: applying surface flags, shading levels, reflection and transparency, which the NewTek description defines; only the surface colour is drawn, and the rest is listed in a table (Surfaces).
- Viewer: textures, which the description and Assimp’s LWOB loader define; they are named in a table and never loaded or drawn.
- Reference: the IDs
VLUM,VDIF,VSPC,RFLT,TAAS,TREF,TOPCandTFP0,TFP1appear in Assimp’s list of LWOB chunks, but Assimp skips them and gives no meaning.
Unknown
- Reference: the meanings of the sub-chunks found in real files and missing from the description (
VLUM,VDIF,VSPC,VRFL,VTRN,RFLT,ALPH,TREF,TALP,TAAS,TOPC,TIP0,TFP0toTFP3); the layouts come from real files and the meanings are inferred (list). - Reference and viewer:
IMSQ(three shorts) and the top-levelPCHSchunk (aPOLSlayout); the viewer decodes the fields as labelled values and countsPCHSpatches without drawing them. - Reference and viewer: the
LWLOlayered form of LightWave 5.5: no source or file was found, and the viewer does not open it.
Variants
- LightWave object (LWOB) – the original form, written by LightWave 5 and earlier
- LightWave object (LWO2) – the form from LightWave 6 on, with layers, vertex maps and surface blocks
- LightWave object (LWO3) – the form from LightWave 2015 on, read by the LWO2 rules
Links
Software
- LightWave 3D – the modelling and animation package, which still reads LWOB files (Windows, macOS)
Developers
- Assimp – library that imports dozens of 3D formats, LWOB, LWO2 and LWO3 among them (C++, BSD licence). Its LWO importer and test files were used to check this reference
Reference
- LightWave 3D object file format – Allen Hastings and Stuart Ferguson’s description of LWOB, revised 28 November 1994