Tag: virtual reality

Haunted Motel is a VR Horror Game For Android (Google Cardboard)

Virtual reality horror games have quickly gained popularity among gamers after Google introduced their first VR headset prototype, the Google Cardboard, back in 2014. Now, for the past two years developers of vr horror games have been busy working on their projects and we can already enjoy some of the most insanely terrifying games like Silent Home, 11:57, House of Terror and Sisters, just to name a few.

These games, coupled with my overall fascination in virtual reality technology, have inspired me to start developing my own vr horror game for Android phones. The game is called Haunted Motel.

VR Horror Games Haunted Motel Android Cardboard

Haunted Motel – A work in progress

I don’t remember the exact date any more, but I think it’s safe to assume that I started developing Haunted Motel somewhere in the second half of May, 2016. I know this because, earlier that month, I had published a very basic how-to guide on virtual reality game development.

On a side note, I didn’t intend to give the game a lame name (wow) such as this. At first, I was considering a fancier name like the Lakeview Motel, but because it’s a demo, I figured Haunted Motel will work just fine for the time being.

That, and I was just too eager to publish it on the Play Store to bother with the tedious name picking process.

horror games vr virtual reality haunted motel screenshot

Why do I say the game is still a work in progress?

Because I don’t plan on ending the game any time soon! In fact I’m hoping to get enough feedback and NEW ideas from gamers themselves and implement those directly into the game as we move forward.

I think it would be epic if this project would turn out to be a kind of social vr horror game where anyone can add a piece of their imagination.

Of course I am going to add more content to the game on my own as well, but that requires time and being “in the zone” which is, unfortunately, kind of rare to happen these days. Come to think of it, adding other people’s ideas will require the same amount of work, if not more. Damn. Anyone willing to lend a helping hand?

At this point, I am still unsure where the game will “end up” as I am planning to, eventually, leave the building altogether and get the player on the streets. You know, Silent Hill style, but as a vr horror game.

Haunted Motel’s Storyline

As of right now the game doesn’t have a decent storyline. Instead it’s meant to kind of show off my skills as a game developer in general.

The only real story that I have added into the game so far is the note which you can find under the main staircase. In the note the motel’s administrator briefly welcomes a newly appointed janitor.

Short walkthrough

That said, the game starts after you’ve entered the motel building. To your right you can see the administrator’s office (locked) and to the left there’s a small storeroom with a bloody newspaper on top of some shelves.

As you move forward, you’ll eventually find yourself in the center of the building with stairs going to the 2nd floor (unfinished) and two narrow corridors leading both left and right.

virtual reality vr horror games android haunted motel cardboard headset

At the end of these corridors, on both sides, there’s a small room where people can hang out and smoke a cigarette, for example.

Each corridor leads to two additional apartments so on the 1st floor there are a total of 4 apartments. But since it’s a demo, you can currently only enter one of them.

It’s up to you, the player, to figure out how to enter that room. All I can say at this point is that you will first need to enter the administrator’s office where you’ll find (surprise surprise) a key. It’s not really that difficult.

The hauntings

In the demo the player has a chance of meeting a ghost. Well, sort of. While you can’t interact with it directly, it is supposed to scare you from afar. For those afraid of jump scares, you’re in luck because right now there aren’t any. Promise.

Haunted Motel vr horror game virtual reality cardboard android

While not directly hinted throughout the game itself, the ghost is in fact a burned man who died in a fire a few years earlier. The 2nd floor is still unfinished, but *spoiler alert* there will be a room completely burned down. This is where the guy used to live. Anyone care to tell his story?

Future plans

For the more observant bunch, I’ve added a few subtle clues on the noticeboard in the main hallway. These should give you an idea on what to expect from the vr horror game in the future. You will have to actually play the game though. I’m not going to reveal anything else.

And, as I said earlier, I am eventually hoping to be done with the motel building and put the player on the streets where they can wander around and enter other, more interesting houses.

Share!

Blox VR: A Virtual Reality ‘escape the room’ type puzzle game for Google Cardboard

