|
Post by Jamis on Feb 6, 2019 16:34:41 GMT
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).
|
|
fs
New Member
Posts: 28
|
Post by fs on Feb 6, 2019 20:08:56 GMT
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?
|
|
|
Post by Jamis on Feb 6, 2019 20:10:21 GMT
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. 
|
|
fs
New Member
Posts: 28
|
Post by fs on Feb 6, 2019 21:23:22 GMT
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  )
|
|
|
Post by Jamis on Feb 6, 2019 21:35:14 GMT
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!
|
|
|
Post by ascotti on Feb 8, 2019 21:26:00 GMT
Wow... great pic Jamis!
|
|
garfieldnate
New Member
Learning Rust and ray tracing!
Posts: 6
|
Post by garfieldnate on Feb 19, 2020 21:06:41 GMT
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?
|
|
|
Post by Jamis on Feb 20, 2020 4:54:53 GMT
|
|