Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderForm in Fullscreen #3

Open
fabienchalas opened this issue Nov 9, 2017 · 1 comment
Open

RenderForm in Fullscreen #3

fabienchalas opened this issue Nov 9, 2017 · 1 comment

Comments

@fabienchalas
Copy link

Starting with the DX11 Demo, i'm trying to render the MirrorTexture by RenderForm in fullscreen mode (by setting "Windowed" Property in SwapChain description to false).
But it does not work, the content of the mirror is not shown in fullscreen, the display stays dark.
The scene/cube is only visible in the Oculus device.
What is the correct way to render the mirror in fullscreen?

@ab4d
Copy link
Collaborator

ab4d commented Nov 11, 2017

I managed to start the demo in full screen with adding the following code before the rendering loop starts:

form.IsFullscreen = true;

form.Show();
swapChain.SetFullscreenState(true, null);

But I am not an expert for using DirectX in Windows forms, so I cannot say if this is the optimal way to do that; especially when showing Oculus mirrored image - usually you should set the size of render targets to size of the screen, but with Oculus render target the resolution is probably fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant