Is there some setting I can turn on in Unity to do this? (Or maybe some asset or shader I can download to view this?)
Then I could just put the Google Cardboard directly onto the laptop screen to do a quick test. I would imagine its quite simple, just render to texture with a distortion shader on it?
OK, got that working. Another question, can I use my phone or tablet plugged into my laptop, as an input device to give the rotation of the camera for the VR view. Since my phone has a accelerometers in it but my laptop doesn’t! In fact, I would like to strap my phone to my laptop so that as I move my laptop about the view changes accordingly. (This is all just for testing purposes). Or is there a USB accelerometer I can plug into my laptop to do a similar job while working in the editor?
you can test rotation and those in game view, press ALT and use mouse to rotate.
there were some other keys also i think for tilt and maybe more, mouseclick in gameview also equals cardboard toggle.
Vive controllers and the base stations make half of the cost so it would not make much sense. Also GearVR does not have positional tracking so no, it’s not realistic.
Just discovered a quick way to get a stereoscopic view in the Game View tab of Unity, so I thought I share it At least it works if you have two cameras (one per eye).
Hi All, I don’t want to hijack the thread, so I’m not sure whether it’s good to post here or start a new thread, but I’d like to do the same, but in an Oculus Rift project, but the above doesn’t work.
I have Oculus working fine in Unity, but in my GameView I’d like both left and right eyes displayed (preferably non-distorted), not just the left eye. I actually have two cameras in my scene, one is rendering objects on a layer called LEFT, and the other camera is rendering objects on a layer called RIGHT. This way I can render different objects to each eye. And this works fine. However, my GameView only displays the left camera, and I’d like it to display both, splitscreen.
I tried the viewport thing mentioned above, and interestingly:
If I don’t have the Rift HDMI connected, it works fine in GameView (left half shows left camera, right half shows right camera).
When I do connect the Rift HDMI, then when NOT playing it works fine in GameView (left half shows left camera, right half shows right camera).
When I press PLAY, then the left half of the GameView shows the left camera, but the right half shows nothing, just doesn’t update at all (and of course in the actual rift, everything is squashed)
As a test, I tried attaching Camera1 (LEFT) to Display1 and Camera2 (RIGHT) to Display2, and then opening two GameView windows, one showing Display1 and the other showing Display2. And I get similar results to the above.
If no Rift HDMI is connected, it works as expected: GameView (Display1) shows Camera1 (LEFT), and GameView (Display2) shows Camera2 (RIGHT).
When I connect the Rift HDMI, then when NOT playing, it works same as above in GameView.
As soon as I press Play, both game views show only the left objects! (and there is very weird ghosting inside the Rift).
And again, if I set both cameras to Display1, with full viewport, it works really nice inside the Rift, but GameView shows only the Left eye.
Is it possible to do what I’m after?
P.S. I’ve attached a unity package with the 3 test scenes.
It seems this is no longer available, maybe i am missing something but i assume google updated GVR package and there is no gvrmanager anymore. The point is, I couldn’t find anyway to “enable stereoscopic view in the game tab”. NurFace’s tutorial also uses the old package i think so there is no headsetdemo in new package.