Navigation
API > API/Plugins > API/Plugins/DisplayCluster > API/Plugins/DisplayCluster/Render > API/Plugins/DisplayCluster/Render/Projection > API/Plugins/DisplayCluster/Render/Projection/IDisplayClusterProjectionPolicy
References
| Module | DisplayCluster |
| Header | /Engine/Plugins/Runtime/nDisplay/Source/DisplayCluster/Public/Render/Projection/IDisplayClusterProjectionPolicy.h |
| Include | #include "Render/Projection/IDisplayClusterProjectionPolicy.h" |
bool CalculateView
(
IDisplayClusterViewport * InViewport,
const uint32 InContextNum,
FVector & InOutViewLocation,
FRotator & InOutViewRotation,
const FVector & ViewOffset,
const float WorldToMeters,
const float NCP,
const float FCP
)
Remarks
Calculate view projection data
- True if success
Parameters
| Name | Description |
|---|---|
| InViewport | a owner viewport |
| ViewIdx | Index of view that is being processed for this viewport |
| InOutViewLocation | (in/out) View location with ViewOffset (i.e. left eye pre-computed location) |
| InOutViewRotation | (in/out) View rotation |
| ViewOffset | Offset applied ot a camera location that gives us InOutViewLocation (i.e. right offset in world to compute right eye location) |
| WorldToMeters | Current world scale (units (cm) in meter) |
| NCP | Distance to the near clipping plane |
| FCP | Distance to the far clipping plane |