Lightwave Object Loader


Release 1

This is a simple demo utility to load and view 3-D models created with Lightwave 6.0+ using OpenGL. It can rotate, zoom and pan with an option to view either a wireframe or solid polygon representation of the model. It supports UV texture maps in either Targa or JPEG formats.

The main purpose for this program is to demonstrate the LightwaveObject class, which is a lightweight representation of Lightwave LWO2 models and designed with an eye towards game development. The source code for the LightwaveObject loader and LightwaveObjectRenderer viewer classes are available below. Also included is the TextureLoader class which loads the texture files to apply to the models.

Features
  • For Windows 2000/XP/ME/98 (This is arguably a feature.)
  • Displays Lightwave LWO2 models using OpenGL
  • Texture maps in Targa or JPEG format supported
  • Rotate/Zoom/Pan in 5 degrees of freedom
  • Wireframe and Solid Polygon viewing modes
  • Detailed console output
  • Source Code Available
Restrictions
    Because the LightwaveObject class is a simplified subset of the LWO2 models, there are some restrictions in the format of the models.
  • All polygons in the models must be triangles (this is easy to do - go to Polygon > Triple).
  • The only supported texture mapping is UV mapping.
  • Texture maps must be in the same directory as the model, regardless of the path in the LWO2 object.
  • Release 1 - All models have to be in the same directory as the executable. This will be fixed.
Directions
  • Rotate - Drag with left mouse button
  • Zoom - Drag with right mouse button
  • Pan (horizontal) - Drag with left mouse button and Control key
  • Pan (vertical) - Drag with right mouse button and Control key
Download References See Also