|
|||
|
|
Assignment
5
NTU
Grand Prix!!
|
||
|
Quick Links Assignment 6 Assignment 7
|
|
Skyboxes
and Height
Maps are
often used to give the game environment a sense of the boundless sky
and terrain respectively.
Approach Used The main points of this assignment is to create a simple world using at least 3 objects: The terrain with texture, the skybox with texture and the racing machine which can be just 2 rectangles. Due to the time constraints (completion within a week), we are also not required to add in advanced features like score boards, buildings, trees, weather conditions, physics, etc. My Approach:
Below is the description of how I create the core features required in my assignment. Terrain The terrain is generated using the Height Mapping technique. I learned this technique from gametutorials.com through its height map demo. Height mapping exploits the fact that a file, e.g. RAW file, can store a single value of information in each of its coordinate/pixel. And in this case, we store the height (Y- values) of the terrain in our RAW file. This is because the XZ plane is going to be proportional to the width and height of the picture file. This way, loading up of heights and storage of the height information can be very efficient. With a terrain/landscape generation tool called Terragen, I managed to create a hilly terrain for my demo (that was exported into a .RAW file). Also, the race track with its yellow-black strip was manually drawn by myself through the editing tool The Gimp 2.0. Skybox The sky of the demo is created by placing the scene inside a gigantic box with matching sky textures. My skybox texture is an edited version of the skybox taken from the demo on Skybox also from gametutorials.com. I superimposed the South Spine picture from the NTU Photo Gallery which Dr Prakash introduced in our assignment handout. By superimposing the South Spine building into one side of the skybox. The race feels more like an NTU Grand Prix! Clamping: This
unmanned Go-Kart simulates a radio
controlled mini go-kart which runs on solar power, hence
the solar panel texture (which was taken from BP
Solar) was mapped onto the top of my kart. On top of these, I also need to make sure that the kart does not fly off the ground like a plane and will always be near or on the ground through a simple height check comparing with the ground's height. Some
quick facts of my project:
You will be participating in the annual NTU Grand Prix, a competition for students with self designed unmanned go-karts to compete with each other. Through this competition, you will"test-drive" the effectiveness and controls of our latest espionage gadget. The UG-K Ver. 0.98. It runs on a BP Solar Panel and is controlled by your notebook keyboard's direction buttons. Take it for a spin and I expect your full report on my desk by 19 September 2004. Good
Luck! This message will self destruct in 5 seconds... "
Key
Controls in this Game:
<---Download Code and Executable---> If you have difficulties downloading the file, please feel free to contact me at: [email protected]
Credits
and Acknowledgments: 2.
To DigiBen, ([email protected]) from www.gametutorials.com for
without his well-explained tutorials and sample codes on skyboxes and
heightmaps, I may not have gone so far. Parts of my code on initialisation
of the window and OpenGL were coded with close reference to his sample
codes. 3. To Marco Monster, because his mini skybox tutorial
on 4. My family members for testing my demo during my 3.5 days of doing this assignment. 4.
Other Important References I could not do without:
|
|
|
|
Best
viewed in 1024x768 :: Sitemap
|
||