Multiple displays in Unity
I'm trying to make a game in Unity with a UI display on the monitor and a separate world shown in the FOVE headset. Is this possible?
I have tried the following:
- Firstly, I have the VR part working fine on its own. It runs how I expected.
- Following the instructions in the Unity docs, I checked Display.displays.Length to make sure there were multiple displays. Under the standard configuration of the FOVE only one display appears.
- I found that if I put the FOVE into extended mode, I could get Unity to recognise and activate it as a second display.
- However when I do this, the Compositor seems to have issues. In the FOVE Debug Tool, the button "Start/Stop Compositor" keeps switching automatically between Start and Stop.
- If I click the button, the Compositor appears in the Windows toolbar and the FOVE shows the usual space background.
- In Unity I set configured the Camera on the FoveInterface with Target Display = Display 2 and a separate UI Camera with Target Display = Display 1. I set the Culling Masks on these cameras so the UI only appears in the UI Camera.
This much seems to work, however the VR scene runs very slowly and is distorted (it does not seem to be correctly accounting for lens distortion). Neither of these is a problem in the one-camera solution.
Is there a way to make this work correctly?
In case its relevant, I am running FOVE Runtime 0.15.0 and using Unity 2018.2.10. The firmware on the FOVE is up to date.
-
During Step 4, the FOVE Log is repeatedly showing:
Trying to connect to service, pid: 10668
Launched FoveCompositorApplication.exe
Starting app: FoveCompositorApplication.exe
New log client 0.15.0 C:/Program Files\FOVE\bin\FoveCompositorApplication.exe
Setting timer interval to: 1
Loaded config file at C:\ProgramData\FOVE\FoveVR.config
COMPOSITOR_DISPLAY_MODE: 1
Unable to load amdlvr64.dll: 126 The specified module could not be found.
Created window "FOVE Compositor": -8 -31 2568 1448
Window FOVE Compositor received quit message
[RNDR] Forcibly acquiring rendering backend (2, 3)...
Found 1 displays for vendorID: 63001
Display 2147881090
Found 0 displays for vendorID: 63001
Found 0 displays for vendorID: 25170
Found 0 displays for vendorID: 25170
AMD module not found
Searching extended displays
Searching GPU ID0
Found display MONITOR\GSM588F\{4d36e96e-e325-11ce-bfc1-08002be10318}\0004
Searching GPU ID1
Found display MONITOR\FOV0001\{4d36e96e-e325-11ce-bfc1-08002be10318}\0000
Display match: FOVE HMD
Attempting to create window on extended display
Extended display found
Called Stop Compositor
Clearing timer interval
Fatal error: SetFullscreenState: HResult(-2005270494)
InitiateConnection: Service refused connection
Loaded config file at C:\ProgramData\FOVE\FoveVR.config
COMPOSITOR_DISPLAY_MODE: 1
Launched FoveCompositorApplication.exe
Starting app: FoveCompositorApplication.exe
New log client 0.15.0 C:/Program Files\FOVE\bin\FoveCompositorApplication.exe
Setting timer interval to: 1
Loaded config file at C:\ProgramData\FOVE\FoveVR.config
COMPOSITOR_DISPLAY_MODE: 1
Unable to load amdlvr64.dll: 126 The specified module could not be found.
Created window "FOVE Compositor": -8 -31 2568 1448
Window FOVE Compositor received quit message
[RNDR] Forcibly acquiring rendering backend (2, 3)...
Found 1 displays for vendorID: 63001
Display 2147881090
Found 0 displays for vendorID: 63001
Found 0 displays for vendorID: 25170
Found 0 displays for vendorID: 25170
AMD module not found
Searching extended displays
Searching GPU ID0
Found display MONITOR\GSM588F\{4d36e96e-e325-11ce-bfc1-08002be10318}\0004
Searching GPU ID1
Found display MONITOR\FOV0001\{4d36e96e-e325-11ce-bfc1-08002be10318}\0000
Display match: FOVE HMD
Attempting to create window on extended display
Extended display found
Called Stop Compositor
Clearing timer interval
Fatal error: SetFullscreenState: HResult(-2005270494)
Trying to connect to service, pid: 12784
InitiateConnection: SendRequest(0) failed: RemoteRequester(Compositor) 1000ms timeout
Loaded config file at C:\ProgramData\FOVE\FoveVR.config
Please sign in to leave a comment.
Comments
2 comments