Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to create a game with playfield as shown in the video in OpenGL

I have fair knowledge of OpenGL and I know this playfield can be rendered using several different cubes but that takes a lot of effort. Also it takes away the power of easily modifying the field. One idea that was suggested to me to solve this problem was to use an XML file describing almost every component of the game. Like the floor, walls , moving floors, moving obstacles etc. That way i can easily change the playfield when I want. But this approach also seems tedious. Also I couldn't figure out the structure of the XML that would make my life quite easy. So is there any better way to create or store information about the playfield than suggested above?

Note : Blender is also an option. But please provide a tutorial if you are suggesting the Blender way.

share|improve this question
Do you already have an engine you're using? Is the question about the act of making the model or rendering it to screen? – Tetrad Oct 19 '11 at 22:12
Its just the question of making and then rendering it on the scene. As you would know if you create a model in .obj format you can easily render it in opengl but .blend format is pretty hard to render. – snape Oct 19 '11 at 22:16
up vote 1 down vote accepted

You will need to learn how to use shaders. The models are not complex, and it uses a simple bloom shader. See This tutorial here for modern OpenGL programming.

share|improve this answer

What you are really asking is how to build an entire game with this mechanic. Although this isn't really a full tutorial here is something to get you started..

  1. Learn a programming language that OpenGL supports, I recomend C++ as it is excellent for game programming.
  2. Learn basics of OpenGL; Setting up a scene, rendering textured models, displaying 2D sprites, displaying font, using shaders, and basic animation.
  3. Learn a bit about game loops and game logic to make the base of your engine.
  4. Study the mechanics of the game design and what you want to do with that.
  5. Then try to bring them all together part to part in small increments and you will have a start to a game.
share|improve this answer
Please correct me if I am giving you a tutorial on what you already know, you left a bit of an unclear question. – Matt Jensen Oct 19 '11 at 22:51
I know all the basics of OpenGL. I lack knowledge in game loops and game logic. SO what I am really asking is that how should I maintain information about Levels in my game where Levels indicate the way playfield is created. – snape Oct 20 '11 at 8:38
"3D Game Engine Programming" by Stefan Zerbst is a fantastic start and the structure of Quake is perfect for beginners. – Matt Jensen Oct 20 '11 at 23:23

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.