Skip to main content

Posts

Showing posts from November, 2020

Final VR project - Blog2

 Hello everyone, This is going to be our last post, we enjoyed a lot working on mixed realities in Unity and we are sure we will use the knoledge we have acquired in the future. On this one we will comment and explain some code snippets: MatChanger.cs: Game Menu Controls To control the game menu / instructions panel we wanted to put some buttons on the bar counter but we had some issues with that and we weree running out of time so we finally put the buttons under the screen where it is all showed. This is the code we use to controll the 2 buttons we have, one of them to navigate through the cocktail menu, and the second one is to get started and go to the next slide: Here, a 2 dimensional array with the name of every material for the screen is created. We use CocktailNr to save the first index if the array and SlideNr to save the second index. On Start, we assign the Slidescreen. This functions are called after we press the UI buttons below the screen. They increase SlideNr or Coc...

Final VR project - Blog1

 Hello everyone, This semester is coming to an end and therefore we need to get on with our final project. Our first idea was to develop an application where users could decorate their christmas tree to see how it looked before buying all the decorations, and even being able to see how it matched the living room on XR using the Hololens. As we had some issues on that one, we came up with a better idea, we are developing a BarTender Trainer! We found this far west inspired tavern, and we thought it was perfect to develop our program in it. Not only for the mood, but also because we had some 3D models of bottles, cups and buckets we could use, although we still had to look for some online. The main purpose for this one is to give BarTender aspirants a first steps tutorial, so we chose some classic cocktails / long drinks that we consider every BarTender should know how to do and we looked up the recipees. We chose to include Mojito, Rum-Cole, Sex on the Beach & Tequila Sunrise. W...

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 t...

1st VR Project Blog1 - Bowling on Oculus Quest!

 Hello everyone, This week we have started our first project on VR. For this application we are using Unity5 and Oculus Quest. Released on may 2019, this headset is totally wireless, which gives wider movement freedom, though it obviously has less processing power than a computer. As none of the group members were familiar with this technologies, we took some basics tutorials on youtube on how to get started; how to configure the project, which packages to import and other tecnical issues that needed to be solved in order to start the project. After messing around with the device and playing some games on it, we had a meeting where we decided to do a bowling game. It was then when we realised that we would need to meet physically in order to work on the project and being able to test our application on it, which is an issue that we didn't have when working on AR as we could test it on our phones. The testing also takes more time, both for the building process as for the actual test...