ear icon indicating copy to clipboard operation
ear copied to clipboard

How to understand this calculation?

Open yipinghan opened this issue 5 years ago • 2 comments

Thanks for your time. Could you please explain the calculation logic of the following code? when you "determine the intensity of the contribution of the ray" https://github.com/aothms/ear/blob/master/src/Scene.cpp#L231 https://github.com/aothms/ear/blob/master/src/Scene.cpp#L259 https://github.com/aothms/ear/blob/master/src/src/MonoRecorder.cpp#L83

how to understand your "sample collection" that connect the hitpoint with listener after every bounce? Or if you have any references papers which related to this algorithm, could you name it and I can search it.

thanks!

yipinghan avatar Jan 21 '21 09:01 yipinghan

Honestly, there isn't a lot to understand. There isn't any scientific basis behind this, just my interpretation of ray tracing and specular reflection. It's also 10 years since I wrote this, so my understanding is as good as yours ;).

aothms avatar Jan 21 '21 12:01 aothms

really, is there any possible that use Phong models as the reference? I searched specular reflection model and this formula has this similar strcut....

image

whatever, if you say so. appreicate your reply~

yipinghan avatar Jan 25 '21 11:01 yipinghan