Code for applying distortion
Hi all,
my C++ and DirectX knowledge is very limited, so I have a hard time coming to grips with the rendering part of the SDK.
For now I'd like to create a simple stereo viewer. Load 2 images (left eye and right eye), distort them properly and combine them into the one image for the Rift.
The issue is: I dont know how to apply the distortion filter (do I need to use Direct3D or can I apply the filter to a 2D image?). Can anyone provide some (simple) sample code of loading a texture and distorting it for the rift? The SDK code is not simple and all embedded in actual scene rendering code. C# would be best (if possible). C++ could also work.
Cheers
my C++ and DirectX knowledge is very limited, so I have a hard time coming to grips with the rendering part of the SDK.
For now I'd like to create a simple stereo viewer. Load 2 images (left eye and right eye), distort them properly and combine them into the one image for the Rift.
The issue is: I dont know how to apply the distortion filter (do I need to use Direct3D or can I apply the filter to a 2D image?). Can anyone provide some (simple) sample code of loading a texture and distorting it for the rift? The SDK code is not simple and all embedded in actual scene rendering code. C# would be best (if possible). C++ could also work.
Cheers
