torsdag 28 maj 2015

Creating the final scene in Unity

Today we put together the whole scene in Unity. First we imported the wall with the windows which is shown bellow.
We did also create the floor by creating a tiled bases texture that can be repeated over and over again. In Unity we used the shader called "Bumped Diffuse" which allowed us to repeate the texture and use a Normal Map aswell.
Tiled Texture

Next we created the window frame that's in the window.

We angled the directional light so that it would shine through the windows, at first the wall did not cast any shadows which was due to it being a plane and not having a backside with normals pointing out. This was solved by covering the back of the wall with planes facing outwards, by doing so we ended up with the result below. The window itself was created by using a plane and applying a transparent shader.


Aftrer that we added the wall on the other side, two doors and two paris of different lamps. A simple frame was added to the door before it was imported. We also restricted the area with two transparent walls on each side. Two of the lamps have spotlights which shine on the tables.


Finally we created a small script for changing the color of the lights because we thought it would be fun. The lights was quite hard to see where the directional light was shining so a third light was added between those two, where it was much easier to see. We also made it possible to dim the lights.
The documentation on Unitys website was very usefull when writing the script, Script Light Behaviour

This is the final result of our project in this course.

K (hold) - make it darker
J (hold) - make it brighter
R - Red Light, T - Green Light, Y - Yellow Light, U - Blue Light, I - White Light

/Staffan & Jimmy

Inga kommentarer:

Skicka en kommentar