Board index » delphi » Done it ! One of the biggest maze ever

Done it ! One of the biggest maze ever


2007-09-27 10:18:46 PM
delphi75
Just download them and be aware : you need a *lot* of RAM to be able to
display them.
How did I do that ?
- first I have implemented a very simple maze creation algorithm (thanks Delphi) ;
- second I wasn't happy with that so I took a deeper look at Photoshop and
its JavaScript capabilities.
- I generated a big JavaScript file but I couldn't execute it because, even
with 4Gb RAM, it didn't have enough memory to load a 25 Mb JavaScript file.
- so I created a simple JavaScript that opened another js file, read line by
line and did a :
f = new File(repRef+"m/04.dat")
f.open("r");
while (!f.eof) {
s=f.readln();
eval(s);
}
f.close();
- then generated a huge maze.
- that wasn't enough for me. So, thanks to Graphics32, I have downloaded a
small graphic file, and for each pixel I evaluated the color strength, I did
a circle according to the strength, then with the huge grid of circles, I
created my Javascript file.
- I have reached the PS limit and I have not been able to find someone who did
that (I you hear about that let me know) : you are limited to 1000 anchor
points by path. So I had to split my JavaScript to be able to draw that.
Took between half an hour and 45 minutes to draw each maze.
Enjoy :)
olivier.pons.free.fr/im/laby01.jpg
olivier.pons.free.fr/im/laby02.jpg
olivier.pons.free.fr/im/laby03.jpg
olivier.pons.free.fr/im/laby04.jpg
 
 

Re:Done it ! One of the biggest maze ever

Olivier Pons writes:
Quote
Just download them and be aware : you need a *lot* of RAM to be able to
display them.
Very impressive. #2 is just crazy. Now, how long to get these into a
simple 3d format so I can traverse them on my PC :)
 

Re:Done it ! One of the biggest maze ever

Oops I forgot : only the 2 last ones are really nice to see :
Quote
olivier.pons.free.fr/im/laby03.jpg
olivier.pons.free.fr/im/laby04.jpg
And if Firefox say it can not display those pictures because they contain
errors, this is *false*. It just hasn't enough memory to handle them.
Just download them at olivier.pons.free.fr/
(section "Resultats de labyrinthes" and mouse-over the dates to get the
link, right click and save).
 

Re:Done it ! One of the biggest maze ever

Nathanial Woolls a écrit :
Quote
Olivier Pons writes:
>Just download them and be aware : you need a *lot* of RAM to be able
>to display them.

Very impressive. #2 is just crazy. Now, how long to get these into a
simple 3d format so I can traverse them on my PC :)
The 3rd and 4th are 23249 x 20999 px, which would result in a 8,20 x 7,40 m
(= 322x291 inches) printed picture for a 72 dpi printer.
Try to guess what pictures are in the 322 3rd and 4th mazes :)
 

Re:Done it ! One of the biggest maze ever

"Olivier Pons" <XXXX@XXXXX.COM>wrote in
message news:46fbbad0$XXXX@XXXXX.COM...
Quote
- then generated a huge maze.
- that wasn't enough for me. So, thanks to Graphics32, I have downloaded a
small graphic file, and for each pixel I evaluated the color strength, I
did a circle according to the strength, then with the huge grid of
circles, I created my Javascript file.
You might be interested in sampling some of my Celtic Knots art-work. I
wrote a "knots generator" which can produce designs with many knots or just
a few knots. I do this when I am wearing my "Art" hat, and I don't usually
(well almost never) talk about this stuff in software dev circles.
Although, truth be told, I use Delphi to generate the core art-works.
Heres a sampling from one of my galleries:
Knots 01 Tile Design:
dlandi.deviantart.com/art/Knots-01-Tile-Design-41802050
same design spiced up:
FireGlass01:
dlandi.deviantart.com/art/FIREGLASS-01-55132309
FireGlass 01 Detail:
dlandi.deviantart.com/art/FIREGLASS01-Detail-55144586
My knots generator can generate a virtual infinite variety of these designs.
So.... Is it art?
And here are some "3 x 3" designs using the exact same algo and delphi
program:
dlandi.deviantart.com/art/Knots-3x-Design-813-56019367
dlandi.deviantart.com/art/Knots-3x-08-56016113
dlandi.deviantart.com/art/Knots-3x-Design-959-56019529
Incidentally, I had these designs printed on ceramic floor tiles...
Although I have prints (for{*word*154} on the wall) as well...
-d
 

