POV-Ray : Newsgroups : povray.binaries.images : Wave function collapse algorithm : Re: Wave function collapse algorithm Server Time
9 Dec 2021 08:21:55 EST (-0500)
  Re: Wave function collapse algorithm  
From: BayashiPascal
Date: 19 Nov 2021 01:40:00
Message: <web.61974528e205fdd1c7449d78e0f8c582@news.povray.org>
Thanks to all for your comments.

Paolo, yes, a road network would be totally feasible. Managing crossroad at
various angles could be challenging though. The rules should rather be
procedurally generated in that case.

Samuel B., marching cube is interesting too. The two algorithms differ by the
way you describe the type of elements in each cell. If you have a function to
express the types according to the coordinates, marching cube is probably the
right solution. If you're in a case where there is no way to express them but to
explicitly list them, the wave function collapse algorithm seem
to me a more appropriate algorithm.

I had just a little more time to play with it and made a celtic knots generator
(code added to the article and result attached below). I'd like to find time for
a small 3D example too, for completion, but it seems improbable...

Pascal


Post a reply to this message


Attachments:
Download 'celticknots.jpg' (65 KB)

Preview of image 'celticknots.jpg'
celticknots.jpg


 

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