Maze rendering

From Dungeon Eye
Jump to: navigation, search

Here's a brief overview on how to render the maze. You need a background and a set of walls to render.


Images

The background image you must first apply before any rendering.

Maze ground.png

The walls :

Maze walls.png

- 3 front views

- 6 side views (the right view is automatically done by using a mirror effect).

Rendering technique

To render the maze, you have to use the [painter algorithm], render distant objects first, followed by closer objects and finally the closest wall.


Here's an animation showing the final result :

Mazedisplay.gif

Here's the 23 wall sides to draw to render an ingame view :

Wall side drawing.png

 * red : wall sides to render
 * blue : Team view field
 * The case between N and P is the point of view