Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RtLtMapLightingSession Struct Reference
[RtLtMap]

Collaboration diagram for RtLtMapLightingSession:

Collaboration graph

Data Fields

RpWorldworld
RwCameracamera
RpWorldSector ** sectorList
RwInt32 numSectors
RpAtomic ** atomicList
RwInt32 numAtomics
RwUInt32 totalSamples
RwUInt32 startObj
RwUInt32 numObj
RwUInt32 totalObj
RwUInt32 numTriNVert
RwUInt32 totalTriNVert
RwReal invTotalTriNVert
RwImagelightMapImg
RwTexturelightMap
rpLtMapSampleMap * sampleMap
RwUInt32 superSample
RtLtMapIlluminateSampleCallBack sampleCallBack
RtLtMapIlluminateVisCallBack visCallBack
RtLtMapIlluminateProgressCallBack progressCallBack

Detailed Description

The RtLtMapLightingSession structure holds information to be passed to RtLtMapIlluminate. It is used to parameterize the lighting process.

The RtLtMapLightingSession structure encapsulates a set of objects and keeps track of the proportion of samples, within that set, that have already been lit by calls to RtLtMapIlluminate. Each call performs lighting for one 'slice' of the whole 'session'. If the camera member is non-NULL, it is important that the camera is not moved between lighting slices.

The RtLtMapLightingSession is also passed to RtLtMapLightMapsCreate, RtLtMapLightMapsClear, RtLtMapLightMapsDestroy and RtLtMapAreaLightGroupCreate, though not all of the session structure's member will be used in each of these cases.

See also:
RtLtMapIlluminate , RtLtMapLightMapsCreate , RtLtMapLightMapsClear , RtLtMapLightMapsDestroy , RtLtMapAreaLightGroupCreate


Field Documentation

RpAtomic** atomicList
 

An optional array of RpAtomic pointers, specifying which atomics to light. If this is NULL then all atomics in the world (or those inside the optional camera's frustum) will be lit.

RwCamera* camera
 

An optional pointer to a camera. The camera's frustum may be used to cull objects and/or triangles from the set of those to be processed.

RwReal invTotalTriNVert
 

Internal use only.

RwTexture* lightMap
 

Internal use only.

RwImage* lightMapImg
 

Internal use only.

RwInt32 numAtomics
 

The length of the atomicList array. If this is set to '-1' then none of the atomics in the world will be lit.

RwUInt32 numObj
 

This specifies how many objects should be processed for the current slice. If it is set to zero, then all objects will be processed.

RwInt32 numSectors
 

The length of the sectorList array. If this is set to '-1' then none of the sectors in the world will be lit.

RwUInt32 numTriNVert
 

Internal use only.

RtLtMapIlluminateProgressCallBack progressCallBack
 

A RtLtMapIlluminateProgressCallBack to use during lighting. If this is left NULL, no progress callback will be used.

RtLtMapIlluminateSampleCallBack sampleCallBack
 

A RtLtMapIlluminateSampleCallBack to use during lighting. If this is left NULL, the default callback will be used.

rpLtMapSampleMap* sampleMap
 

Internal use only.

RpWorldSector** sectorList
 

An optional array of RpWorldSector pointers, specifying which sectors in the world to light. If this is NULL, then all sectors in the world (or those inside the optional camera's frustum) will be lit.

RwUInt32 startObj
 

Lighting for the current slice should begin with this object. It is the user's responsibility to increment this value after each slice to process the next slice of objects.

RwUInt32 superSample
 

This specifies the supersampling value for this current lighting session.

RwUInt32 totalObj
 

This specifies how many objects needs to be processed for the current session. Internal use only.

RwUInt32 totalSamples
 

This specifies how many lightmap samples will be lit in total for the world specified (this is filled in by RtLtMapIlluminate, not the calling function).

RwUInt32 totalTriNVert
 

Internal use only.

RtLtMapIlluminateVisCallBack visCallBack
 

A RtLtMapIlluminateVisCallBack to use during lighting. If this is left NULL, the default callback will be used.

RpWorld* world
 

This world is that in which collisions are performed during illumination (for the purposes of lighting visibility determination)


Criterion Software © 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:46:46 2004. Send Feedback