Solved

Opengl maze

Posted on 2011-03-02
4
1,057 Views
Last Modified: 2012-05-11
I am going to start programming a simple game in opengl. I want to draw a maze that a player must navigate. Is there any other way to draw a  maze without having to draw every single polygon separately. When I program 2d games in java you can create an array of tiles. Is there anything similar in opengl for 3d levels that can allow you to quickly create maps.
0
Comment
Question by:tango2009
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:satsumo
Comment Utility
Do you intend to render the game with a 2D view?
0
 

Author Comment

by:tango2009
Comment Utility
No I want the game to be a first person view where you have to walk around the maze. I do not know much about opengl yet but is there a better way of constructing the maze than drawing every polygon.
0
 

Author Comment

by:tango2009
Comment Utility
Can you load a maze from a data file as I have read on some websites? Do you know anything about this or where there are any good tutorials on the subject.
0
 
LVL 12

Accepted Solution

by:
satsumo earned 500 total points
Comment Utility
Sorry, tango2009, I do know about the topic, the thing is I have other work to do.  If the answer might be long or involved the site gives me no motivation to answer.  EE needs more experts in this area.

To answer briefly, yes, the program needs to use polygons, but it doesn't have to draw the whole maze.  Only a small part of the maze is visible to the player at any time, the trick is drawing only the part that is needed.  That's where the program gets more involved.

I don't know of a maze file format or where you would find tutorials.  Perhaps there is some kind of Maze Builder program?  I found of few web page that generate them.  Mazes are actually just tile grids, like you mention in your other question.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A short article about a problem I had getting the GPS LocationListener working.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now