Solved

Opengl maze

Posted on 2011-03-02
4
1,076 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 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

867 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

16 Experts available now in Live!

Get 1:1 Help Now