Shortly after I created my first Virtual Reality “game” which wasn’t actually a game per se, but more like a fan art/virtual reality music video that took place in the room 302 of a famous horror game called Silent Hill 4, I started working on another project because you couldn’t really interact with any objects in the first game and I wanted to learn more about developing VR experiences anyway. In fact the only thing you were able to do was walk around and just look at Henry’s room from a different and new perspective. It was cool, but I knew I could do much better.

Blox VR Virtual Reality Puzzle Game Escape The Room

How Blox VR came to be

The idea for the game came to me one night in a dream where I woke up in a room with no windows, no doors and no apparent way of getting out. In my dream I later found out that I had actually died and this is what “heaven” was like- being stuck in a tiny room in the middle of an endless void where time was standing still (ie. you wouldn’t age, etc).

I had two choices: either stay in the room for all eternity contemplating on the meaninglessness of life or hit a reset button, forget who I was and where I came from for another 60+ years and experience yet another lifetime through someone else’s consciousness. Deep, I know.

What is Blox VR exactly?

Before I start I have to get one important thing out of the way: It’s still a demo! Yeah, the game only has three levels right now because I got caught up in yet another project of mine and I also wanted to hear what other people thought about the game before fully committing myself to it. Unfortunately people haven’t said much. Go figure…

Blox VR Bed and Blocks

It’s funny because thanks to my other project I now know more about game physics and development in general so I might end up doing a complete rework on Blox VR once I decide to continue developing it because while it felt awesome a few months ago, it feels kind of lame and noob-ish with my current knowledge. I know can do much better.

To put it short: Blox VR is a virtual reality puzzle game project that has been put on hold for now, but I will most likely continue developing it once I’m finished with my other projects (they’re going to be epic by the way) and once I feel that people actually like where the game is headed.

What can you do in the game?

Because this is a game for the Google Cardboard headset and as you may know it only has a single action button, I had to make the hard choice and basically “glue” the player to the ground leaving the action button only for picking up and dropping various metal boxes scattered about the room. Therefore you can’t walk around in the room, but you don’t really need to. It’s just a small room. If you were actually there and spread your arms you could touch both walls at the same time.

The puzzle

When looking around the room you will notice something written on one of the walls. A clue? Well, I can only say that it’s somehow related to the various boxes that you find on the floor. Figure it out!

Blox VR Switch and Blocks

After you solve the puzzle you will hear a weird sound that I quickly made in FL Studio and the level resets. Except of course for the puzzle, that one changes to more complex gibberish.

After the final puzzle the writing on the wall changes to “End of demo” so you’d know that it’s the end and wouldn’t spend your precious time figuring out how to escape this level. You can’t. Really. That’s it. It’s really the end. REALLY.

Where to get it?

You can download the game from Google Play Store and currently it’s only available for Android devices. You also need one of those Google Cardboard Virtual Reality headsets that go for less than five bucks on ebay. Or you can order one from me if you like.

Share!

Silent Hill 4 (The Room) Apartment 302’s Living room in Virtual Reality

Silent Hill 4 – The Room is one of my favorite installments in the Silent Hill series and if you’re a true fan like me, you have probably dreamed of what it would be like if you had the chance to actually step inside the game– literally.

Well, guess what? Thanks to Oo-FiL-oO from Deviantart who extracted and converted a 3D model of Henry’s living room, I managed to mash up a Virtual Reality experience! All you need is the dirt cheap Google Cardboard headset and a regular smartphone to step inside Apartment 302 for the first time.

Apartment 302 in Google Cardboard

Apartment 302 Hallway

You’ll find yourself standing in the main doorway, looking at the other end of Henry’s apartment. There are a couple of chairs further away and beside the TV set you will notice a familiar chest where you used to store all of your items.

Unfortunately everything’s completely rusted shut in this alternate dimension, so I’m afraid you can’t open any cupboards or drawers at this point.

Apartment 302 Kitchen

I’m sure you’ll recognize Henry’s kitchen to your left. If you look closely, you might notice there’s blood in the sink. I wonder whose blood is that?

Apartment 302 Living room

Turn around and walk into the main room with a comfortable couch. You can rest your legs here if you feel like it. Oh no! The television set… it doesn’t seem to be working.

