org.ogre4j
Interface IPSSMShadowCameraSetup

All Superinterfaces:
IAllocatedObject<ISceneCtlAllocPolicy>, IFocusedShadowCameraSetup, ILiSPSMShadowCameraSetup, INativeObject, ISceneCtlAllocatedObject, IShadowCameraSetup
All Known Implementing Classes:
PSSMShadowCameraSetup

public interface IPSSMShadowCameraSetup
extends INativeObject, ILiSPSMShadowCameraSetup


Nested Class Summary
static interface IPSSMShadowCameraSetup.IOptimalAdjustFactorList
           
static interface IPSSMShadowCameraSetup.ISplitPointList
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IFocusedShadowCameraSetup
IFocusedShadowCameraSetup.IPointListBody
 
Method Summary
 void calculateSplitPoints(int splitCount, float nearDist, float farDist, float lambda)
          Calculate a new splitting scheme.
 float getOptimalAdjustFactor()
          Get the parameter n used to produce optimal shadows.
 float getOptimalAdjustFactor(int splitIndex)
           
 void getShadowCamera(ISceneManager sm, ICamera cam, IViewport vp, ILight light, ICamera texCam, int iteration)
          Returns a LiSPSM shadow camera.
 int getSplitCount()
           
 float getSplitPadding()
          Get the padding factor to apply to the near & far distances when matching up splits to one another, to avoid 'cracks'.
 IPSSMShadowCameraSetup.ISplitPointList getSplitPoints()
           
 void setOptimalAdjustFactor(int splitIndex, float factor)
          Set the LiSPSM optimal adjust factor for a given split (call after configuring splits).
 void setSplitPadding(float pad)
          Set the padding factor to apply to the near & far distances when matching up splits to one another, to avoid 'cracks'.
 void setSplitPoints(IPSSMShadowCameraSetup.ISplitPointList newSplitPoints)
          Manually configure a new splitting scheme.
 
Methods inherited from interface org.ogre4j.ILiSPSMShadowCameraSetup
getUseSimpleOptimalAdjust, setOptimalAdjustFactor, setUseSimpleOptimalAdjust
 
Methods inherited from interface org.ogre4j.IFocusedShadowCameraSetup
getUseAggressiveFocusRegion, setUseAggressiveFocusRegion
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

calculateSplitPoints

void calculateSplitPoints(int splitCount,
                          float nearDist,
                          float farDist,
                          float lambda)
Calculate a new splitting scheme.


setSplitPoints

void setSplitPoints(IPSSMShadowCameraSetup.ISplitPointList newSplitPoints)
Manually configure a new splitting scheme.


setOptimalAdjustFactor

void setOptimalAdjustFactor(int splitIndex,
                            float factor)
Set the LiSPSM optimal adjust factor for a given split (call after configuring splits).


setSplitPadding

void setSplitPadding(float pad)
Set the padding factor to apply to the near & far distances when matching up splits to one another, to avoid 'cracks'.


getSplitPadding

float getSplitPadding()
Get the padding factor to apply to the near & far distances when matching up splits to one another, to avoid 'cracks'.


getSplitCount

int getSplitCount()

getShadowCamera

void getShadowCamera(ISceneManager sm,
                     ICamera cam,
                     IViewport vp,
                     ILight light,
                     ICamera texCam,
                     int iteration)
Description copied from interface: ILiSPSMShadowCameraSetup
Returns a LiSPSM shadow camera.

Specified by:
getShadowCamera in interface IFocusedShadowCameraSetup
Specified by:
getShadowCamera in interface ILiSPSMShadowCameraSetup
Specified by:
getShadowCamera in interface IShadowCameraSetup

getSplitPoints

IPSSMShadowCameraSetup.ISplitPointList getSplitPoints()

getOptimalAdjustFactor

float getOptimalAdjustFactor(int splitIndex)

getOptimalAdjustFactor

float getOptimalAdjustFactor()
Description copied from interface: ILiSPSMShadowCameraSetup
Get the parameter n used to produce optimal shadows.

Specified by:
getOptimalAdjustFactor in interface ILiSPSMShadowCameraSetup


Copyright © 2007 netAllied GmbH. All Rights Reserved.