Log In  

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

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.

P#125495 2023-02-08 00:34 ( Edited 2023-02-09 03:19)

1

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

P#125514 2023-02-08 06:16

Updated it to allow partially reflective surfaces:

P#125544 2023-02-08 20:07 ( Edited 2023-02-08 20:45)
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).

P#125568 2023-02-09 07:12 ( Edited 2023-02-13 08:59)

Very cool! Especially the shading.

P#125671 2023-02-10 14:02

This is awesome. 🤩
It's all black magic to me - but still, very impressive!

P#125678 2023-02-10 17:28

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 !

P#125687 2023-02-10 19:42 ( Edited 2023-02-10 19:43)
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.

P#125696 2023-02-10 22:45 ( Edited 2023-02-10 22:51)
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

P#125740 2023-02-12 00:28
1

hey that would be a perfect cart for picotron - much better resolution and more colors

P#125748 2023-02-12 06:38

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

P#125793 2023-02-13 09:01 ( Edited 2023-02-13 09:06)
3

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

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.

P#126023 2023-02-18 09:53

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 07:17:37 | 0.026s | Q:38