[Lazarus] OT : Wanted demo to generate and walk through a 2D in 3D simple graphics.
Kjow
antispammoni at gmail.com
Sat May 7 11:35:39 CEST 2011
2011/5/7 Peter Williams <pewilliams2010 at live.com>:
> Hi,
> Apologies in advance for this off topic message.
> I am looking for a demo in Pascal / Delphi / Lazarus (* preferred) of
> generating a 2D maze and letting the user walk through the maze in simple 3D
> graphics with lines (e.g. not ASCII) but using graphics. For example,
> looking down a corridor it would be drawn as single point perspective with a
> square and diagonal lines from the corners.
> I have found a "pascal" demo of something similar on the web, but in reality
> it is mostly assembler for TP7. The ASM code is unreadable and undocumented
> and I also want pure pascal code so that it is portable.
> Does anyone here have any code that does this? Maybe you have written a demo
> like this in the past, or know of one.
> Best Regards,
> Peter Williams
> Hobart, Australia
I don't know algorithms to generate 2D mazes, but for graphic part, if
you download latest svn of GLScene (not the one on Lazarus CCR, but
official GLScene [ http://sourceforge.net/projects/glscene/ ]) and you
look for "portal" demo, you'll find something that could help you.
There are also a lot of demos, also for walk through the scene.
Regards,
Kjow
More information about the Lazarus
mailing list