Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Opengl maze

Posted on 2011-03-02
4
Medium Priority
?
1,241 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
ID: 35019590
Do you intend to render the game with a 2D view?
0
 

Author Comment

by:tango2009
ID: 35019681
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
ID: 35028557
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 2000 total points
ID: 35029505
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Progress

885 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