You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i' ve finished the 3 books (thank you a lot btw) and now i wanted to add some features on my own. I decided to expand a bit the scattering of lambertians and dielectrics as noted in the 1 book. I wanted to ask if you think they are solid (the images came out supposedly correctly but since it was just some minor touch up i have i little sensation of "if it was too simple maybe you missed something").
For the lambertians i' ve added a parameter R that probabilistically attenuates more or less the result:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, i' ve finished the 3 books (thank you a lot btw) and now i wanted to add some features on my own. I decided to expand a bit the scattering of lambertians and dielectrics as noted in the 1 book. I wanted to ask if you think they are solid (the images came out supposedly correctly but since it was just some minor touch up i have i little sensation of "if it was too simple maybe you missed something").
For the lambertians i' ve added a parameter R that probabilistically attenuates more or less the result:
For the dielectrics i' ve introduced multiple scattered rays (reflected and refracted) and i' ve modified a bit
ray_color()
:first i' ve implemented this in order to store multiple rays
then the scattering function:
and the
ray_color
functionsome results are
All the code is at https://github.com/niccolot/path_tracer/tree/multiple_scattering
Beta Was this translation helpful? Give feedback.
All reactions