Some of you may know about my previous book, Mazes for Programmers. I've been wanting to do an image that combined the ideas in that book with the techniques in "The Ray Tracer Challenge," and finally had some time to do just that. The result is this, an image of a maze on the inside of a ring!
It's sadly non-trivial to represent this in the YAML format I've been using for other images, but if it would be helpful to anyone, I'd be happy to post the source code for it (in C).
Perhaps you could generate an OBJ containing the maze geometry, and then generate a YAML to build the scene, using the obj for the heavy geometry lifting, and to add the spheres/colors, lights, camera?
That's a thought, fs. If that would be helpful, I'll see what I can do. Honestly, 75% of the fun of this project (for me!) was generating the geometry, so I feel like folks will be missing out if I just hand them it all pregenerated.
No worries - it was just a thought in case it was just down to problems generating "nice" yaml vs outputting a bunch of vertices for pre-transformed geometry as a blob. I have a few project images I'm trying to do, so I won't be tackling this in the short-term (and I have your maze book anyway )
Last Edit: Feb 9, 2019 0:37:16 GMT by fs: Fix tyop
Good to know! I'm happy to generate the geometry if anyone is interested in just rendering the scene. But it really is a fun challenge to do the whole thing: generate the maze, produce the geometry, and then render the whole thing!
Best of luck on your project images. Please share them if you can!
This is super cool! I'm way excited to read your mazes book and see what interesting combinations can be found. I'm definitely curious how you did all of this. Is the background a picture you added or is it also generated? Did you place the spheres manually or did you do some calculations to put them at random points in the maze?