In LightWave a surface is a named set of colour and shading settings shared by a
group of polygons. Each SURF chunk describes one surface: it starts with
the surface’s name, ending in one or two zero bytes as in
SRFS, followed by sub-chunks up to the
end of the chunk. A sub-chunk is like a chunk, but its length is a 2-byte short.
Unknown sub-chunks are skipped.
Basic settings
| ID | Data | Meaning |
|---|---|---|
COLR | 4 bytes | Red, green, blue (0 to 255) and a byte that is ignored and should be 0 |
FLAG | short | Surface options; see below |
LUMI | short | Luminosity; 256 is 100%. New in LightWave 3.0, replacing the Luminous flag |
DIFF | short | Diffuse level; 256 is 100% |
SPEC | short | Specular level; 256 is 100% |
REFL | short | Reflection level; 256 is 100% |
TRAN | short | Transparency; 256 is 100% |
GLOS | short | Glossiness, needed only when SPEC is not 0: 16 low, 64 medium, 256 high, 1024 maximum (new in 3.0). It acts as a specular exponent |
RIMG | string | File name of the reflection map image, with its path |
RSAN | float | Heading of the reflection map’s seam, in degrees. New in 3.0 |
RIND | float | Refractive index, 1.0 or more |
EDGE | float | Edge transparency threshold, 0.0 to 1.0 |
SMAN | float | Largest angle between neighbouring polygons that is shaded smoothly, in degrees. New in 3.0 |
A missing LUMI, DIFF, SPEC, REFL or TRAN counts as 0. When REFL is not 0 but there
is no RIMG, the surface reflects the backdrop, or uses ray-traced reflection when
ray tracing is on. A file name ending in “ (sequence)” is the prefix of an
image sequence, to which LightWave adds a three-digit frame number.
FLAG bits
| Bit | Value | Option |
|---|---|---|
| 0 | 0x001 | Luminous |
| 1 | 0x002 | Outline |
| 2 | 0x004 | Smoothing |
| 3 | 0x008 | Colour highlights |
| 4 | 0x010 | Colour filter |
| 5 | 0x020 | Opaque edge |
| 6 | 0x040 | Transparent edge |
| 7 | 0x080 | Sharp terminator |
| 8 | 0x100 | Double sided |
| 9 | 0x200 | Additive (new in LightWave 3.0) |
| 10 | 0x400 | Shadow alpha (listed last by the LightWave 5.6 description) |
The two edge transparency bits should not both be set. The luminous bit is overridden by
LUMI or VLUM; with neither, the luminous bit means 100% luminosity.
The description (LightWave 5.6 version, read 2026-11-18) says only the nine lowest bits are
used, then lists eleven options, so its own count is out by two; this table follows the list.
Textures
A surface may have up to six textures, one of each kind. Each starts with a
sub-chunk naming the texture type as shown on LightWave’s control panel, for example
Planar Image Map or Fractal Bumps; every texture sub-chunk
after it belongs to that texture until the next one starts.
| ID | Starts a texture for |
|---|---|
CTEX | Colour |
DTEX | Diffuse |
STEX | Specular |
RTEX | Reflection |
TTEX | Transparency |
BTEX | Bump |
LTEX | Luminosity (not in the description; seen in real files) |
| ID | Data | Meaning |
|---|---|---|
TIMG | string | Image file, or image sequence prefix, for an image map |
TFLG | short | Texture options: bit 0 X axis, 1 Y axis, 2 Z axis (only one of the three), 3 world coordinates, 4 negative image, 5 pixel blending, 6 antialiasing |
TSIZ | 3 floats | Texture size in x, y, z |
TCTR | 3 floats | Texture centre; only needed when not 0 |
TFAL | 3 floats | Falloff; only needed when not 0 |
TVEL | 3 floats | Velocity; only needed when not 0 |
TCLR | 4 bytes | Texture colour, as in COLR, for colour textures |
TVAL | short | Texture value for diffuse, specular, reflection or transparency textures; 256 is 100% |
TAMP | float | Bump amplitude; 1.0 is 100% |
TFRQ | short | Number of noise frequencies or wave sources |
TSP0, TSP1, TSP2 | float | Texture-specific parameters, such as contrast, turbulence or wavelength, in the order their buttons appear on the control panel |
Sub-chunks found in real files
Real LightWave 5 objects hold sub-chunks that the earlier description does not list.
On 2026-11-18 the LightWave 5.6 version of the description (a copy of the format document on
oocities.org) was read, and it documents most of them: the table says which. They were first
read from the files themselves (the 638 distinct .lwo
objects of a LightWave CD, plus five LWOB files in Assimp’s test set). Counts are the number of
SURF chunks that hold it, out of 2,241 in the CD files.
| ID | Data | Seen in | What it appears to be |
|---|---|---|---|
VDIF | float (FP4) | 2,076 | Documented (5.6): the diffuse level as a fraction, the floating-point form of DIFF; it takes precedence when both are present. (An earlier reading here as a “vertex-map share” was wrong.) |
VSPC | float (FP4) | 1,292 | Documented: the same for the specular level (SPEC) |
VLUM | float (FP4) | 158 | Documented: the same for luminosity (LUMI) |
VRFL | float (FP4) | 409 | Documented: the same for reflection (REFL) |
VTRN | float (FP4) | 107 | Documented: the same for transparency (TRAN) |
RFLT | U2 | 412 | Documented: the reflection mode, 0 backdrop only, 1 ray tracing and backdrop, 2 spherical map, 3 ray tracing and spherical map; 3 when missing |
ALPH | 2 shorts | some | Not in either description: alpha mode and value (2 and 255 in the file seen) |
TIP0 to TIP3 | I2 | 529 | Documented: integer texture parameters (TIPn); TFRQ is the obsolete TIP0 |
TFP0 to TFP3 | float | 607, 103, 66, 37 | Documented: float texture parameters in the order of the control panel’s buttons (LightWave 5.0 has four); TSP0 to TSP2 are the obsolete form |
TREF | short | some | Not in either description: 0 in the file seen |
TALP | file name (FNAM0) | some | Documented: the image used as the texture’s alpha map. One real file (Assimp’s bluewithcylindrictexz.lwo) writes 4 bytes, two shorts 3 and 2, that are not a name |
TAAS, TOPC | float (FP4) | some | Documented: the texture’s antialiasing strength (100% when missing with the antialiasing bit set) and opacity (100% when missing) |
TWRP | 2 × U2 | none | Documented: width and height wrap of an image texture: 0 black, 1 clamp to the edge, 2 repeat (when missing), 3 mirror |
IMSQ | 3 × U2 | 1 | Documented: image sequence options, offset, flags (bit 0 loops, bit 1 interlaced fields), loop length (0, 0, 30 in the one file) |
FLYR | 2 × U4 | none | Documented: begin and end of a Flyer clip, in Flyer timecode format |
IMCC | 3 × U2 | none | Documented: colour cycling of a colour-mapped image: speed (+1, -1 or 0 to ignore), low and high index |
SHDR, SDAT | name; bytes | none | Documented: a plug-in shader (up to four, applied after built-in textures) and its own data, up to 65,535 bytes |
A top-level PCHS chunk, in 6 files (LightWave’s MetaNURBS objects), holds
polygons in exactly the form of POLS: a vertex count, the vertices and a
surface number each. The viewer lists them and does not draw them, because the
POLS beside them are what the object renders as.
Example
In the description’s example, the “Triangle” surface is:
SURF 0x0044 "Triangle"
COLR 4 F0 B4 00 00 yellow: red 240, green 180, blue 0
FLAG 2 00 00
DIFF 2 00 9A 154 of 256, about 60%
SPEC 2 00 CD 205 of 256, 80%
GLOS 2 01 00 256, high glossiness
REFL 2 00 33 51 of 256, 20%, reflecting the backdrop
TRAN 2 00 66 102 of 256, 40%
Not described
What this page and the viewer here leave out about LWOB surfaces.
Known, not yet covered
- Viewer: applying flags, shading levels, reflection and transparency, defined in the NewTek description; they are shown in tables, and only
COLRis drawn, as a flat colour. - Viewer: textures, defined in the description and in Assimp’s LWOB loader; images are named in a table, never loaded, so no texture is drawn.
Unknown
- Reference: the meanings of
ALPHandTREF, in neither description (layouts from real files, shown as labelled fields); and why one real file writes 4 bytes inTALPwhere the 5.6 description has a file name. - Reference: the description’s “nine lowest bits are used” against its list of eleven options; this page follows the list.