Introduction | Index
Light Node
Represents a light source.

Syntax:

node light [node_name]

     Properties

endnode

Description:

There are a large number of light properties. Some of these properties are unknown and there may be more.

Properties:

parent [node_name] - the parent node in the tree. All nodes have this property. Top level nodes use NULL.

The following three properties are optional:

position [X] [Y] [Z] - The position in 3d space of this node.

orientation [X-Axis] [Y-Axis] [Z-Axis] [rotation_ammount] - the node is rotated around the axis given in x,y,z

wirecolor [red] [green] [blue] - This probably defines the color for the object's wireframe.

color [red] [green] [blue] - The color of the light source.

radius [float] - Probably the range of the light.

ambientonly [0|1] - This controls if the light is only an ambient lightsource or if it is directional as well.

isDynamic [0|1] - Unknown.

affectDynamic [0|1] - Unknown.

lightpriority [??] - Unknown. I'm not sure what this does, but a reasonable guess would be it controls when the lightsource casts a shadow. We know that in NWN only the strongest lightsource in an area casts shadows, this may be the value that determines that. Or it could be a flag of some kind.

shadow [0|1] - Probably determines if this light is capable of casting shadows.

lensflares [0|1] - Possibly causes the light source to produce a lens flare effect, sounds cool anyway.

fadingLight [0|1] - Unknown. Might activate some kind of distance fall off for the light. Or it could do just about anything.


Introduction | Index

Document URL: http://www.wnwn.net/mdl/

Worlds of NeverWinter: http://www.wnwn.net/

This document is not supported by Bioware and should not be taken as an official specification for the NWN model format. It is based on my own experiments with the model viewer and speculations by others in the NWN community. There may be errors or omissions in this document, if you find any please let me know at: sorcerer@wnwn.net. The format may also change before the game is released. Finally I would like to thank the great community on the bioware forum for their contributions to this project.