Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.