POV-Ray : Newsgroups : povray.binaries.images : randomish (~38K) : Re: randomish (~38K) Server Time
13 Aug 2024 23:16:39 EDT (-0400)
  Re: randomish (~38K)  
From: Florian Brucker
Date: 8 Jan 2003 09:30:30
Message: <3e1c3606$1@news.povray.org>
> I can't imagine why you would bother, but it might be fun.

i tried to do something similar - i wrote a macro which would make a random
path through a rectangular area (only 4 directions, left, up, right, down).
it was for creating a maze afterwards. i used a recursive method, as to have
the chance to avoid dead ends. it came out that the recursion level got to
deep very fast. pov only allows 200 nested conditionals, which was far too
little... (perhaps only my code was that bad? *g*)

but in your case it could be done. perhaps you should allow to reuse a point
if a dead end is reached...

greetings:florian


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.