SceneGraph Class Reference#include <sceneGraph.h>
List of all members.
|
Public Member Functions |
| SceneGraph (bool isClient) |
| ~SceneGraph () |
U32 | getStateKey () |
LightManager * | getLightManager () |
void | setLightManager (LightManager *lm) |
F32 | getFogHeightOffset () |
F32 | getFogInvHeightRange () |
Sky * | getCurrentSky () |
TerrainBlock * | getCurrentTerrain () |
DecalManager * | getCurrentDecalManager () |
void | getWaterObjectList (SimpleQueryList &) |
GFXTexHandle & | getFogTexture () |
GFXTexHandle & | getBlackFogTexture () |
GFXTexHandle | getFogTextureIntensity () |
void | setReflectPass (bool isReflecting) |
bool | isReflectPass () |
void | initRender () |
| Init rendering dependent systems: render instance system, lighting system.
|
void | setNonClipProjection (MatrixF &proj) |
MatrixF | getNonClipProjection () |
GFXTexHandle & | getSfxBBCopy () |
GlowBuffer * | getGlowBuff () |
void | findZone (const Point3F &, SceneObject *&, U32 &) |
|
bool | addObjectToScene (SceneObject *) |
void | removeObjectFromScene (SceneObject *) |
void | zoneInsert (SceneObject *) |
void | zoneRemove (SceneObject *) |
|
void | registerZones (SceneObject *, U32 numZones) |
void | unregisterZones (SceneObject *) |
SceneObject * | getZoneOwner (const U32 zone) |
|
void | renderScene (const U32 objectMask=0xffffffff) |
void | scopeScene (const Point3F &scopePosition, const F32 scopeDistance, NetConnection *netConnection) |
|
For objects, valid only during the rendering cycle
|
const Point3F & | getBaseCameraPosition () const |
const Point3F & | getCurrCameraPosition () const |
|
ColorF | getFogColor () |
F32 | getFogDistance () |
F32 | getVisibleDistance () |
F32 | getFogDistanceMod () |
F32 | getVisibleDistanceMod () |
void | setFogDistance (F32 dist) |
void | setVisibleDistance (F32 dist) |
void | setFogColor (ColorF fogColor) |
void | setFogVolumes (U32 numFogVolumes, FogVolume *fogVolumes) |
void | getFogVolumes (U32 &numFogVolumes, FogVolume *&fogVolumes) |
void | buildFogTexture (SceneState *pState) |
void | getFogCoordPair (F32 dist, F32 z, F32 &x, F32 &y) |
F32 | getFogCoord (F32 dist, F32 z) |
|
Some rendering must be targeted at a specific display resolution. This display resolution is distinct from the current RT's size (such as when rendering a reflection to a texture, for instance) so we store the size at which we're going to display the results of the current render.
|
void | setDisplayTargetResolution (const Point2I &size) |
const Point2I & | getDisplayTargetResolution () const |
Static Public Member Functions |
static void | setLightingSystem (LightManager *lm) |
Public Attributes |
Point3F | mNormCamPos |
| This var is for cases where you need the "normal" camera position if you are in a reflection pass.
|
Static Public Attributes |
static F32 | smVisibleDistanceMod |
static bool | useSpecial |
static bool | renderFog |
Protected Member Functions |
void | addRefPoolBlock () |
SceneObjectRef * | allocateObjectRef () |
void | freeObjectRef (SceneObjectRef *) |
void | buildSceneTree (SceneState *, SceneObject *, const U32, const U32, const U32) |
void | traverseSceneTree (SceneState *pState) |
void | treeTraverseVisit (SceneObject *, SceneState *, const U32) |
void | compactZonesCheck () |
bool | alreadyManagingZones (SceneObject *) const |
void | rezoneObject (SceneObject *) |
void | addToWaterList (SceneObject *obj) |
void | removeFromWaterList (SceneObject *obj) |
Protected Attributes |
GFXTexHandle | mSfxBBCopy |
GFXTexHandle | mFogTexture |
GFXTexHandle | mBlackFogTexture |
GFXTexHandle | mFogTextureIntensity |
bool | mIsClient |
bool | mReflectPass |
MatrixF | mNonClipProj |
bool | mHazeArrayDirty |
F32 | mInvVisibleDistance |
F32 | mHeightRangeBase |
F32 | mHeightOffset |
F32 | mInvHeightRange |
U32 | mCurrZoneEnd |
U32 | mNumActiveZones |
Point3F | mBaseCameraPosition |
Point3F | mCurrCameraPosition |
U32 | mNumFogVolumes |
FogVolume | mFogVolumes [MaxFogVolumes] |
F32 | mFogDistance |
F32 | mVisibleDistance |
ColorF | mFogColor |
bool | mFogColorDirty |
LightManager * | mLightManager |
Sky * | mCurrSky |
TerrainBlock * | mCurrTerrain |
DecalManager * | mCurrDecalManager |
Vector< SceneObject * > | mWaterList |
GlowBuffer * | mGlowBuffer |
SceneObjectRef * | mFreeRefPool |
Vector< SceneObjectRef * > | mRefPoolBlocks |
Point2I | mDisplayTargetResolution |
Vector< ZoneManager > | mZoneManagers |
Vector< SceneObjectRef * > | mZoneLists |
| Zone Lists.
|
Static Protected Attributes |
static const U32 | csmMaxTraversalDepth |
static U32 | smStateKey |
static F32 | mHazeArray [FogTextureDistSize] |
static U32 | mHazeArrayi [FogTextureDistSize] |
static F32 | mDistArray [FogTextureDistSize] |
static const U32 | csmRefPoolBlockSize |
Private Member Functions |
void | setBaseCameraPosition (const Point3F &) |
void | setCurrCameraPosition (const Point3F &) |
Classes |
struct | ZoneManager |
Constructor & Destructor Documentation
SceneGraph::SceneGraph |
( |
bool |
isClient |
) |
|
SceneGraph::~SceneGraph |
( |
|
) |
|
Member Function Documentation
void SceneGraph::renderScene |
( |
const U32 |
objectMask = 0xffffffff |
) |
|
const Point3F & SceneGraph::getBaseCameraPosition |
( |
|
) |
const [inline] |
const Point3F & SceneGraph::getCurrCameraPosition |
( |
|
) |
const [inline] |
ColorF SceneGraph::getFogColor |
( |
|
) |
[inline] |
F32 SceneGraph::getFogDistance |
( |
|
) |
[inline] |
F32 SceneGraph::getVisibleDistance |
( |
|
) |
[inline] |
F32 SceneGraph::getFogDistanceMod |
( |
|
) |
[inline] |
F32 SceneGraph::getVisibleDistanceMod |
( |
|
) |
[inline] |
void SceneGraph::setFogDistance |
( |
F32 |
dist |
) |
|
void SceneGraph::setVisibleDistance |
( |
F32 |
dist |
) |
|
void SceneGraph::getFogVolumes |
( |
U32 & |
numFogVolumes, |
|
|
FogVolume *& |
fogVolumes | |
|
) |
| | [inline] |
F32 SceneGraph::getFogCoord |
( |
F32 |
dist, |
|
|
F32 |
z | |
|
) |
| | |
U32 SceneGraph::getStateKey |
( |
|
) |
[inline] |
void SceneGraph::setBaseCameraPosition |
( |
const Point3F & |
|
) |
[inline, private] |
void SceneGraph::setCurrCameraPosition |
( |
const Point3F & |
|
) |
[inline, private] |
void SceneGraph::addRefPoolBlock |
( |
|
) |
[protected] |
SceneObjectRef * SceneGraph::allocateObjectRef |
( |
|
) |
[inline, protected] |
void SceneGraph::setDisplayTargetResolution |
( |
const Point2I & |
size |
) |
|
const Point2I& SceneGraph::getDisplayTargetResolution |
( |
|
) |
const |
F32 SceneGraph::getFogHeightOffset |
( |
|
) |
[inline] |
F32 SceneGraph::getFogInvHeightRange |
( |
|
) |
[inline] |
Sky* SceneGraph::getCurrentSky |
( |
|
) |
[inline] |
DecalManager* SceneGraph::getCurrentDecalManager |
( |
|
) |
[inline] |
GFXTexHandle SceneGraph::getFogTextureIntensity |
( |
|
) |
[inline] |
void SceneGraph::setReflectPass |
( |
bool |
isReflecting |
) |
[inline] |
bool SceneGraph::isReflectPass |
( |
|
) |
[inline] |
void SceneGraph::initRender |
( |
|
) |
|
Init rendering dependent systems: render instance system, lighting system.
void SceneGraph::setNonClipProjection |
( |
MatrixF & |
proj |
) |
[inline] |
MatrixF SceneGraph::getNonClipProjection |
( |
|
) |
[inline] |
void SceneGraph::traverseSceneTree |
( |
SceneState * |
pState |
) |
[protected] |
void SceneGraph::compactZonesCheck |
( |
|
) |
[protected] |
Member Data Documentation
This var is for cases where you need the "normal" camera position if you are in a reflection pass.
Used for correct fog calculations in reflections.
Zone Lists.
- Note:
- The object refs in this are somewhat singular in that the object pointer does not point to a referenced object, but the owner of that zone...
|