?
Solved

Opengl maze

Posted on 2011-03-02
4
Medium Priority
?
1,207 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 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Six Sigma Control Plans
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

719 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