nw::demo::Utility::CreateStereoCameras Member Function
static void CreateStereoCameras(
nw::gfx::Camera ** ppBaseCamera,
nw::gfx::Camera ** ppLeftCamera,
nw::gfx::Camera ** ppRightCamera,
os::IAllocator * allocator,
const nw::math::VEC3 & cameraPosition = CAMERA_POSITION,
const nw::math::VEC3 & targetPosition = TARGET_POSITION,
f32 nearClip = NEAR_CLIP,
f32 farClip = FAR_CLIP,
f32 fovyRadian = FOVY_RADIAN,
f32 wScale = 0.0f
);
| Name | Description | |
|---|---|---|
| out | ppBaseCamera | Pointer for returning the created base camera. |
| out | ppLeftCamera | Pointer for returning the created right-eye camera. |
| out | ppRightCamera | Pointer for returning the created left-eye camera. |
| in | allocator | Allocator used for generation. |
| in | cameraPosition |
Camera position coordinates. |
| in | targetPosition | Camera target coordinates. |
| in | nearClip | Near clip value. |
| in | farClip | Far clip value. |
| in | fovyRadian | FOV Y direction value. |
| in | wScale | wScale value. |
Creates the base camera and the right/left eye cameras for stereoscopic vision.
There is no actual distinction made between the right-eye camera and the left-eye camera.
CONFIDENTIAL