- Home /
Is it possible to make a 2D Unity game that's viewable in stereoscopic 3D in VR?
I'm thinking of something along the lines of the Sega 3D Classics range where the games are traditional 2D sprite/tile-based games but can now be viewed in stereoscopic 3D on the 3DS, which I'd like to be able to do but so you can view my game like that directly on a VR headset.
If it's possible, any suggestions on how to go about doing this?
Answer by sacredgeometry · Aug 13, 2019 at 12:47 PM
That depends on what you mean by 2D. If you are doing a pure 2D game you would have to create assets at offset perspectives to give it the appearance of "3D" and at that point why not make it 3D/2.5D anyway.
So if its either 2.5D or 3D you will be mixing 2D assets in a 3D space or 3D assets in a 3D space so yes you can use multiple cameras.
The 2.5D implementation may break the illusion somewhat though.
Also I am not familiar with the 3D Classics I would assume the 3D part just works with the parallax right? In effect working like a multi plane camera with a limited range of movement.
Yeah, the Disney example you provided is basically the same thing as the parallax in the 2D games.
So if I can use 2D art but put it on layers in 3D space then that would do too--but I don't want the player to be able to look around the side/back of the pixel are and break the illusion, which is what I presume would be the case if I make a 2.5D/3D game for the effect, especially when viewed in VR.
So how would I do that with sprite art and avoid the issue mentioned?
Here's some footage of the Sega 3D Classics, but it's obviously impossible to get a sense of the stereoscopic 3D unless you're actually playing on a device capable of displaying as such:
https://www.youtube.com/watch?v=HY2w0UrLWgw
And here would be a great example of it working with an actual 2D but stereoscopic 3D game (in this case Wario Land for the Virtual Boy) as viewed on an Oculus Rift:
I would do it as you would do it in real life. Fix the camera position and only let it rotate or move yourself far enough away from the viewport where it's not going to cause any problems.
Imagine sitting and looking through a window. $$anonymous$$ove your head and notice that the range of movement you have still allows you to have a parallax effect but doesnt allow you to move around enough to break the effect.
Work within those tolerances and you should be fine.
The further away things are from the camera/ your eyes the more them move when you move your head so its only going to matter for things really close to your face. Which I assume isn't going to be much.
How would I go about doing this when there isn't really a boundary to the view inside VR, as in the edge of a screen. On an actual 2D game the screen edge would stop any visuals going beyond it, and that means you can scroll different layers and different speeds and the like without it showing anything weird to the viewer, so how would I basically make it look like everything is inside a fixed view area like the screen rectangle while still being stereoscopic 3D and viewable in VR (where you can move your head around)? Like in the Virtual Boy Wario Land as viewed on an Oculus Rift example: https://www.youtube.com/watch?v=6NlhTcWLumw
Cool, I'll have a look at that.
Edit: Checked it out and could be what I'm after. I'll maybe even ask if he could do a specific tutorial for what I'm after, which would help me no end.
Your answer
Follow this Question
Related Questions
Sprite managed by Sprite Renderer doesn't shows up in play mode 0 Answers
2D game camera background between sprites 0 Answers
Unity 2D: query for "mask/layer" bit on screen space without collider 1 Answer
How do I get the sprite pointing the right direction? 1 Answer
Spritest look squashed and stretched in different screens. 1 Answer