Tuesday, October 21, 2008

My first Attempt at OpenGL

LECTURE
This week's lecture is about the size and the difference of colour in computer graphics. For example a pixel takes about a byte and that colour is more or less human perception not. for example the colour is actually the same in a bunch of tiles, but the eye perceives it differently.

Question -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?

(32*1024*1024)/((256*256)*(24/8)=170

LAB
Question 1 – Define a Callback function?
A callback function is a function that is called through the pointer of a function. The address of the pointer is passed as an argument to another, when that pointer is used to call the function it points to it.

Question 2 - When exactly is myDisplay()called? How do you get to your findings?

It is called after the initialization of the program window. It can be seen in debug mode. Set a breakpoint at the point when it calls for myDisplay().

Question 3 – List the process to access the VRAM.

It first obtains the memory pointer to VRAM. Then it obtain double buffer memory. It then clears double buffer memory. There after, modify double buffer memory, Copy double buffer to VRAM. aand then clear the double buffer memory again.

Question 4 - What color format are we using here i.e. 8 bits, 16 bits, 24 bits or 32 bits?

8bits.

Question 5 - How much memory have we allocated?
800*600*1= 480000bytes


Question 7 – Describe what has glDrawPixel() done.
It begins the command to draw the pixels on screen. This line is initialised before the image appears on screen.


For the practical, it is the first encounter to opengl. thus it was the first time we got a particular art on the screen. after drawing a couple off lines i experimented with the code and created some of the following.

Here is some screenshots from the lab practicals.






Tuesday, October 14, 2008

Command & Conquer Red Alert 3

Title of the Game: Command & Conquer: Red Alert 3

Platform of Game: Available on the PC, Xbox360 & Play Station 3

Genre of Game: Real Time Strategy

Developer: Electronic Arts Los Angeles

Product Model Year: 27 October 2008

Game Requirements: OS Windows XP SP2, Windows Vista (32-bit)
CPU Any Intel Core Duo machine,
XP: Intel Pentium 4 2.2 GHz or better, AMD Athlon XP 2100+ or better,
VISTA: Intel Pentium 4 2.6 GHz or better, AMD Athlon XP 2800+ or better
RAM 1GB or more
VIDEO NVIDIA GeForce 6800 or better, ATI Radeon X800 or better
SOUND DirectX 9.0c compatible sound card
DISC DRIVE 8x DVD drive or better
HARD DRIVE At least 10 GB of free space
Internet connection required to install (Cable, DSL, or faster connection)

Description of the game: Red Alert 3 is the next epic sequel to the Command And conquer franchise. It is the brainchild of the then, Westwood Studios. The game continues where Red Alert 2 left off. However with a new plot twist. With the soviet union backed up in Moscow facing almost total loss, on all fronts, A general(Played as Andrew Divoff), the leader(played as Tim Curry), and a scientist(played as Autumn Reeser), went back in time to erase Einstein from history. They return to the present finding themselves with an altered time line where nuclear weapons were never created and where the allied forces have freeze rays and the new faction, the rising sun. The Franchise is famous for its well known cheesy yet exciting Full Motion Video, with this time round, a full star studed cast.

• Gemma Atkinson (the UK's Hollyoaks)
• Tim Curry (Rocky Horror Picture Show, The Hunt for Red October)
• Andrew Divoff (LOST)
• Kelly Hu (X2, The Scorpion King)
• Jenny McCarthy (Scream 3, former Playboy Playmate of the Year)
• Ivana Milicevic (Casino Royale)
• Jonathan Pryce (Pirates of the Caribbean)
• J.K. Simmons (Spider-Man, Juno)
• Autumn Reeser (The OC)
• Peter Stormare (Prison Break, Armageddon)
• George Takei (Star Trek, Heroes),
• Randy "The Natural" Couture (former UFC Heavyweight champion)
• Gina "Conviction" Carano (Undefeated Elite XC fighter, American Gladiators)

The game is famous for its’ over the top acting where the actors take it so seriously it’s almost a joke in itself. The game sprouts random humor as it progress and allows players to enjoy it.

Game Play: The Game features Full Motion Videos by real life actors before and after the game play itself in story mode. The campaign is built around the ability for you to bring your friend along with you as you play the campaign. Unlike previous spin-offs, multiplayer now plays a key role in story mode. This changes the whole aspect of game play, where you can now drag in a friend. Alternatively, if you rather play yourself, you can choose one of 12 commanders all of which are smart enough to not require hand holding but dumb enough to not win the game for you. Each of these commanders are also voiced and acted by real actors, thus bringing a new aspect to the genre. Each unit has now 12 quotes when you click on them and they now interact among one and another when you put them close to other units. From what I’ve seen, the soviets appear to take subtle humor into the game more than the allies, but this remains to be seen.

Naval Warfare is now a key in the game, where many fans previously state that naval warfare was ignored, now, the sea plays important strategic role in the game. Buildings can be built on the water and tanks are now amphibious. I almost laughed aloud when I found out that tesla coils and tesla boats are in the water, with it almost bothering on insanity.

Graphics: Graphics Wise, the game breaks no new barriers, with its’ modified SAGE Engine, it is practically a clone of the then Red Alert 2 game. It does give reminisces of the C&C: Generals Engine, however the outline of the game is more humorous then serious, thus the graphics tend to look a bit cartoony, however the water in the game is Fantastic.

Sound : With the Star-Studed cast sharing both their voice with the game and their bodies(no pun intended), Sounds are definitely a step up. With unit interaction and the subtle jokes and chit chats among soldiers spilling into my speakers, I was giggling like a little girl everytime they made a subtle joke.

Every Explosion and battle sound effect, it almost feel like you are fully submersed into the game.

Conclusion: With EA’s announcement that they are hiring movie directors to create games, this is a good step into their line. Another promising sequal to one of the most longest running series, Command And Conquer.