Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: openGL 2D maze

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2012
    Posts
    2

    openGL 2D maze

    Hi, I am trying to create a random maze generator. I have figured out the algorithm and decided to use disjoint set to create the maze. However, I am having hard time figuring out how to actually draw the maze in openGL. I am not really looking for how to draw the whole maze, but rather trying to figure out how to draw it in cells...i.e struct/array. For disjoint sets, I am using arrays to compare the side wall with back wall and see if maze can be dissasembled.

    EDIT:
    How do you create cells?

    Thanks,

    C4X46

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,732

    Re: openGL 2D maze

    What kind of maze? 2D, 3D, something else? Are we talking Pac-Man or Quake? NetHack or Diablo?

    You're not giving us much to go on.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2012
    Posts
    2

    Re: openGL 2D maze

    Well a 2D maze as said in the title. I basically want to generate a random maze each time a person clicks new and specifies size. I am using disjoint set algorithm to do that, however I am having trouble drawing this.

    I want people to be able to printout a maze and then solve it by hand. With one random entrance and 1 random exit. Thanks,

    C4X4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •