I updated my ray marcher to use RGB colours internally and random dither back to 16 colours.
This should allow me to add things like partially transparent surfaces, or atmospheric fog at some point.
could be interesting to see if atan2 distance/normalizer brings significant improvements (no overflow + faster): https://www.lexaloffle.com/bbs/?pid=120774#p
Made a version with Floyd-Steinberg dithering (instead of random dithering).
This is awesome. 🤩
It's all black magic to me - but still, very impressive!
tested the atan2 based distance, test scene using srand(42) is rendered in 48s, vs. 56s with sqrt
(was quite surprised by the compactness of the code !
@Liquidream was all black magic to me too until recently.
It's heavily based on Inigo Quilez's tutorials and shaders. Or at least the parts that I can understand :-)
@freds72 that actually sounds like a worthwhile speedup. I had always assumed atan2 was expensive.
I can't seem to stop playing with this.
Here's a 3x3 mosaic image.
(The visible seams are due to the dithering I believe.)
This was rendered on my very expensive Pico-8 render farm :-p
hey that would be a perfect cart for picotron - much better resolution and more colors
If you see an image you like, you can now press escape and type mosaic()
to have it render a larger version of the same scene as 12 separate images (4x3), that can be stitched together.
(It may take a little while...)
This version supports different camera angles, e.g. top-down.
As before you can hit escape, and type mosaic()
to generate a larger image as 12 separate screenshots.
[Please log in to post a comment]