By now you’ve probably noticed Room of Angel playing in the background as you walk around Apartment 302 in this dark, alternate reality. How does this make you feel?

You can use the stereo on the bookshelf to switch between three different music tracks.

How to walk around

You can move around the entire living room by pulling the Google Cardboard’s magnetic trigger once. Now just look towards the direction you want to go and you’ll slowly keep walking until you pull the trigger again.

I haven’t tested it myself, but if you happen to have a newer Cardboard model, the trigger button should work fine on that too. Let me know if you run into problems!

Not the whole apartment, sorry

Since Oo-FiL-oO’s 3D model didn’t include the rest of the apartment, I only managed to do the living room, so there’s a big, rather poorly textured wall right where you’d normally go into the hallway that connects the toilet and Henry’s bedroom. I hope you’re not too disappointed.

You can’t interact with drawers, the fridge or any other items at this point (except for the stereo and couch). It’s just a simple VR experience where you can walk around the Apartment 302’s living room, but I think you’ll have a blast looking at things from a completely new perspective.

On top of that, Room of Angel is playing in the background so it should give the overall atmosphere a nice finishing touch. Think of this as an interactive music video!

Easter egg?

I’m not sure if you can call it an easter egg, but if you look closely, you should be able to find it. I’ll give you a hint: there’s an object in Henry’s living room that doesn’t belong- I took it from Unity’s asset store because it wasn’t included in the 3D model of the room. Can you find it?

Download Room of Angel (Apartment 302) VR Game

Note: Room of Angel was the original name for this app, but it has since changed. The official name from this day forward shall be Apartment 302! I had to make the change in order to comply with Google’s tough policies on impersonating someone else. In this case, Konami. And just in case you’re wondering, Konami is totally fine with this.

You need to make sure your phone’s security settings allow apps from unknown sources. Don’t worry, I’m a nice guy and would never do anything evil to your phone. You can download the installer here:

RoomOfAngel.apk (31,6 MB)

Or from the Play Store

Currently the game will only work on Android devices and because it uses a Cardboard viewer, you’ll need a phone that will fit in the headset.

It should work with a wide range of mobile phones, but so far I’ve only tested it on my own Samsung Galaxy S2 that’s running Android version 4.1.2 so I can only guarantee it will work flawlessly on that phone.

*EDIT* Looks like it’s working fine on Sony Xperia Z5 Compact as well, but only after the Cardboard headset was paired with the phone using Google’s Cardboard Viewer app. It’s actually a great app to get rid of double vision in most VR games out there.

I’m very much interested in finding out on which phones this works so please send me some feedback and if you like what I’ve done, make sure to share it with your friends!

Share!

How to make a simple Virtual Reality room for Google Cardboard in Unity

Google Cardboard is an excellent way to experience Virtual Reality for the first time as it’s fairly cheap and is compatible with most modern smartphones so you don’t have to buy any additional hardware. Combine it with Unity, the most widely used free game engine, and you’ll have all the necessary tools to create your very own VR experience. In this tutorial I will walk you through a step-by-step process of building your first Virtual Reality room on top of a Google cardboard Unity demo.

The room will have a floor, four walls and a ceiling and you will be able to move around inside of it freely. If you don’t yet have Unity or the necessary SDK’s, please follow this straightforward guide from Google and continue reading my article when you have imported the demo and your working environment in Unity looks like this:

Unity Cardboard SDK Demo Scene

Problem parsing the package error

When you build the .apk file for the first time, load it to your phone and try to open it, you may encounter an error stating that “There is a problem parsing the package“. If this happens you need to open up your AndroidManifest.xml file inside Your Game/Assets/Plugins/Android directory and change the value of android:minSdkVersion to 16:

Change android minSdkVersion to 16 instead of 19 to fix problem parsing package error

Now build your game again, load it to your phone and you should be able to install the app. Oh and by the way, your phone’s security settings should be changed to allow unknown sources.

How to build a Virtual Reality room for Cardboard

