Sunday, December 16, 2007

CG_Assignment

When i start off this assigment i know excatly what i want to model. A plane! It sounded simple, thinking that it requires a few triangle. So i began my research to find apporiate blueprint.

That's when i found this.

Photo Sharing and Video Hosting at Photobucket

The F-5 Freedom Fighter

There's no way i can do this in actual detail so basically i do the rough shape out only.
I started off with a pen a paper. I separate the plane into differnt sections. For example, the main body(the middle part), front side wing, tail wing etc. After seperating, i draw it out. At the same time i was already plotting the vertices. So when i came the school, all i had to do is copied it down into opengGL. Next is the matrix stack. Then i had my plane already. Afterwards i did the color. Which turned out like this. Photo Sharing and Video Hosting at Photobucket

So basically i spend time doing the animation, moving cameras and such afterwards.
Bottom are just more screenshots at different angles.
Photo Sharing and Video Hosting at Photobucket


Photo Sharing and Video Hosting at Photobucket

Photo Sharing and Video Hosting at Photobucket

Photo Sharing and Video Hosting at Photobucket

Tuesday, November 20, 2007

Q&A from Practical 3 & 4

Practical 3
Qn: Define a callback function.

Ans:The RenderScene() callback function is where all instructions on how to
render (or draw) our scene are placed. When programming in GLUT and in many commercial game engines, remember that callback functions are an essential part of the programming style. It is a good way to hide the complicated inner workings of lower level subsystems and frees us to focus on the game logic at hand.

Qn: What color format are we using here (example 8bit, 16bits, 24bits,32bits)?

Ans: 24 Bits

Qn: How much memory have we allocated?

Ans: 800x600x3bytes

Practical 4
1) OpenGL stores drawing information in the form of matrices. on the. Can you briefly describe what does MODEL VIEW matrix and the PROJECTION matrix does?

Ans: selecting the global matrix to be modified

2)We can reset the matrix by loading an identity matrix on the top of the stack. What command is used to reset a matrix?

Ans: glLoadIdentity();

3) Some parameters have to be set so that our eye can see in the 3D world. The human eye has a field of view approximately 100°. It also has an effectively infinite viewing distance. Which command is used to setup such parameters for the virtual eye?

Ans: void gluLookAt( GLdouble eyex, GLdouble eyey, GLdouble eyez,
GLdouble centerx, GLdouble centery, GLdouble centerz,
GLdouble upx, GLdouble upy, GLdouble upz )

Computer Grapchis(CG_Camera)

Here I learn to look at an object in different view

Photo Sharing and Video Hosting at Photobucket


Photo Sharing and Video Hosting at Photobucket


Then learn to create a WireSphere
Photo Sharing and Video Hosting at Photobucket

Wednesday, October 31, 2007

Computer Graphics (Shapes)

I learn new things in computer graphics which is making shapes. Basically it is plotting points on the screen. For example, the points (1,0) (3,0) (2,1). Once you ploted them the area inside is colored but you have to set the color before plotting. So I learn to make triangles, squares and much more. Either use 2 triangles to make a square or use a quads. With quads you can make many different shapes. Below are what i have make using many different things.


Photo Sharing and Video Hosting at Photobucket

Making a square was tricky at first because you have to plot in seqeunce from 1 side to another.
For example

glColor3f(0.5,0.1,0.9);
glBegin(GL_QUADS);
(1)glVertex3f(-1,-1,0);
(2)glVertex3f(1,-1,0);
(3)glVertex3f(1,1,0);
(4)glVertex3f(-1,1,0);
glEnd( );

You can't swap (2) with (3) or else the shape won't be a perfect square even though if you think about it, the points should make a sq but it dosen't work that way.

Monday, October 29, 2007

Computer Graphics

Photo Sharing and Video Hosting at Photobucket


This is what I have learnt during Computer Graphics module in my course. It is done using C++ with sine wave. It is quite fun to play around with the colours.


Photo Sharing and Video Hosting at Photobucket


This picture above is what they called Meltdown. Although in my case i change it a little to make it go from bottom to up. The original which is from top to bottom can be used to make it looked like blood is dripping downwards like is a gore/horror movies.


Overall i find that learning Computer Graphics is getting interesting although i kinda hate doing C++ but since the lecturers were kind enough to give out the codes for us to play. It's kinda fun now.

(Ignore the stupid face. Was fooling around with PixelPloting)
(Here's another picture with the sinewave being 'twig' a little)

Photo Sharing and Video Hosting at Photobucket

Wednesday, October 17, 2007

Game Review

Photo Sharing and Video Hosting at Photobucket



Title of the Game:
Splinter Cell: Double Agent
Platform of Game:

PC Game
Genre of Game:

3rd Person Stealth-based


Developer:
Ubisoft Shanghai (Version one), Ubisoft Montreal (Version two),
Ubisoft Annec & Milan (Multiplayer & Challenge Mode)
Product Model Year:
November 2006

Game Requirements:
Intel Pentium 4 3.0 GHz or equivalent CPU, 1 GB RAM,
10 GB hard disk,DirectX 9.0c, Shader 3.0 enabled 128 MB video card (256 recommended)


Description of the game:
Tom Clancy's Splinter Cell: Double Agent is the fourth installment in the Splinter Cell series of video games developed and published by Ubisoft. follows the character Sam Fisher, a "Splinter Cell" employed by a black-ops division of the National Security Agency, dubbed Third Echelon


Game Play:
Single Player, Multiplayer

Graphics:
Top notch. Very realistic. Need a REALLY good computer to be able to play without
flickering or lagging

Sound:
Best to use headsets so you can hear people footsteps or hear them talking. Smallest sounds
like stepping on a puddle can be heard either your own or theirs. Stealth is the key to the game so listen intensively


Conclusion:
Overall it's a good game that requires you to be intensively aware of your surroundings and think twice about the actions you want to make. Each move will have it's consequences

Mathematics I Recap


I don't remember much anything now. I need to do the actual work to refresh my memory. What i remember is matrix mostly. Vectors are what i'm not quite good at.