3

I followed the book Ray Tracing in One Weekend and implemented a simple ray tracing procedure. There are 100 random samples every pixel for antialiasing, but the render result looks weird: There is a unnatural circle at the center of the screen, and a strange line lies on the center of the ground, Why?

render result

YuChang
  • 31
  • 2

1 Answers1

1

Those are moire patterns. They are an aliasing artifact that usually occurs when sampling on a regular grid. Did you jitter the positions of your samples? If you just sampled an evenly spaced 10x10 grid within each pixel, that could explain it. Also, numerical errors or inaccuracy could it.

user1118321
  • 3,401
  • 11
  • 14
  • To be honest it looks more like moire and insuficent shadow bias – joojaa Apr 11 '19 at 06:12
  • Interesting! I've not seen that happen before. Very cool. – user1118321 Apr 11 '19 at 16:02
  • I also think it may be a shadow bias issue, as I've seen this happening on some of my renders. Just bias the ray starting position an epsilon away from the surface when tracing the reflected rays. – vgs Apr 15 '19 at 15:02