Log In  


Cart #mot_raymarch2-3 | 2023-02-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
17

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.

17


1

could be interesting to see if atan2 distance/normalizer brings significant improvements (no overflow + faster): https://www.lexaloffle.com/bbs/?pid=120774#p


Updated it to allow partially reflective surfaces:


6

Cart #mot_raymarchfs-2 | 2023-02-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
6

Made a version with Floyd-Steinberg dithering (instead of random dithering).


Very cool! Especially the shading.


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 !


1

@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.


4

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


1

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...)


4

Cart #mot_raymarch3-0 | 2023-02-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

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]