How I converted my room into a Virtual reality Game?

This idea occurred to me when I came across a video on Instagram where someone tried designing their future room from a 2d diagram. Then as usual was searching for similar content on youtube and figured out a tutorial which isn’t much of a help but was a starting point though.

Ok. So if you have come across oculus you might have seen 2 types of boundary

Personality NFT | Get my Personality NFT
  • Stationary Boundary
  • RoomScale Boundary
  1. Here I wanted to use RoomScale so I can wander around in my room in both worlds. So first I have to measure my room in the real world and start designing it in Unity. I used the measure app from Apple ( I used it in several other projects and the accuracy is better than other apps).
  2. Draw a simple room sketch in a note, I preferred a plane long note so I can sketch freely. Do the Line drawing of your room along with the objects present.
  3. Then i took a picture probably scan it via the notes app and upload the image to unity so we can draw a 3d version from it.
  4. I used Unity ProBuilder to design a 3D scene from the sketch. (Detailed tutorial of Probuilder Coming soon)
  5. Now you have the basic structure of the room Try adding all the 3d models similar to the rooms. I used sites like UnityAsssets, sketchfab, free3d and CGTrader. Placed it in right place and try playing it in Unity.
  6. Now time for Oculus Integration, as explained earlier in my previous blog following all the steps. I have my kit ready. This time i used OculusIntegrationSampleCameraRig which has all functionalities included.
  7. I removed the Ray Interactor and added Hand interaction to make it cooler.
  8. Now try running it in Unity you might have the basic room design, which won't be much of a game. To make that happen I used lighting wherever I can and added particles.
  9. Now it started getting a vibe.
  10. Add music and small 3D Model interaction like moving books, Scribbling on a whiteboard and playing a video in Monitor.
  11. From here I planned to add some secret objects hidden somewhere to use in the room and make it more Intractable.

Here is a small glimpse of the making video. Hope you all like it.

Code available on Github.

Follow me on other social networks too.

LinkedIn: https://www.linkedin.com/in/shreethaanu-raveendran-7a6275b2/

Github : https://github.com/shreethaanu

Instagram : https://www.instagram.com/shreethaanu_blogs/

Portfolio : https://strlabz.com

Patreon : https://www.patreon.com/shreethaanu

If you like my post and wanna see more support me ☕️

--

--