Re:Done it ! One of the biggest maze ever

Olivier Pons has brought this to us :
Quote
Just download them and be aware : you need a *lot* of RAM to be able to
display them.
How did I do that ?
- first I have implemented a very simple maze creation algorithm (thanks
Delphi) ;
- second I wasn't happy with that so I took a deeper look at Photoshop and
its JavaScript capabilities.
- I generated a big JavaScript file but I couldn't execute it because, even
with 4Gb RAM, it didn't have enough memory to load a 25 Mb JavaScript file.
- so I created a simple JavaScript that opened another js file, read line by
line and did a :

f = new File(repRef+"m/04.dat")
f.open("r");
while (!f.eof) {
s=f.readln();
eval(s);
}
f.close();

- then generated a huge maze.
- that wasn't enough for me. So, thanks to Graphics32, I have downloaded a
small graphic file, and for each pixel I evaluated the color strength, I did
a circle according to the strength, then with the huge grid of circles, I
created my Javascript file.
- I have reached the PS limit and I have not been able to find someone who did
that (I you hear about that let me know) : you are limited to 1000 anchor
points by path. So I had to split my JavaScript to be able to draw that.
Took between half an hour and 45 minutes to draw each maze.

Enjoy :)

olivier.pons.free.fr/im/laby01.jpg
olivier.pons.free.fr/im/laby02.jpg
olivier.pons.free.fr/im/laby03.jpg
olivier.pons.free.fr/im/laby04.jpg
They look like they have a solid black border.
Where are the start and end?
Or am I misunderstanding the concept?
Thanks,
Brad.
 

Re:Done it ! One of the biggest maze ever

Olivier Pons writes:
Quote
Try to guess what pictures are in the 322 3rd and 4th mazes :)
I'm going to guess #2 is the crater in the moon?
#4 is a boat
#3 crashes just about everything I try to open it in ;) I got Photoshop
to open it and that is truly impressive. Is that profile you?
To those who want to open #3, be careful, it can take your computer down
pretty well depending on the program used.
 

Re:Done it ! One of the biggest maze ever

Holy cow -- that is seriously cool -- or crazy, depending on your point
of view. ;-)
--
Nick Hodges
Delphi Product Manager - CodeGear
blogs.codegear.com/nickhodges
 

Re:Done it ! One of the biggest maze ever

Incredible!
:-)
JoeH
 

Re:Done it ! One of the biggest maze ever

Quote
Where are the start and end?
That's what I want to know too. I can not wait to crack
one of these while I am eating my breakfast cereal.
 

Re:Done it ! One of the biggest maze ever

James Miller writes:
Quote
>Where are the start and end?

That's what I want to know too.
I believe you make your own, by traveling from a middle point out and then
erasing a doorway in the border where you end up :-)
JoeH
 

Re:Done it ! One of the biggest maze ever

Nathanial Woolls a écrit :
Quote
Olivier Pons writes:

>Try to guess what pictures are in the 322 3rd and 4th mazes :)

I'm going to guess #2 is the crater in the moon?

#4 is a boat

#3 crashes just about everything I try to open it in ;) I got Photoshop
to open it and that is truly impressive. Is that profile you?

To those who want to open #3, be careful, it can take your computer down
pretty well depending on the program used.
Only #3 and #4 are using the algorithm I describe (with color intensity and
circles).
#3 is my sister
#4 is a boat.
Well done !
 

Re:Done it ! One of the biggest maze ever

The next maze I have in mind is the most incredible maze you've ever seen.
There is a maze that is in a maze that is in a maze.
3 depths.
It only depends how far you are from the maze.
I'm not joking.
I just have to find the time to finish it.
...
and I still don't know why I like generating mazes so much...
 

Re:Done it ! One of the biggest maze ever

Olivier Pons writes:
Quote
and I still don't know why I like generating mazes so much...
It's a maze ing.
--
 

Re:Done it ! One of the biggest maze ever

"Olivier Pons" <XXXX@XXXXX.COM>wrote in
message news:46fc1b4a$XXXX@XXXXX.COM...
[...]
Quote
The maze has only dead ends.
There's no real start <->end, actually.
Choose one, and try to reach another one that you think is the furthest
from the first.
IMHO, a maze without a solution isn't a maze, it is just art that looks like
a maze.
--
Ray Marron