Alright, let’s get started! We can optionally remove all the things we don’t need in our current game so in the Hierarchy panel, right click on Cube and delete it. Do the same for Floor Canvas, Overlay Canvas and Event System.

  • Now click on the GameObject drop down menu, navigate to 3D Object and click on Cube to create a new object in our game.
  • Right click on it in the Hierarchy panel and rename it to Character.
  • Drag the Head (under CardboardMain) inside the Character object.
  • Click Continue to confirm your action.
  • Left click on the Character object that now is parent to the Head object to select it.
  • In the Inspector panel at the right side Scale it to X: 1; Y:2; Z:1 and Position it to X:0; Y:1; Z:0.
  • While the Character is selected, navigate to Component, then Physics and choose Rigidbody.
  • In the Inspector panel edit Rigidbody settings by expanding Constraints and freezing the Rotation of X, Y and Z.
  • Additionally tick Convex in the Mesh Collider settings panel (for the Character object).

Adding the Character object and setting it up for virtual reality game

The Rigidbody will prevent us from walking through the walls and by constraining the Rotation of X, Y and Z, we prevent our character from possibly falling over. This was especially the case with the Capsule object set as our Character- you’d simply fall over when you touched a wall. Hilarious, but annoying.

Adding walking functionality

Now that our character is ready, we need to add a way to move around in the world. Luckily JuppOtto has created a script that we can use. You can download it from here.

  • Save the file as Autowalk.cs somewhere in your computer.
  • From the Assets drop down, navigate to Import New Asset and import the Autowalk.cs file.
  • Left click the Character object in the Hierarchy panel.
  • In the Inspector panel, click on the Add Component button.
  • Navigate to Scripts and choose Autowalk.
  • In the newly added Autowalk script component set Speed to 1.
  • Tick the Walk when looking down option and set Threshold Angle to 20.

Importing Autowalk.cs script and setting it up for Virtual reality game

If you play your game now you should be able to move around the empty space simply by looking slightly down. Your character stops when you look back up.

If you’re not satisfied with the angle you can always change it to something else, but I think 20 degrees is perfect because from playing other people’s games, I have found that if the angle is set too high it will be hard to pick up objects that are placed on the floor (you keep moving over them because you’re looking down).

You may have noticed that there is another setting called Walk When Trigger is pressed. It’s another great example of how one can move around and you should definitely try it out! This method was used in the VR Horror game Silent Home and for that particular game, it’s a great fit.

Building walls for our Virtual Reality room

Walking around in an empty space is boring so why don’t we add some walls and a ceiling to our game? We can do this simply by adding 3D objects, namely the Cube, into our game. To make the cubes more wall-like, we simply need to adjust their position and scale properties.

  • From the GameObject drop down, navigate to 3D Object and click on Cube.
  • In the Hierarchy panel, right click the Cube and rename it to Wall#1.
  • Adjust the Position and Scale properties of the Wall#1 in the Inspector panel. I set the Position to X: -3; Y: 1.5; Z:0 and Scale to X: 1; Y: 3; Z: 5.

Wall number one settings

  • Take advantage of the Duplicate option by right clicking Wall#1 to create three more walls.
  • In the Transform panel, Rotate the Wall’s Y coordinate by 90 degrees if needed.
  • Finally add a ceiling which should be placed on top of everything like a lid on a box.
  • Make sure to drag the Point Light object inside of your room once it’s ready.
  • You can optionally left click Point Light from the Hierarchy panel and adjust its light properties in the Inspector panel (range, color, that sorta thing).

Adjust Near Clipping Plane to 0.01Note: When you walk around in your room, you might notice that you can see through the walls when in close proximity.

To fix this, expand the Character object, then the Head object and select the Main Camera by left clicking on it. From its Inspector panel look for Camera and adjust its Near Clipping Pane to 0.01 which is the lowest possible value.

Here’s what my virtual room now looks like from outside (yours can look different. Just be creative!):

Virtual Reality Room Outside View

When you play the game now you should be able to move around in your virtual room, and because we applied Rigidbody to our Character object earlier, it’s working together with the wall’s Box Collider and thus preventing us from traversing through the walls as they weren’t even there.

So far so good. Now it’s time to add some textures!

Adding textures to our Virtual Reality room

Unity comes with its own built in Asset Store which is very similar to Google’s Play Store. In the Asset Store you can look for and download various scripts, textures and other stuff for your virtual reality game or any other game for that matter.

