Solved

Opengl maze

Posted on 2011-03-02
4
1,163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

751 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