I need to develop an augmented reality application using vuforia, and now that it supports UWP I think is possible to use this library for a windows pc application, but when I change my unity project for windows store on build settings I notice that multiple displays support doesn’t appear to be found. My application needs to be displayed on two monitors where on one monitor is the augmented content and on the other is some kind of gui interaction.
So my question is how can I support multiple displays in UWP
You could theoretically create a new CoreApplicationView, create a new swapchain for that, render all your stuff of the second monitor to a render texture in Unity, then call GetNativeTexturePtr on it and then blit it to the second window swapchain.
Ok, It is sad that this can’t be done in a built in way, I will try the other method that you mention, just I need to investigate a little further on how to do what you mention.
Thanks for the tip.
On the MainPage.xaml.cs file I’m trying to implement this like on the link mention, but I don’t know how to pass the texture of the camera to this new window. Maybe I’m doing this wrong, maybe I need to compile first a plugin with this new windows and then on unity import it and pass the texture to a method that has this new window.
But I’m not sure how to proceed, I tried to search on the web for examples and tips but without success.
ok, thanks I will check the links you provide.
This is the first time I try to develop a plugin for unity, so it will be a little challenging but I hope is not that hard.
We’re trying to achieve something similar using UWP and clever graphics API tricks to Run a single unity instance against a number of windows.
Edit: Research is ongoing but looking promising. Currently working on resource sharing between the Unity Direct3D Device and the Windows Direct3D Device. Should be possible in theory.
Creates a new graphics device (Direct3D11 or OpenGL) and copies the output of a camera’s render texture to the graphic device, outputting it to the new window
I’m already using a native rendering plugin in my application and I’m not sure there’s any way to insure the order of the plugin callbacks but perhaps it’s just simply FIFO based on the order of the GL.IssuePluginEvent calls?