|
Sunday, November 16, 2008
Week 5? o.o
We learnt somethings new... 1.Stacks (push, pop, first in last out) 2. gluPerspective Aspect Ratio to window’s Aspect Ratio Question 1 - How did it arrive with the transformed coordinates? (2, 3, 1)=(0+2, 0+3, 0+1) (2, 7, 1)=(0+2, 3+(4*1), 0+1) (6, 7, 1)=(2+(4*1), 3+(4*1), 0+1) (6, 3, 1)=(2+(4*1), 0+3, 0+1) Question 2 - What is/are the transformation(s) applied? The input x is multiplied by 4, and then added by 2 The input y is multiplied by 4, and then added by 3 The input z is multiplied by 4, and then added by 1 Question 3 OpenGL keeps track of only 1 matrix for transformation. It will be tedious to do transformation for more than 1 mesh/ polygon/objects to different locations. Why? That way you will have to keep track of your matrix's current location. Otherwise you will have to keep moving it back to the origin and then back away. You also need to rotate everything back to default before rotating again. Question 5 - What did you see? Screen shot it and explain why is the 2nd cube appeared at (0,0,0)? (currently unable to post due to some unknown problem... will update asap) The cube appears at the same place as the first cube. The cube appeared at 0,0,0. This is due to the translation of 5 units on the x-axis from 0, 0, 0 to 5, 0, 0. It is then followed by another translation of -5 units on the x-axis from 5, 0, 0 to 0, 0, 0.
Posted at 1:51 AM
Sunday, November 9, 2008
For this week, we started to learn more about the different perspectives in viewing all this rendered images. We learnt on calculating the U,V,N. We also realised that there are different point of views of an image such as the one point view where only one point is visible and it looks 2D.  The image to the left is my result of this week's practical. We were asked to create such an image by using rectangles and sqaures. Therefore this is what i have.
Posted at 1:52 AM
Sunday, November 2, 2008
Abt Week 3?
This week's lesson were pretty enjoyable... We got to do an assignment of creating a 3D primitive render using about 8 shapes in total. The image below shows my results.  I was trying to make a 'colourful and random' spaceship from what i had learn. This render was my 2nd attempt since my 1st render was not really acceptable. Also, in case my 2nd render is not acceptable again, i did another one to be on the safe side.  Finally, for this week lecture we learnt about 3D rendering pipeline 3D Geometric Primitives such as triangles and polygons.
Posted at 1:14 AM
Friday, October 24, 2008
Week 2!!! yaY!!!
1. It seems that our perception of colour was unable to tell that the difference of 2 pictures that was shown in the lecture was the shading and lighting., we could not tell that they were of the same colour. 2. Humans see various colors through Rods and Cones. Rods enables us to determine dark from bright while Cones deal with the overall colour. 3. I realised that each 8 bits is used to store the R,G,B content of the pixel which is how we get a 24bit display. As for the 32bit display, they use another 8 bits to implement the Alpha Channel which refers to the level of transparency of the colour. 4. We also learnt the differences between image file types. For example, the Jpeg format does not store alpha but targa does. 5.We also learnt something about the vertical sync, which helps to keep pictures in aligned with one another whenever there is a constant refresh rate. LECTURE 2 QNSES!!!
Qns.1: I want my game to run at 800 x 600 on 32 bits. How much VRAM do I need? Answer: 800 * 600 * 4 = 1920000 bytes ≈ 1.83 Mbytes. Qns.2: My artist are told they have a maximum of 32MB to use for textures. How many textures can they use if they are limit to 256 x 256, with a 24bits palette of 8bits color depth? Answer: 32 MB = 33554432 bytes 256 * 256 = 65536 pixels Bpp = 256 * 3 (bits) Therefore: 33554432 / (65536 + 256*3) ~~ 506 textures
Posted at 6:01 AM
Here are the answers for the practical questions!!! Question 1 – Define a Callback function?A code that passes on to another code as an argument and allows a lower-level software layer to call a defined function in a higher-level layer. We used the function below as a tool to display whatever we woud like to display.void myDisplay (){ } Question 2 - When exactly is myDisplay()called? How do you get to your findings?The function [myDisplay()] is called whenever there is a need to display something. For example when the function [glutPostRedisplay();] is inserted at the end of [myDisplay()], It will then call [myDisplay()] out so that if there any changes were made in the previous display, it would show in the next. The [mydisplay()] function was used to help us display our "sine wave graph", 'the Meltdown" and "the static screen". Question 3 – List the process to access the VRAM.Pixel Plotting is somewhat used to access the VRAM. A struct is created to store the data of all the pixels that is required to be drawn, and then it creates another space which is the same as the VRAM. Finally, the data is sent to the 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 color. Question 5 - How much memory have we allocated? 800*600 pixels, Amount of memory allocated = 800*600*3 bytes=1440000 bytes Question 7 – Describe what has glDrawPixel() done.The [glDrawPixels] take all data from the memory you set earlier, which is all the pixels which you want to colour, and the draws it onto the buffer.
Posted at 5:26 AM
Thursday, October 16, 2008
Data collected from this week...
According to the lecture: Libraries like the DirectX and OpenGL are used to help draw graphics in C++. There are two types of monitors: CRT and LCD Their difference will be such as CRT uses a scan line to print out images while the LCD creates images by passing polarized light. There are also many uses for computer graphics such as for arts and cinematic movies. Certain industries were built in order to improve qualities of these graphics for future use. Qualities of computer graphics has increased drastically from the old times till the modern years. Examples of such old games with graphics ith pixels are Pong and Doom 1. Examples of modern games with such realistic graphics are: unreal tournament and quake. The increase in the amount of realism that computer graphics has over the years has increased dramtically over the years. From the very pixel and cartoony looking games such as Doom 1, to the realistic games such as unreal tournament.
Posted at 6:45 AM
Wednesday, October 15, 2008
The Game Review
Title:
Onimusha: Dawn Of Dreams Platform of Game: Playstation 2 Genre of Game: Action
Developer: Capcom
Product Model Year: Released in North America on March 8, 2006 Game Requirements:
Playstation 2 Console Description of game:It has been 15 years after the defeat of Nobunaga Oda from the previous series of Onimusha: Demon Siege. That was when his vassal, Hideyoshi Toyotomi, took this as an opportunity to take over Japan. He managed to unify it under one banner, which essentially ended the wars that had torn the land apart under his former lord's banner. Though he had good intentions for his country, his high ambitions eventually led him to develop greediness of power, and unfortunately it was during that time disaster happened to strike. The periods of peace was immediately brought to an end with countless disasters epsecially the appearance of the "Omen Star". Demons known as the Genmas returned due to such occuring disasters, and along with Hideyoshi's blind ambitions, the Genma decided to make use of him to take over the human world. With success of that, Hideyoshi then send out massive armies consisting of humans and Genmas to invade Asian contienents overseas, and also started gathering Genma trees carrying the name of the "cherry trees" for the cherry blossoming festival. That was when, a brave young warrior finally showed up to rebel Hideyoshi's wishes. Game Play:You play as "Soki" as the main character as he carries sword and go around hacking genmas, solving puzzles chest and sucking their souls just like the previous series. As compared to the other series, you are able to control most of the camera angles which helps prevent static camera angles that can cause annoying movement problems. Unlike the previous onimusha series except the 2nd: Samurai's Destiny, a shop is availiable after the end of every level which make a good opportunity to purchase strong weapons and Suppiles of many wide varieties to your benefit. Also, another unique feature of this onimusha series is that when you meet up with a puzzle chest and you got fed up with solving the complicated patterns... Just break it! However, instead of having a proper unlocked item, you get a mystery item which you can't use. Therefore, at the end of the level, you are needed to "appraise" the mystery item in the shop (paying is required though) in order to convert it into a useable item. Finally, the most interesting feature of Dawn Of Dreams is that you are allowed to have an ally by your side to fight alongside againist the genmas. You can also give them orders like an "all out attack" or "wait and recover" and the AI will perform the given orders within the best of their abilities. There are 5 characters including Soki in total, each with a unique fighting style, therefore feel free to try each character as you play along. Graphics:For a playstation 2 game, the standard of graphics is exceptionally high, with beautiful colours and effects during gameplay. The characters and enemies were very realistic and the graphics were well balanced throughout the whole game. Therefore it gives a very satisfying experience in terms of gameplay, cutscenes and cinematics.  Realistic gameplay showing fine details of a main character attacking a Genma.  Beautiful effects of the "oni magic" power.  Realistic details of enemies and the surroundings. Graphics in CG movies were also pretty well made and interesting to watch, the details of every model was really well refined and the scenes were beautifully made. Below are some screenshots of a CG movie.    Sound:
The quality of sound in this game are still acceptable. However, the music composed in this game has a different taste as compared to the last 3 series. The soundtracks of Dawn of Dreams give more of a modern tone unlike soundtracks that sounds "ancient". There are also 2 different voices that can be heard during the game. Those 2 different language are the japansese and english versions. Players get to enjoy the game in 2 different experience in terms of sounds. Also, one reason why this game is such a big hit is because there are 2 songs sung by a famous Japanese singer being used in the opening and ending song of the game. That singer is none other than Ayumi Hamasaki. Conclusion:Overall, this game has a really high rating from IGN with a score of 8.8/10. With that kind of score, it is really worth the time to play this unique series of Onimusha. I personally feel that it has excellent gameplay and a wonderful story, and the game doesn't end in 24 hours therefore it's a pretty long and satisfying game.
Posted at 10:33 PM
|