How do you show a monitor's contents on a texture in a Unity Scene?
Asked Answered
W

2

0

I am trying to create a flat surface in a Unity scene that will show the contents of the user’s main desktop monitor while they are in VR, so that they do not need to take their headset off to access their main monitor. However, I am stumped as to how to go about doing this.

The scene will only display on the headset and will not be mirrored to the desktop so before you ask, no, you wouldn’t end up seeing this.

I understand I might need to use a Render Texture to go about achieving what I am going for, but Render Textures only seem to take input from an in-game camera. I need the texture to show whatever is being shown on a certain monitor outside of the game. I’ll do a quick photoshop edit of that screenshot (from Garry’s Mod) that I linked before, to help explain what I am going for:

I’m having trouble finding any way of doing this via Google or via searching for posts on the Unity forums.

Does anyone with knowledge about VR development with Unity know a way of achieving this?

Winna answered 25/1 at 23:5 Comment(2)

I'm looking to accomplish the same effect. Did you find a working solution for this?

Perseid

To conserve file size (and speed up loading time) you may want to go with a smaller format than XML (the closing tags, angle brackets, and header are all unnecessary overhead). JSON is a great format (and probably easier to code the (de)serializaion for). Binary may be even smaller, but you can't edit those files by hand. Though, 300-600 lines isn't all that big for a file (depending on the line size). Compare your data to image sizes, 1MB image takes no time to load.

Inadvertency
E
0

Future Googler’s looking for a solution who just want to capture desktop without the clutter of outdated VR stuff: here’s a much simpler package based on the same Windows Capture plugin that is just the capture stuff that isn’t buried in HTC stuff.

Eclogite answered 25/1 at 23:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.