top of page

What I've learnt so far

While I may have been recording what I was doing for the past four weeks here at my internship, I never really got into the details about what exactly I was learning. Of course, some of you who have a background in game design may have guessed already, but for those that are just as new as me. this is what this category of blogging is going to be about. I'm also going to talk about the days I didn't manage to get anything accomplished, because it's important to note that I wasn't always getting something done everyday. There were lots of days I tried for so long to make a specific function work, but it just never did. So let's start with what went wrong, and in the following blogs, I'll explain what went right.


How I animated my cameras?


While it may have come across as me understanding the basics of Unity fairly easily, I actually spent lots of time outside the office searching up tutorials of such simple things such as moving the canvas around using the middle mouse button. It took several days for me to just grasp the fundamentals, and even then when I started with my trophy animating, I was using scripts for all five scenes rather than animating the camera. I spent almost three days with that method until I realized that animating was so much easier.


How the import was fixed in Unity?


One of the earliest problems I encountered was importing my Blender model into Unity. Initially, I imported it as a .fbx file, but when certain textures did not load in the Unity scene, I quickly went back to the export settings in Blender, and ticked "Bake animation"(this part may have been unneccessary since the trophy did not have animations), and also ticked "Limit to selected objects". This ended up getting the bottom face back, but not the text.

How I got the text into Unity?

To fix the text problem, I first went into Photopea to get slightly better .png files, since some of the previous pictures were slightly tilted. Once those were done, I realized that the colors would still not match for the base text. And so I went back into Photopea, and adjusted the saturation and vibrancy so that it matched the gold color of the trophy model. Having finished that, I reimported both stickers on to Unity, and manually adjusted the size and scale and lined it up with the trophy.

How I achieved the metallic effect?

As for how I achieved the color of the trophy itself, that was rather simple. The first picture clearly shows a very basic yellow and red color with no shine and metallic effect. To fix this, I simply created two new materials on which I adjusted the Metallic and Smoothness scale to make a gold like effect. I then did the same for the base of the trophy, giving it a slightly duller look. Reflections were done using reflection probes, which I didn't understand had box projections, which greatly enhanced the effect of the shine.


If anyone has any questions, you can always feel free to ask by commenting on the blog on which you have a question, and I will do my best to respond immediatly and to the best of my capability.


How I fixed my code?

One of my scripts was designed to rotate the camera around the trophy at a constant speed at an equal y level. To do this, I added my code into the Start() method rather than Update(), because I thought that once it would be called at start, it would run for the rest of the scene. Rather, putting it in the update was the right decision since then it would be called every frame, and hence smoothly rotate around the trophy. _______________________________________________________________________________________________________



ree

Image Source: One of the earliest drafts of my unity project, where the bottom face was not rendering in, and textures were also gone from importing.



ree

Image Source: How I manually imported the words on the circle and base text as png images and lined them up with the trophy.


using UnityEngine; public class CameraRotator : MonoBehaviour { public GameObject target; void Update() { transform.RotateAround(tartransformget..position, Vector3.up, 20 * Time.deltaTime); } }

Image Source: My code from Unity for rotating the camera.

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page