Hi,
I am currently working on a project where I need my current desktop to be rendered in my Unity game window and later visualize the same in Oculus DK2. I have succeeded in duplicating the desktops using [Desktop Duplication API][1] and in Unity I am rendering the same duplicated desktop onto a 3D plane by using [Low-level Native Plugin Interface][2] methods. At this point I am able to see the Unity editor window itself on the plane as I am currently inside unity editor. But, when I try switch my windows or when I try open any full-screen applications or explorer window in maximized mode or even when I press the windows key(which opens the Start-metro-style ), I am experiencing Unity crash every time. The same behavior is observed in Virtual Reality Mode.
Note : I am able to open other windows or applications in windowed mode and same can be visualized in VR mode as well. But, when I switch to any full screen application or start menu it crashes.
[Environment]
Unity 5.3.4f1,
Oculus Runtime 0.8,
Windows 8.1
[1]: https://msdn.microsoft.com/en-us/library/windows/desktop/hh404487(v=vs.85).aspx
[2]: http://docs.unity3d.com/Manual/NativePluginInterface.html
And apologies if this issue isn't supposed to be reported on here as my end target is oculus. But, I felt the issue is more of Unity related as it crashes even in Non-VR mode.
Any help would be highly appreciated.
Thanks in advance!
↧