Searching for wall texture in Unity's Asset Store

Select the Free Only filter and search for wall texture from the Asset Store. I chose Make It A Brick Wall by Allegorithmic as the suitable texture for my walls.

When you find what you like, simply download the asset, wait for Unity to prepare it for you and when the Import Unity Package popup appears, select all and press the Import button.

Adding the texture to a wall

adding textures to a wall objectSelect the Wall#1 by left clicking on it in the Hierarchy panel. Expand it’s Mesh Renderer – Materials drop down and click the little circle right next to Default-Material.

A popup should appear in which you should be able to locate your newly imported texture easily. When you double click it, the popup should close and your Wall#1 will now have a texture.

Repeat the process on the rest of the walls (and ceiling if you like). I chose Dungeon Ground Texture by Pixel Indie as my ceiling’s texture.

Adding a texture to the floor

While you can use the same texture on your floor as you did on the walls, it will look a lot better if you add a different texture to it so after you have found the right material from the Asset Store again, left click on the Plane object in the Hierarchy panel to select it.

The Plane object’s default material in the Mesh Renderer should be GroundPlane. Simply click on the little circle next to it as before, browse to the material you want to use as your floor and double click it in the popup to set it as your new floor material.

Adjust tiling if needed

Adjusting the tiling settings for stone floor texture material

I used the Stone Floor Texture Tile by 3dfancy, but because the default tiling settings didn’t match with my floor quite right, I had to adjust its tiling manually. Simply find your texture folder inside the Assets panel at the bottom of Unity’s UI, open it and click on the texture material (with a blue sphere icon) to edit its tiling settings.

Your room in Virtual Reality is ready!

If you’ve followed this tutorial so far, you should have a single room in your VR game with solid walls and in which you can move around by looking slightly towards to the floor. Here’s what my room looks like:

Ynef's VR Room Game Demo Screenshot

If you want, you can download this app and try it out yourself.

Where to go from here?

This was just a basic tutorial on how to create a room in Virtual Reality for the Google Cardboard headset and the next step would probably be to create more rooms. Perhaps even a maze?

To be fair with you, I have to come out and admit that I made this tutorial to be a future reference point for myself because I’m a complete noob  in Unity and I have only been at it for a week. That being said, I hope my guide has helped you and if you get stuck, feel free to comment here or email me.

If you enjoyed this article, please consider sharing or leaving a like so that I will know it has been useful for people and that you want me to write more similar tutorials in the future.

Share!

Google Cardboard – A Gateway to the VR World

Remember when the first smartphones used to cost a fortune? It’s the same with Virtual Reality technology because like any other first generation technology, it’s still very young and out of reach for the average folk. Currently the consumer grade VR Headset costs around $600 + shipping and handling. Kind of crispy if you ask me.

Experience Virtual Reality using your phone

Virtual Reality VR Headset Using Your Phone

However there’s still a way to test the waters and experience the world of Virtual Reality first hand for less than what you’d normally pay for a happy meal. Google Cardboard is a Do It Yourself cardboard device that uses your smartphone coupled by two specially designed lenses to provide a rather immersive Virtual Reality experience.

In case you didn’t know, most smartphones today are already filled with movement tracking technology which is the basic building block in any VR headset. And while the Cardboard isn’t meant to compete with the latest VR technology, it will definitely provide a fun and exciting experience especially if you haven’t used any virtual reality devices in the past. It feels like you’re really inside the game world!

Google started a snowball effect

Google released the schematics to build your own Virtual Reality headset at home using a couple of lenses and some cardboard way back in 2014 with the intention of making people realize what was possible in the VR world and now, just two years later, all the major technology giants like PlayStation, HTC, Oculus and Microsoft are rushing to release their own VR technology to the general public. The year 2016, as Techio explains, will be the year when VR finally goes mainstream and well, the world will never really be the same!

A poor man’s virtual reality headset

While the recently released consumer grade VR headsets remain rather expensive for at least a few more years, the Do-It-Yourself cardboard device is a great substitute for experiencing immersive virtual reality yourself for the first time. It’s no surprise then that the Google Cardboard is also known as the poor man’s virtual reality headset.

Share!