This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

LWO (.lwo)

MIME type: image/x-lwo
LightWave 3D object file format.
Native format of the LightWave 3D rendering and animation software.
LWO is an acronym for LightWave Object.
Developed by NewTek.
Binary format.
Stores 3D objects as a collections of polygons and their properties.
  • Import and Export are fully compatible with the LWO2 format.
  • Import and Export support the point, line, and polygon content of LWO2 files. Import also reads LWO2 patch data.
  • The vertices are given as a list of coordinates, and the polygons are represented as integer indices taken to be the corresponding vertices.
  • Import imports the specified element from an LWO file.
  • Import imports multiple elements.
  • Export creates an LWO file by treating expr as specifying element elem.
  • Export treats each as specifying the corresponding .
  • Export exports expr with the specified option elements taken to have the specified values.
  • Export uses rules to specify the elements to be exported.
  • See the reference pages for full general information on Import and Export.
"Elements"list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties, and settings
  • Data representation elements:
"Graphics3D"LWO file represented as a Graphics3D object
"GraphicsComplex"LWO file given as a GraphicsComplex object
"PolygonData"list of polygon indices, referencing the vertices given by
"VertexData"list of vertex coordinates
"PointObjects"list of Point primitives specified with absolute coordinates
"LineObjects"list of Line primitives specified with absolute coordinates
"PolygonObjects"list of Polygon primitives specified with absolute coordinates
BackgroundAutomaticwhat background color to use
ImageSizeAutomaticoverall size of the graphics to display
LightingAutomaticwhat simulated lighting to use in coloring 3D surfaces
  • All options of Graphics3D can be given when importing from LWO.
  • Advanced options:
"VerticalAxis"{0,0,1}orientation to assume for the coordinate system used in the file
  • By default, Mathematica assumes that in the coordinate system used by LWO the vertical axis corresponds to the third coordinate.
  • With the setting , Mathematica will apply the transformation to all graphics coordinates when importing from LWO, and the inverse transformation when exporting to LWO.
Import an LWO example file:
Create a solid 3D object using RegionPlot3D:
Export the previous output to LWO:
Import an LWO example file:
In[1]:=
Click for copyable input
Out[1]=
 
Create a solid 3D object using RegionPlot3D:
In[1]:=
Click for copyable input
Out[1]=
Export the previous output to LWO:
In[2]:=
Click for copyable input
Out[2]=