My adventure with Unity3D begins with a video by Jimmy Vegas on Youtube. The first video showed me how to open and setup Unity, told us about the programming languages we'll be using, namely C#, about how to create and manipulate simple 3D object, as well as a terrain creation. The second video told us how to put texture on a terrain, how to raise and lower terrain and add a normal map. A normal map is a trick that computers use to make flat terrain seem bumpy by adding fake shadows to the texture. We were also shown how to add texture to objects and change their properties. In the third part, we were told more about C# and the scripts in unity. We learned how to add trees and grass and how to make them sway in the wind and change their colours. The video also shows how to add a player character, and demo the game (walk around in it, etc). Next we were shown how to add a gem (a custom 3D object), and how to add a script from Visual Studio to make the gem rotate. ...
Source: own image Would I call this playable? Yes Would I call it fun? No There's more coding to this than I previously thought there would be. So far I have made a spaceship from four stretched cubes and made it move around and rotate with W A S D. I also made a simple model for an asteroid and added scripts to make them a random scale and make them rotate in a random direction. Then I repeated them in a cube grid of 10 x 10 x 10 pattern so they make a huge cube. I still need to add offsets to the asteroids to their locations are less "regular" and it doesn't look like a massive cube.
Back with a bang Break's over ladies, back to Unity we go. We waste no time and get right into it with an official tutorial from Unity themselves. The first three lessons get us back up to speed with the basics of Unity. We also get to change the layout of Unity itself to make it more comfortable to use for our purposes. The first thing we do is import an existing Unity project from the Asset Store. Then, we add the assets into our scene, namely a vehicle the player will take control of, as well as obstacles that the player will have to avoid (or not!). Secondly we add some basic code to make the vehicle move forward. To put it simply, the code changes the position of the player vehicle by X amount in Y direction on every "update" (frame) that the program runs. The speed of the vehicle can also be easily changed. After that, the camera is attached to the vehicle so that it follows it and a few lines of code later, it is also located in the right place! Next, we dupl...
Comments
Post a Comment