Posts

Week 12 - Polishing our code, and getting ready to present.

Image
Since the deadline is on 25th of December, we decided to start polishing our code, and finish up latest tasks. Dalius: Tasks: Make a leaderboards Description:  Leaderboards To make things more interesting, apart leaving empty leaderboards, without any scores I've decided to generate some random data with the names which were taken from this website:  Link And some scores were generated randomly in between 1 to 20. Lets look at our code screenshots. Every time the game started, a players name were generated, as we can see in the picture. And every time user finished its challenge, The number of Player 1 were increased. And the score is being inserted as Player 1.To mention that we have an array , which is being made also during the start of the game, and that array contains: Random names and randomly generated scores. Then sorting is being made, and after its done sorting, we reversed it, so that the scores would be form the highest number, to the lowest. Cause array by default sort

Week 11 - Working on project [Progress]

Image
Another week, more tasks to come. As our first week of the project was successful, we split even more tasks to do. This weeks tasks for each of the group member was: Dalius: Tasks: Create buttons for Increase/Decrease Fire Rate of the machine, Starting the machine and Create a challenge button. Description:  To how create buttons, I decided to go to YouTube, and see how people are making buttons in VR. I have followed this YouTube video to make a buttons with the press functionality.  Link to buttons After buttons were successfully made, it was time to start working on the functionality of the buttons. Increase/Decrease fireRate buttons Button was pressed method Turret Machine script FireRate First of all, the entire method of when button is pressed was taken from the tutorial, and I thought, we can make some functions to increase and decrease fireRate in the TurretMachine script. What this does is every time user presses the increase fireRate button, it adds 0.25 to the fire rate, an

Week 10 - Working on project [Progress]

Image
 During this week, we got an approval from our Teacher for the project idea. It was kind off a rough start for this project, because we did not knew how the shooting physics works, and how to spawn particles from the Machine. After doing some research, we figured it out and this is how it went: Dalius: Tasks: Make a machine that shoots Objects, Create a special platform, add multiple projectiles to turret. Description:  First of all I had to find out how the particles/objects are spawned in Unity. To mention that instead of skeet shooting machine, we just used a Turret, which was available for free in Unity Asset Store.  Firstly, I Found out that you need to add a capsule at the tip of the turret, to get a precise location from where projectiles should be spawned. And then after reading API documentation and some unity forums, I found out that there is a method called: Instanciate, and this method takes the projectile, position and rotation. First of all, we instantiate the projectile,

Week 9 - Getting ideas for our last project

Image
We chose the VR Project for the MIX Course's final project. For our last MIX Assignment, each group member had to come up with an idea for what we wished to do. Dalius: Idea : Shooting range / Skeet Shooting Description : Beginning: You can choose with what kind of a weapon you want to shoot the objects. Interactions : The player chooses and brings his object from a table and places it on a machine (or specific place), the machine start throwing the objects which are in the machine (or specific place), and the player can now shoot it. And every time player/user hits an object, increase the speed of the throwing machine. Challenges : You have 2 types of challenges: Hit amount of objects during the Time and Score amount to beat. Buttons for interactions : If a user wants to start the challenge, he needs to press a button, and each of the button will have different names, such as: Challenge 1, etc.  Button to start the machine (Throw an object). 2 Buttons so that you could increase/r

Week 8 - VR Project presentation

Image
A day before week 8, we scraped our scripts, cleaned our levels, and prepared our Mini-golf VR to be fully functional and working. Sayed: Task: F inalizing the project. I deleted all the teleportation anchors I created for the test. Set up the teleportation system for the other scene or mini-golf court and we should have another scoreboard for another scene. Physic material We solved the bouncing problem in unity. We had to create a new physics material and set bounciness to some kind of number(in our case it was 0.7) and set Sphere collider material to our made physics material. Now, if you hit a ball hard, or you hit it up, when it comes back to the ground it will bounce. Making the presentation, test the project one last time and recording it for the mix class. What I learned from this project I personally think this project helped to learn more about the virtual reality and how physics is important to get the best result. I think everything must be as smooth as it can b

Week 7 - Progress of VR Project

Image
We faced huge problems with hitting of the ball, the ball would not go that far with one hit and it usually gets dragged with the club. We tried to solve it, but took a long time and couldn’t figure it out. So, we decided that one of us work on this and the other one work on hand motion. Sayed: Task: H and motion. I watched a tutorial. I downloaded the model object and import it to the project. I created a empty object for my left hand, made a prefab of the model. Rotate it according to VR preview. Each finger needs to be animated. With the animator component I rotate I rotate index, thumb and then other 3 fingers. I created a script that fingers should be moved with the buttons on the controller.  Dalius: Task: Solve the glitch with hitting the ball, set ball's max and min speed After working hard for the solution, we asked Kasper for some help about it.  We got some advices that we could increase Fixed Timestamp and Set Club Rigibodys Interpolite to Interpolite, but neither of th

Week 6 - Progress of VR Project

Image
Week 6 started not too well, cause 2 of the group members decided to quit the group and start a new one. Since we had an idea what we want to do, we sticked with mini-golf idea, and decided to go further with the functionalities. Sayed: Task : M ovement design. Each one us created a mini golf field to start with. I started working on teleportation from one place to another. I created a teleportation anchor at first. Created XR rig. Created empty objects for my right and left controllers.  A base controller for each hand. Added XR controller action based to my base controller and set up references for each controller. Changed the ray from linear to Bezier Curve and changed the color, created a new script to activate and cancel the teleportation. If the player is seated and has not the option of turning around, we implemented a rotation method that with pressing joystick to the right or left he turns 90 degrees accordingly, and finally tested on device. Dalius : Task : Make out of bounds