Forum Discussion
marksibly
11 years agoHonored Guest
direct mode window/buffer size...
Hi, I'm a little confused about the direct mode window size. A note in oculusworldemo says: // In Direct App-rendered mode, we can use smaller window size, // as it can have its own contents an...
kojack
11 years agoMVP
I don't know about opengl, but in directx 11 there are four resolutions involved: the window resolution, the pre-distort render target resolution, the post-distort render target resolution and the oculus native resolution.
The pre-distort target is where we render the two eye images. This is typically around 1.5 times the oculus native res in order to have best image quality in the centre of vision.
The post-distort target is where the distorted result is rendered. It will typically be the same res as the rift.
The window on screen can be a smaller resolution, it down scales the post-distort target to whatever the window size is.
The post-distort target is also up or down scaled as needed to copy it to the oculus rift via Direct mode.
Normally when you make a window, the swap chain (the place it actually renders) is the same size. So a 1100x618 window means you are rendering at 1100x618. But they can be different, you can create the swap chain at a different resolution to the window, such as a 1100x618 window with 1920x1080 swap chain (swap chain down scales to the window). In the above case, the post-distort render target is the window's swap chain (the pre-distort target is just a render texture, it's never seen directly).
But as I said, no idea about opengl.
The pre-distort target is where we render the two eye images. This is typically around 1.5 times the oculus native res in order to have best image quality in the centre of vision.
The post-distort target is where the distorted result is rendered. It will typically be the same res as the rift.
The window on screen can be a smaller resolution, it down scales the post-distort target to whatever the window size is.
The post-distort target is also up or down scaled as needed to copy it to the oculus rift via Direct mode.
Normally when you make a window, the swap chain (the place it actually renders) is the same size. So a 1100x618 window means you are rendering at 1100x618. But they can be different, you can create the swap chain at a different resolution to the window, such as a 1100x618 window with 1920x1080 swap chain (swap chain down scales to the window). In the above case, the post-distort render target is the window's swap chain (the pre-distort target is just a render texture, it's never seen directly).
But as I said, no idea about opengl.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago
- 8 months ago
- 8 months ago