Wednesday, January 21, 2009

Assignment 2

This is the Assignment 2 Standalone file

Assignment 2

Controls

WASD --> Movement
Mouse --> look around

~ --> no clip

123456 --> background change

Labels:

Wednesday, December 10, 2008

Assignment 1

This is the standalone version of my assignment 1. Just click the link to download.
The file host is media fire.

MediaFire link:

Assignment1

Button controls are as such

yghj -> character move
u -> bazooka (enable/disable)

qweasd -> camera controls

n -> jump

m -> disappear / reappear

- -> enable / disable auto animation

1-0 -> individual controls of each joint.

Wednesday, November 26, 2008

Practical 6 - what we did


Basically we had to make a model be able to move sing hierachy modeling. After that i just used a loop to create an army of them.

Wednesday, November 19, 2008

Practical 5 - What we did


This is what we were supposed to do during our practical. Since i was bored, i added a "spaceship"

Labels:

Practical 5 - The Exercise

There were some questions given to us during the lab.

So here are my answers.

1) The quad was scaled by (4,4,4) then translated by (2,3,1)

2)Scale,Translate

4a [ 5 0 0 10 ]
[ 0 5 0 2 ]
[ 0 0 5 4 ]
[ 0 0 0 0 ]

4b [ 0 0 -5 10 ]
[ 0 5 0 2 ]
[ -5 0 0 4 ]
[ 0 0 0 1 ]

4c [ 0 0 -5 0 ]
[ 0 5 0 12]
[-5 0 0 -6 ]
[ 0 0 0 1 ]

4d [ 0 0 -5 10 ]
[ 0 5 0 2 ]
[ -10 0 0 4 ]
[ 0 0 0 1 ]

4e [ 1 0 0 0]
[ 0 1 0 5 ]
[ 0 0 1 0 ]
[ 0 0 0 1 ]

4f [ 5 0 0 10 ]
[ 0 0 -5 2 ]
[ 0 5 0 4 ]
[ 0 0 0 1 ]


5 . The 1st set of cubes end u wrongly. --> since it was translated to the right by 5, the next cube is created at 5 and not the origin. This makes the 2nd tranlsation move it back to the origin.

The 2nd set of cubes is the way we wanted it to be. By applying push,pop, after the 1st cube was translated to the right , we reseted the position to the origin, then created another cube, then translated it left.

Labels:

Lecture 5

Basically.. The whole lecture this week, was maths .

They reviewed 2d + 3d matrix transformations..

Also we learned what is a matrix stack and how to push and pop matrices.

Labels:

Wednesday, November 12, 2008

Practical 4 - The Exercise

We were given a couple of questions to do while we were doing the practical.


2) Fill in the empty space in ( ).

This is the answer, since we aren't allowed to show our code, i just extracted what we need to fill in the blanks.
GL_PROJECTION
(50.0, 1.45, 1.0, 1000.0)
GL_MODELVIEW
(20.0, 60.0, 100.0, 0.0, 0.0, 0.0, 0.0, 1.0,0.0)

3). This question was really a blur to me. I didnt know how to answer it.


4.
What happened to the red triangle ?
It disappeared.

After enabling depth testing,
it showed as it should have.

Labels: