-
Notifications
You must be signed in to change notification settings - Fork 242
Stereo3D
Stereo3DMatrixHelper.h/.cpp
contains a prototype set of functions for creating Stereo 3D projections. It was never fully validated or completed, but might be a useful starting point.
This function filled out a default STEREO_PARAMETERS
which you could then modify before passing on to the other functions.
void StereoCreateDefaultParameters(_Out_ STEREO_PARAMETERS* pStereoParameters);
These functions compute the stereo projection matrices. You'd call it twice, once for STEREO_CHANNEL_LEFT
and once for STEREO_CHANNEL_RIGHT
to get two matrices. If you pass nullptr
for the pStereoParameters
parameter, you get the values obtained from StereoCreateDefaultParameters
.
XMMATRIX StereoProjectionFovLH(_In_opt_ const STEREO_PARAMETERS* pStereoParameters,
STEREO_CHANNEL Channel, float FovAngleY, float AspectRatio,
float NearZ, float FarZ, STEREO_MODE StereoMode);
XMMATRIX StereoProjectionFovRH(_In_opt_ const STEREO_PARAMETERS* pStereoParameters,
STEREO_CHANNEL Channel, float FovAngleY, float AspectRatio,
float NearZ, float FarZ, STEREO_MODE StereoMode);
All content and source code for this package are subject to the terms of the MIT License.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
- Universal Windows Platform apps
- Windows desktop apps
- Windows 11
- Windows 10
- Windows 8.1
- Xbox One
- Xbox Series X|S
- Windows Subsystem for Linux
- x86
- x64
- ARM64
- Visual Studio 2022
- Visual Studio 2019 (16.11)
- clang/LLVM v12 - v18
- GCC 10.5, 11.4, 12.3
- MinGW 12.2, 13.2
- Intel Classic Compiler
- Intel oneAPI Compiler
DirectX Tool Kit for DirectX 11