Forum Discussion
Stankiem
10 years agoHonored Guest
How to display something different on monitor and headset?
(unity) If I want to show a different rendered image on the monitor from what is being displayed in the headset, how would I go about this?
I possibly want to have another camera in the world displaying something totally different for people watching on the monitor.
I possibly want to have another camera in the world displaying something totally different for people watching on the monitor.
12 Replies
Replies have been turned off for this discussion
- StankiemHonored GuestAnyone have an answer on this? Is it even possible?
- vrdavebOculus StaffUnity 5.3 supports this. Just make a Camera and set "Stereo Eye" to "None (Main Display)".
- StankiemHonored Guestthank you, much appreciated.
- NukedCraniumExplorerI have managed to achieve this, but also had to turn off mirroring via code to get my secondary camera to display on the screen. Changing depth had no effect, as the HMD camera would always appear on top.
I am now however having an issue where the rendered scene of my secondary camera (being displayed on screen) is stretched horizontally, nothing I do seems to alter this.
Has anyone else experienced this, or knows how to resolve please?
You can reproduce this, by creating a simple scene, introducing a second camera, configuring as per the instructions in this post and turning on VR support in the player settings. - ChaosEmperorHonored Guest
"peteclark82" wrote:
I have managed to achieve this, but also had to turn off mirroring via code to get my secondary camera to display on the screen. Changing depth had no effect, as the HMD camera would always appear on top.
I am now however having an issue where the rendered scene of my secondary camera (being displayed on screen) is stretched horizontally, nothing I do seems to alter this.
Has anyone else experienced this, or knows how to resolve please?
You can reproduce this, by creating a simple scene, introducing a second camera, configuring as per the instructions in this post and turning on VR support in the player settings.
I had this issue and actually posted about it here, it turned about to be a bug from Unity and it not preserving the correct aspect ratio. Updating to the latest version (Unity 5.3.2p1) fixes it. :D - NukedCraniumExplorer
"ChaosEmperor" wrote:
"peteclark82" wrote:
I have managed to achieve this, but also had to turn off mirroring via code to get my secondary camera to display on the screen. Changing depth had no effect, as the HMD camera would always appear on top.
I am now however having an issue where the rendered scene of my secondary camera (being displayed on screen) is stretched horizontally, nothing I do seems to alter this.
Has anyone else experienced this, or knows how to resolve please?
You can reproduce this, by creating a simple scene, introducing a second camera, configuring as per the instructions in this post and turning on VR support in the player settings.
I had this issue and actually posted about it here, it turned about to be a bug from Unity and it not preserving the correct aspect ratio. Updating to the latest version (Unity 5.3.2p1) fixes it. :D
Great news, thanks for this, I will update tonight and this will hopefully be fixed! - NukedCraniumExplorer
"ChaosEmperor" wrote:
"peteclark82" wrote:
I have managed to achieve this, but also had to turn off mirroring via code to get my secondary camera to display on the screen. Changing depth had no effect, as the HMD camera would always appear on top.
I am now however having an issue where the rendered scene of my secondary camera (being displayed on screen) is stretched horizontally, nothing I do seems to alter this.
Has anyone else experienced this, or knows how to resolve please?
You can reproduce this, by creating a simple scene, introducing a second camera, configuring as per the instructions in this post and turning on VR support in the player settings.
I had this issue and actually posted about it here, it turned about to be a bug from Unity and it not preserving the correct aspect ratio. Updating to the latest version (Unity 5.3.2p1) fixes it. :D
I've just checked, and I have the latest version 5.3.2p1 (5.3.2f1 as the shortcut says), but I still get a stretched view like the following onscreen. Did you have to do anything else to get this working?
http://imgur.com/cZPmM1G - ChaosEmperorHonored Guest
"peteclark82" wrote:
"ChaosEmperor" wrote:
"peteclark82" wrote:
I have managed to achieve this, but also had to turn off mirroring via code to get my secondary camera to display on the screen. Changing depth had no effect, as the HMD camera would always appear on top.
I am now however having an issue where the rendered scene of my secondary camera (being displayed on screen) is stretched horizontally, nothing I do seems to alter this.
Has anyone else experienced this, or knows how to resolve please?
You can reproduce this, by creating a simple scene, introducing a second camera, configuring as per the instructions in this post and turning on VR support in the player settings.
I had this issue and actually posted about it here, it turned about to be a bug from Unity and it not preserving the correct aspect ratio. Updating to the latest version (Unity 5.3.2p1) fixes it. :D
I've just checked, and I have the latest version 5.3.2p1 (5.3.2f1 as the shortcut says), but I still get a stretched view like the following onscreen. Did you have to do anything else to get this working?
http://imgur.com/cZPmM1G
Are you sure? I believe 5.3.2p1 is different than 5.3.2f1 (My shortcut says p1 and not f1). I have it working perfectly from my side. Are you using the following code to stop the mirroring?
IEnumerator Start ()
{
yield return new WaitForEndOfFrame ();
UnityEngine.VR.VRSettings.showDeviceView = false;
}
Note: in case you are not aware, p1 refers to patch no.1 for that Unity version. I got it from here:
http://unity3d.com/unity/qa/patch-releases - NukedCraniumExplorerYeah I'm using that setting, (minus the yield return portion though, is this best practice? I'm still very new :) )
Pretty sure I'm on the latest patch, I've raised a thread over at the unity forums and they've suggested I need to also reset the FOV, I've not tried this yet, but I'm hopeful! Strange how you've not needed to do this though.
http://forum.unity3d.com/threads/multip ... ed.383306/ - ChaosEmperorHonored Guest
"peteclark82" wrote:
Yeah I'm using that setting, (minus the yield return portion though, is this best practice? I'm still very new :) )
Pretty sure I'm on the latest patch, I've raised a thread over at the unity forums and they've suggested I need to also reset the FOV, I've not tried this yet, but I'm hopeful! Strange how you've not needed to do this though.
http://forum.unity3d.com/threads/multip ... ed.383306/
To be honest, I found the code snippet while I was looking for a way to stop the mirroring. I believe it was to stop builds crashing at startup or something. But in the editor it works perfectly.
This is quite a strange case. I just can't comprehend why it works perfectly with me and not with you. I did not change the FOV or anything. I even just created a new project and only added that code I added earlier with some objects. The result remained proper and no stretching occurred. If possible, can you upload your project? I'd like to see if it somehow differs when I run it (which it shouldn't).
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 months agoAnonymous