Skip to main content

1st VR Project Blog2 - Bowling on Oculus Quest!

Hello everyone,

This week we are finishing our VR Bowling game. In order to make it look fancier we wanted to add some textures, background, add animated hands instead of cubes... But first things first, we still need to solve last week's problem: The score counter issue.

As we explained on the most recent post, we struggled on counting the score, which should equal the amount of pins knocked down. At first, we considered that a pin was knocked down if its position dropped under a certain height. That gave us a lot of problems and it seemed like it was counting every pin several times. To solve it, we created an array where the pins were listed as they fell, and before adding them to the score we made sure that they weren't already in the list. This way we managed to have a functional score counter.

To check the code you can have a look at it on our github repo, to make it easier and quicker to understand we've prepared a flow chart where you can see the main idea behind the code:



Okay, this looks good!

But let's try to get closer to actual bowling adding a 2nd ball...

Again, if you want to see the code behind it, check our github repo, for a quick over view here's the logic flow chart's evolution:




As you can see, we now have 2 tries to knock as many pins as we can.

Now that the game is up and running we can focus on the esthetics. We added a wooden texture to the alley to give it a classier look, changed the background sky to a more suitable one and last but not least, we changed the cubes we were using until now as hands to a white hand shaped 3d animated model that allows the player to have a way more immersive experience.

This is how the final result looks like:




You can check our code on github: https://github.com/Yasin-0109/VR-BOWLING

That's it for today's blog, we will be doing another project in VR for the next 2 weeks so keep checking the blog to stay updated!

Comments

Popular posts from this blog

2nd AR Project - LEARNING through AR! - Week 41

 Week 41 Having the main idea of the project defined, we started the second week of development organizing the tasks in our group. We all took some tutorials on how ARCore works to get a main idea and functions that might be useful. Later on we started working with interfaces, canvas and buttons and we struggled with their size and interaction. So our main idea was to have an interface in front of what the user is watching (that in this case will be the video comming from the camera) that allows them to select between diferent colors to change the colour of the wall.                                                  First version of the interface An out of scope feature that we could implement is to improve the interface offering the user the possibility to select from the whole color palette like pantones...

1st AR Project

Hello everyone, We are a group of software engineering students: Yassin Aden, Pau Francino, Boris Llona and Roger Weber. We are taking a Mixed Reality course at VIA University in which we will learn about both Augmented and Virtual Realities from a practical approach. In this DevBlog we will keep you updated on every step we take. On our first project we have been assigned to do a basic AR game to get in touch with the technologies involved. This project is to be done using Unity5 to develop the game, and the extension "Vuforia" to display AR objects on the image targets . As none of the group members had any previous experience with those programs, we had to follow some online tutorials to learn the basics. After a brainstorming session we collected the best ideas, evaluating them in terms of practicability, creativity and effort needed, and finally selected the idea we all liked the most taking in account the 2 weeks time limit: an Augmented Reality Air Hockey video game. I...

2nd AR Project - LEARNING through AR! - Week 40

Week 40  The second project of the mixed reality course aims to develop an educational application with Augmented Reality, with some different tools that allow us to discover the wide range of possibilities that this technology has to offer. This time we will work with ARCore and ARKit. Those tools provide us with better methods for  localization and mapping purposes.  ARKit fares better in reliable tracking and ARCore leads in mapping and reliable recovery. Besides that it  provides the developers with some usefull libraries regarding the use and treatment of color temperature and intensity .  Like any development process of a technological product we started brainstorming some of the ideas that we thought would be nice to implement as a project with educational purposes. The first idea was to show the skelleton of a person with labeled bones but we thought it was kind of classic and basic idea that has been implemented many times and it has not much logic behi...