Wednesday, 26 November 2014

Solar Panel

I needed to model a Solar Panel and learnt a lot whilst doing it about texturing and more practical ways of modelling. 

I'm quite happy with how these three objects on the solar panel turned out. I usually don't do much texturing and it took me a while to get the hang of it. The automatic mapping was incredibly useful and I didn't know about it until this task. I also put into practice the technique we learnt in one class about overlapping textures together and blending the edges so that the textures aren't stretched and looks more natural. I am really proud of the how the 'glass' on the third box looks as I spent a while editing and drawing over it so that the cracks looked sort of natural and didn't just end abruptly, but rather worked with the hole in the middle.
Although it perhaps doesn't look like much I think this is the best thing I've ever modelled and I have put a lot of work and time into it as I'm not the fastest or most skilled modeller.

TimerScript

My job on this task mainly was to do the coding. I have not really coded before so this was all a very new learning experience for me and I have learnt a lot over the course of this.

This timerScript was something I haven't tried before and I learnt about GUI text functions. This script links together with the other scripts and I really learnt how useful 'if' statements are and how they can be used to their full potential. Not shown here I also found out that you can change the colour of a GUI Label by writing ' GUI.color = Color.green; ' in the OnGUI function. By Putting the restSeconds into an 'if' statement with gameOver = false it stops the timer when you reach the trigger zone which was an issue I was having for a while. The timer used to just be in seconds but I found that by putting in the String.Format it allowed me to choose the setting for minutes and seconds and it made for a much neater looking and intuitive timer. 



All the private variables make for a neater looking inspector and allow for me to assign lines of code to them without errors. The one important public variable that's needed is the timeRemaining as it means it can be adjusted in the inspector which is easier than going into the code every time to change the value of the timer. Here I downloaded a custom font so I was able to adjust the size of the font and make it much more readable for the player to see. I think white is the best colour for it as we have quite a dark game and it shows up well in pretty much all of the lighting. I learnt a lot about GUI Texts during this and how to adjust the text so it's much easier to edit and customise, rather than putting all of the information into the script. 






Group Concept

For our rooftop we settled on an apocalyptic theme, inspired a lot by the game I Am Alive.
However we agreed that we wanted it to be set in the sort of near future so we could put a spin on some of the designs of things found on a rooftop. We drew up a couple of concepts of a basic rooftop and came up with a sort of final idea for the plan of our roof along with the object on top of it. 
We were originally going to have a roof garden and I was to draw up some ideas for plants, however we had to scrap the idea due to time constraints. We decided that we wanted to keep the colours simple with a main one and chose blue. I think blue fits the theme and the look well. Picture drawn by Alex Porteous.
Our basic idea for gameplay is a timer. We have some pickup object which add time to the timer and you have to collect them and get to the end point before the time runs out or the game resets. We decided on a gas mask as our apocalyptic world is due to a nuclear fallout.