Tuesday, October 28, 2008

Exercise 1 - Drawing points
Exercise 2 - Drawing lines
Exercise 3 - Drawing triangles
Exercise 4 - Drawing Quads
Exercise 5 - Polygon Face Culling
Exercise 5 - glEnable(GL_CULL_FACE)
Exercise 6 - To add colour
Exercise 7 - A pointy try
Exercise 8

Tuesday, October 21, 2008

Week2 Practical
Exercise 2
Exercise 3 MeltDown
Exercise 3 SineWave
Exercise 3 StaticScreen




GLUT

What is GLUT?
GLUT is a short form for OpenGL Utility Toolkit. GLUT is a library of utilities for OpenGL programs, which primarily perform system-level I/O with the host operating system. Functions performed include window definition, window control, and monitoring of keyboard and mouse input. Routines for drawing a number of geometric primitives (both in solid and wireframe mode) are also provided, including cubes, spheres, and the Utah teapot. GLUT even has some limited support for creating pop-up menus.

How was GLUT formed?
GLUT was written by Mark J. Kilgard, author of OpenGL Programming for the X Window System and The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics, while he was working for Silicon Graphics Inc.

Uses of GLUT
The two aims of GLUT are to allow the creation of rather portable code between operating systems (GLUT is cross-platform) and to make learning OpenGL easier. Getting started with OpenGL programming while using GLUT often takes only a few lines of code and does not require knowledge of operating system–specific windowing APIs.

Limitations


  • The library requires programmers to call glutMainLoop(), a function which never returns. This makes it hard for programmers to integrate GLUT into a program or library which wishes to have control of its own event loop.


  • The fact that glutMainLoop() never returns also means that a GLUT program cannot exit the event loop. freeglut fixes this by introducing a new function, glutLeaveMainLoop().


  • The library terminates the process when the window is closed; for some applications this may not be desired. Thus, many implementations include an extra callback, such as glutWMCloseFunc().

Note:*All GLUT functions start with the glut prefix (for example, glutPostRedisplay marks the current window as needing to be redrawn).

FREEGLUT

What is FREEGLUT?

Freeglut is a completely OpenSourced alternative to the GLUT library. GLUT (and hence freeglut) allows the user to create and manage windows containing OpenGL contexts on a wide range of platforms and also read the mouse, keyboard and joystick functions. Freeglut is intended to be a full replacement for GLUT, and has only a few differences.
How was FREEGLUT formed?
Freeglut was originally written by Pawel W. Olszta with contributions from Andreas Umbach and Steve Baker. Since Pawel ceased working in 3D graphics, he passed the baton to Steve Baker. Steve is now the official owner/maintainer of freeglut, although John Fay does most of the day-to-day work. Pawel started Freeglut development on December 1st, 1999. The project is now virtually a 100% replacement for the original GLUT with only a few departures (such as the abandonment of SGI-specific features such as the Dials&Buttons box and Dynamic Video Resolution) and a shrinking set of bugs. Freeglut contains a few enhancements over the original GLUT - but as a matter of policy, no further significant features will be added.

OVERALL

FREEGULT VS. GLUT
Freeglut is now very stable and has fewer bugs than the original GLUT. However, there are places where the original GLUT specification did not make clear what order things like callbacks occur and it is possible for application programs that work under GLUT to fail under freeglut because they assume something that GLUT never guaranteed to be true.

Sunday, October 19, 2008

ShiVa 1.6.2 OpenGL 3D Game Development Platform now with iPhone export

OpenGL (Open Graphics Library) is a standard specification defining a cross-language cross-platform API for writing applications that produce 2D and 3D computer graphics. The interface consists of over 250 different function calls which can be used to draw complex three-dimensional scenes from simple primitives. OpenGL was developed by Silicon Graphics Inc. (SGI) in 1992 and is widely used in CAD, virtual reality, scientific visualization, information visualization, and flight simulation. It is also used in video games, where it competes with Direct3D on Microsoft Windows platforms (see Direct3D vs. OpenGL). OpenGL is managed by the not-for-profit technology consortium, the Khronos Group, Inc.

ShiVa is an all-in-one development tool, dedicated to 3D games creation. The engine is cross platform, and uses OpenGL for rendering on Windows, Mac OS X, and Linux, and OpenGL ES on embedded devices. In other words, ShiVa is an authoring tool for creating interactive 3D graphics such as video games, serious game and all other 3d real time applications. The game engine uses OpenGL, OpenGL ES or DirectX, and can also run in software mode.

ShiVa is a unique tool, based on the StoneTrip cross-platform technology [Ston3D]. Its applications can be used directly without any alteration on the web or through the standalone engine (Ston3D Player) regardless of capacity or power. Ston3D Engine is now available for iPhone and iPod Touch ! It enables users to create 3D Games and publish them on the AppStore directly from ShiVa without any fees.

Reference:

Tuesday, October 14, 2008

Computer Graphic Practical 1: Game Review

"Sonic the Hedgehog 2" is developed by American studio Sega Technical Institute in collaboration with Sonic Team, and published by Sega for the Mega Drive/Genesis. I have always been playing it with my brother and cousins during family gatherings since we were young. The following is a review of the game, "Sonic the Hedgehog 2"

Game information



Title of the Game: Sonic the Hedgehog 2
Platform of Game: WII, GEN and Xbox 360
Genre of Game: Platform game
Developer: Sega
Product Model Year: Released on Sep 12, 2007
Game Requirements: WII, GEN and Xbox 360

Description of the game
Sonic 2 contains twenty levels of loops, launchers and bumpers you'll jump over, roll through and spin-dash under all while collecting rings and rescuing baby animals. Sonic also has a sidekick, in the form of a fox named Tails that follows you around. If you hook up a second controller, someone else can control Tails and make your job a lot easier.

Game Play
You can hook up a second controller to enlist a friend's help when playing in the single-player mode and to challenge him or her in the split-screen versus mode. However, the XBLA release of Sonic 2 goes one step further and allows you to compete against other Xbox Live members in versus matches.

In single player games of Sonic 2, you'll control the heroic hedgehog, while the computer takes charge of Tails. In two-player games, the second player controls the two-tailed fox. The action follows the hedgehog, though, and Tails often gets left behind.

Graphics







The first two pictures are the newest version of Sonic whereas the last second picture is the mid version. Finally, the last picture is the older version.

Sound
Sonic the Hedgehog 2 has lighthearted sound effects, like when you get the rings on the way to the end of the level. Unlike other games, Sonic has various musical theme.
Video

direct link: http://www.youtube.com/watch?v=Jle4otdZLjU

Conclusion
Indeed, the graphics is getting better and better with more and more new versions coming up. Overall, i feel that "Sonic the Hedgehog 2 " is a very well developed game as it attracts many players. It's a must play game!