Wednesday, December 10, 2008
-
Week 8
:
Ok we didnt do anything much for CompG practical except to continue on our assignment models which i have already finished.
We also learnt a more indepth lesson onto lighting and how different surfaces will come out different looks such as a flat square look or a smooth look on a sphere. We also learnt more about the huge chunk of code that helps us in lighting and what all the variables really mean.
The Ghost blogged at [5:34 AM]*
-
Week 7
:

In week 7 we learnt about lighting. By adding a huge chunk of code into the myInit part of our code we could make out model look better through the use of lighting. Due to the unfortunate incident where i lost my thumbdrive, my metool model has changed to the model of a Bogle.
We also learnt about the mechanics of lighting and how it affects objects in OpenGL.
The Ghost blogged at [5:20 AM]*
Friday, November 21, 2008
-
Week 6 Practical
:

Army Of Metools... Nuff' said....
This week we were told to create a 3D robot model, this could be used as a starting point for our assignment as well. For my practical i have done a Metool from Megaman, and then i printed out multiple Metools using a for loop.
This week's lecture was about Hierarchical Modeling. This was something like, if the top arm moves the bottom arm will also move, we learnt how we could use this to properly model an arm. We also learnt about Matrix stacks, then we will know which transfromation will be done first.
The Ghost blogged at [11:26 PM]*
Tuesday, November 11, 2008
-
Week 5
:

This week during practical, we were told to make a solar system which rotates and responds to key inputs. My solar system is as shown, when "o" key is pressed all the planets start to rotate, and when "t" key is pressed the ring around the pink planet starts to spin. I also added a command for the planets to fill up with colour, but it looked ugly so i refuse to add a screenshot.
During lecture we learnt about Aspect ratio and a lot of transformations such as rotations and translations, and the math behind all of it, about how the rotations would affect the matrix and everything. We also learnt about Matrix stacks and the Push, Pop functions.
The Ghost blogged at [2:48 AM]*
Thursday, November 6, 2008
-
Week 4
:
We learnt more about the different perspectives in viewing things. Along with how to calculate the U, V and N. There are also different views, such as a one point view where only 1 point is visible and the thing looks flat and 2D. We also learnt the importance of point of view, which can affect how a thing looks like.
In the practical, we were told to create a 3D image. This is the 3D image that i created. The 3D image was created by using flat rectangles and squares to create the sides and finally a whole image.
The Ghost blogged at [4:48 AM]*
Saturday, November 1, 2008
-
CompG Week 3
:

This was what i did for CompG Practical. Basically its a Big W with a sphere in the background. I also changed the background color to gray. The W also rotates around using the Rotatef function.
The W is formed using 9 triangles so that theres more colour and the bars in the middle are just squares.
During the week 3 lecture we learnt about the 3D rendering pipeline and about 3D Geometric Primitives such as triangles and polygons.
The Ghost blogged at [1:50 AM]*
Thursday, October 23, 2008
-
Comp G Lab 2
:
Question 1 – Define a Callback function?
A callback is executable code that is passed as an argument to other code. It allows a lower-level software layer to call a subroutine (or function) defined in a higher-level layer.
Question 2 - When exactly is myDisplay() called? How do you get to your findings?
myDisplay() is called when the main function calls it out with glutDisplayFunc(myDisplay); The main function calls it out by typing out the name of the function.
Question 3 – List the process to access the VRAM.
This is achieved by obtaining a memory space with the same size as the VRAM and double buffer. After manipulating the memory, we copy the content to the double buffer and OpenGL accesses the VRAM.
Question 4 - What color format are we using here i.e. 8 bits, 16 bits, 24 bits or 32 bits?24 bits.
Question 5 - How much memory have we allocated?
800 * 600 * 24 / 3 = 1440000 bytes
Question 6 – Describe what has glDrawPixel() done.
glDrawPixel() reads pixel data from memory and writes it into the frame buffer.
The Ghost blogged at [3:47 AM]*