Thursday, April 9, 2009

Carefully checking math

Turns out that I was a bit sloppy with my Snell's law implementation. Here are some new images that look a bit more correct:

Index of refraction: 1.33, camera farther

Index of refraction: 1.33, camera closer

Index of refraction: 2.69, camera farther

Index of refraction: 2.69, camera closer


That blue square is a messed up specular reflection. Looks like I might be a bit sloppy with my Blinn-Phong model, too.

1 comment:

  1. I found some sloppy math, fixed it and the blown out specular highlight has been fixed.

    I'll double check during the morning train ride.

    ReplyDelete