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
Firstly thanks for maintaining this project, it is extremely useful!
Would it be feasible to add an absorbtion setting/parameter to a glass object? So as a ray traverses through the object it gets dimmer due to absorbtion? Maybe this could be achieved by taking the length of a ray within a glass, displaying it with a gradient brightness depending on the length of line.
The text was updated successfully, but these errors were encountered:
Integrate with Gradient-index optics #69, so that the rays are traced step-wise. This will be quite inefficient if the refractive index and absorption rate are constant (but is the only approach if they are not constant).
As @JeremyLeaf suggested, trace the rays as usual, but the distance that each segment of ray goes is considered.
For 2., we need to add a loop in addRay that checks whether the ray is emerging within each glass. And hence each glass must implement isInsideGlass, etc as currently do for GRIN glasses. These change is also required for #37 and the "source-over body-merging" approach of defining "absolute refractive index" (see #51).
Firstly thanks for maintaining this project, it is extremely useful!
Would it be feasible to add an absorbtion setting/parameter to a glass object? So as a ray traverses through the object it gets dimmer due to absorbtion? Maybe this could be achieved by taking the length of a ray within a glass, displaying it with a gradient brightness depending on the length of line.
The text was updated successfully, but these errors were encountered: