View Full Version : ready to create a game
OK. I think I know enough to start building a simple game(I mean really simple, like a box running around a map shooting spheres and running through walls http://www.opengl.org/discussion_boards/ubb/smile.gif ). I have never programmed a game before and do not know the process of making a game, but many of you in this forum are prolly game programmers of some sort. I know how to set up the OpenGL window, created simple solids and wireframes, transforming and rotating objects, texture mapping these simple objects, and lighting all the simple objects. what is the next step? how do I create a map? do I use QUADS all the way to build a room? then texture it QUAD by QUAD? Please share you insights and experiences here.
09-04-2001, 09:25 PM
You will find tons of information about game development at www.gamedev.net (http://www.gamedev.net)
09-05-2001, 05:07 PM
Well, I started a cool little 3D engine a few days ago. I used a basic derivitave on the old doom idea of building a map out of sectors. the idea being that each sector is a rectangular area, bounded by 1 or more wall. Every sector can have a different floor/ceiling height.
This is pretty cool, because you can check entire sectors at a time for visibility and save tons of culling calculations.
It also loads from a file. All you do is have the file specify the bottom left and top right x,z coord of each sector, floor and celing height for each sector, and 2 x,z coords for each wall. That is the left coord (looking down the normal) and the right coord. It world pretty good, and even with basic code its runs really fast.
If your interested i'll email you the source.
yes, may I see it? What video card are you developing on, I am on an ATI all in Wonder and it runs really slow with only 2 textures binded to walls and ceilings, It believe it does everything on the CPU.
Here is my email:
09-06-2001, 01:50 PM
to create levels, you can use a text file and you store the vectrices and the texture coordinates inside,you will need some structures.
you can use every kind of primitive that you want, all depends how do you have coded your world loader.
a text file format has got it's limitations, but it's easy to start.
well,i've seen a sample at
Oh no ! i've say it !
I can do simple square rooms and hallways linking the rooms using a text file because I can imagine it in 3d space and plot out coordinates, but what if I want to do something a little more complicated, let's say a volcano or a hill, how would I go about it? I don't think opengl has boolean operations like AutoCad such as union and subtract does it? that would make building things much easier.
09-06-2001, 07:58 PM
Get a 3D program that will save to a basic text file format (DXF?). Write a proceedure to inport that format into your engine.
Blender.co.uk has a free 3D modeler.. that looks good, but I have not used it..
09-06-2001, 09:25 PM
Actually, I believe you can. Theres a function called glBeginTrim, which you can use to subtract areas by winding the shape to be cut in the opposite direction.
I've only ever seen this running with a gluBeginSurface, which was used to define a nurbs surface, although it might be applicable to quads etc.
You could also look up gluIntertior for concave polygons.
I'll email that prog tonight when im next online. (I'll try and comment it a bit more).
09-06-2001, 09:32 PM
I just released my new OpenGL freeware game with open-source called 'AblazeBall'.
Maybe it could help you by creating your own first game...
It could be found here: www.ablazespace.de (http://www.ablazespace.de)
My friends and I recently made a game for a class that we took at college. You can see some screenshots of it at
It's nothing complicated, just your basic shooter. It took us ten weeks from start to finish...er....when we had to turn the project in http://www.opengl.org/discussion_boards/ubb/smile.gif
[This message has been edited by Tone (edited 09-08-2001).]
thanks for your help guys, right now the fastest way for me to learn is by looking through codes and see how they are implemented, I also got an online copy of the Redbook which helps a lot. I have not done much coding in the past few days,(Watching US Open: Go Pete!)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.