Game Development Reference
In-Depth Information
FirstFrame 1
LastFrame 60
FrameStep 1
PreviewFirstFrame 0
PreviewLastFrame 60
PreviewFrameStep 1
CurrentFrame 50
FramesPerSecond 25
Reading an object layer section
The objects that are used in a file are defined using 'LoadObjectLayer'.
Since a single object can contain multiple layers, the integer value
following the 'LoadObjectLayer' declaration defines which of these layers
to load where multiple layers are present.
LoadObjectLayer 1 Objects/UnitCube.lwo
The remainder of the line is a path from the content directory to the
object file. When parsing the scene file you would now need to load and
parse this file to get at the object geometry and surface data. In the next
chapter we will look at the way 3DS approaches the same problem and
discover that 3DS chooses to store everything in a single file.
ShowObject 6 3
This next line declares the object visibility inside the application.
Lightwave allows the animator to view an object as wireframe, smooth
shaded or textured, or turn off the object's visibility altogether. When
creating animations this is a useful feature since it improves update
performance and can remove some clutter from the display when editing.
The second of the two integer values defines the wireframe colour from a
limited set of colours that Lightwave uses for objects displayed in
wireframe format.
NumChannels 9
Channel 0
Search Nedrilad ::

Custom Search