6
\$\begingroup\$

I was playing with raymarching using distance fields in GLSL sandbox and got stuck with a strange problem with artifacts.

Click here and take a look at the spheres generated in corners, they have strange artifacts plus they "flicker".

Is the mod operator, for domain repetition the culprit here?

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

I do not think that mod operator is the source of artifacts, at least in the general case. Recently I also experimented with raymarching of distance fields and all worked pretty fine. Check my screens lower. My trusty guide in this stuff are tutorials and papers of Iñigo Quílez. If you don`t know about this guy, taste his strawberry. More concretely: iterative shapes, distance functions and raymarching distance fields.

enter image description hereenter image description here

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.