Sunday, March 13, 2011

still alive

Its always sad to read about news of natural disasters and how many people had been killed or had gone missing. But then I sit back and think, [to quote a friend] what will come, will come eventually. Life goes on.

I'm amazed at the calmness of the Japanese. Even when stocking up supplies, they actually queued up orderly at shops to purchase. And not to mention so far there have been no news [or maybe I just haven't heard any] of looting. In Singapore, people are already fighting over MRT seats during peacetime.

We still have a long way to go in calling ourselves a First World country.

Past two weeks had been chaotic with three midterm tests, a CS3215 assignment, a Singapore Studies tutorial facilitation, a visit to Changi Chapel and Museum as part of a group project for the SS module, fixing stuff from last year's summer project, and IPPT [which I failed by a miserable 8 seconds in my 2.4km run zz], together with the usual dose of weekly tutorials and assignments.

Gave myself a break on Saturday by having dinner and playing L4D2 with friends. L4D2 turned out to be quite fun!

This week onwards the chaos will be back again; had just spent lovely Sunday in school. Well the consolation is that tests have been taken out of the equation. Priority for the week: Mastering Physics Assignment 5, Computer Graphics Assignment 3, and fixing even more stuff from last year's summer project.

****************************************************

CG Assignment 2! Spent quite a bit of time on it because the competition from the cohort is a little intense. But overall I got a good mark for the work I put in hehe.



Assignment 2 was to be familiar with rotation, translation and scaling. Above is the normal mode. Basically planets revolving around a Sun, along with a jumping Pig which I koped from Assignment 1. Optional stuff what I did were random stars fading in and out at random times and simple bright/dark sides of planets depending on which side faces the Sun.



Pressing 'T' switches on to a clock mode, which the planets would represent the hands on the clock. Optional stuff that I did were shifting of the stars to represent the face of the clock, and shifting the stars back to their original positions when switching back to normal mode.

Computationally this assignment is quite intense. Generating 450 stars and 9 planets with random calculations all the time resulted in my laptop's fan spinning at full speed if I were to run the application for more than 5 minutes. The computationally intense part is actually the rand() function.

No comments: