13 #include <osg/Matrixf>
76 : isModelScalingEnabled(true)
80 , basePositionDirty(false)
81 , baseOrientationDirty(false)
82 , positionOffsetDirty(false)
83 , orientationOffsetDirty(false)
osg::Vec3d positionOffset
The offset to apply to the base position to determine InstanceCullData::l2wPos.
Definition: DtInstanceState.h:140
osg::Vec3d l2wPos
Important! l2wPos is not valid until updateOffsetsAndDistancesToEye() has been called.
Definition: DtInstanceState.h:54
bool baseOrientationDirty
A new orientation was set this frame.
Definition: DtInstanceState.h:151
float scale
the individual scale from the model definition
Definition: DtInstanceState.h:129
bool isProp
Definition: DtInstanceState.h:65
osg::Vec3f colorFilter
Colorization.
Definition: DtInstanceState.h:93
float boundingRadius
Definition: DtInstanceState.h:56
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
unsigned short cullDataOffset
Array offset to per-instance cull data.
Definition: DtInstanceState.h:96
osg::Matrixf l2wOri
Local to world orientation matrix.
Definition: DtInstanceState.h:90
ArrayRange uvOffsetRange
Range of UV offsets in this instance.
Definition: DtInstanceState.h:117
unsigned int nodeMask
Definition: DtInstanceState.h:58
ArrayRange sequenceRange
Range of instanced sequences in this instance.
Definition: DtInstanceState.h:105
osg::Matrixf orientationOffset
The current orientation offset to apply to the baseOrientation to determine l2wOri.
Definition: DtInstanceState.h:154
bool positionOffsetDirty
If the base position or the position offset have changed or the base orientation have changed...
Definition: DtInstanceState.h:145
bool basePositionDirty
If the base position or the position offset have changed or the base orientation have changed...
Definition: DtInstanceState.h:137
unsigned int count
Number of drawables in the range.
Definition: DtInstanceState.h:42
bool isModelScalingEnabled
Model scaling for the instance.
Definition: DtInstanceState.h:126
Specifies a range of drawables in the drawable array.
Definition: DtInstanceState.h:20
unsigned short templateIndex
Index to instance template data for this instance.
Definition: DtInstanceState.h:123
osg::Matrixf InstanceMatrix
Type of osg matrix to use for transforms relative to instance base.
Definition: DtInstanceState.h:46
ArrayRange(unsigned _offset, unsigned _count)
CTOR.
Definition: DtInstanceState.h:23
float InstanceMatrixVal
Definition: DtInstanceState.h:47
ArrayRange dofRange
Range of instanced DOF nodes in this instance.
Definition: DtInstanceState.h:99
Per-instance culling parameters.
Definition: DtInstanceState.h:51
osg::Vec3f boundingCenter
Definition: DtInstanceState.h:55
ArrayRange lightPointRange
Range of light points in this instance.
Definition: DtInstanceState.h:120
ArrayRange switchRange
Range of instanced switches in this instance.
Definition: DtInstanceState.h:102
ArrayRange lodRange
Range of LODs in this instance.
Definition: DtInstanceState.h:111
float intersectBoundingRadius
Definition: DtInstanceState.h:57
osg::Matrixf baseOrientation
base Local to world orientation matrix
Definition: DtInstanceState.h:148
Contains DLL export macros.
short modelSet
Definition: DtInstanceState.h:59
ArrayRange drawableRange
Range of drawables in this instance.
Definition: DtInstanceState.h:108
unsigned short templateIndex
Index to instance template data for this instance.
Definition: DtInstanceState.h:62
voidpf uLong offset
Definition: ioapi.h:42
bool visible
Definition: DtInstanceState.h:64
bool orientationOffsetDirty
A new orientationOffset was set this frame.
Definition: DtInstanceState.h:157
DtInstanceState()
CTOR.
Definition: DtInstanceState.h:75
ArrayRange()
CTOR.
Definition: DtInstanceState.h:31
osg::Vec3d basePosition
The position of the instance before application of the offset.
Definition: DtInstanceState.h:132
unsigned int offset
Offset into the drawable array.
Definition: DtInstanceState.h:39
Per-instance state information.
Definition: DtInstanceState.h:70
ArrayRange lightRange
Range of light sources in this instance.
Definition: DtInstanceState.h:114