Monday, July 9, 2012

Assignment A (WIP07)

Solving Problem of Slow Start-up
Turned on each of our objects one by one to find out what causes the problem of loading too long when starting up. The problem was because of the machine gun. Therefore I went to find another model and texture it again. Problem was solved! Now we do not have to wait for so long for it to start up!


Creating Light Animation
We want the lighting to decrease as half of the time passes to increase the difficulties of the player to collect the coins. Therefore, I research tutorials and follow some ways to animate the lighting of my scene. After hours of trying, I was about to get what I wanted.
Firstly I added a script, calling it "DayToNight", this is to get the light(sunlight), camera and the day and night materials.
Then I added a "Changing" script, this is to create the moment change between the day and night.
I was having problems after I am down following the steps as my scene gets way too bright and was not dark enough when it comes to night, also the time when it turns dark is way too fast, like at right at the start of the game, it starts to get dark, which are not what I wanted.

After some tries, I am able to solve the problem by tweaking the Ambient Light in the Render Settings darker so my scene will go even darker when comes to night time. As for the time, I am able to tweak the range value of my light to about 2800 and the environment only turns darker after my time passes half.

Result:


Creating Alert Sign
I tried to create an alert sign when my character gets closer to the guns. I found a way which is using the Distance in the script to count and locate the distance between objects. I also want to add a GUITexture. However after much tries, there are still errors that I do not know how to solve.

No comments:

Post a Comment