|
|
On 12/25/23 09:51, Bald Eagle wrote:
> In playing around with ray diagrams, it occurred to me that we have no inc-file
> or inbuilt reflected ray macro or function (that I know of).
>
> Since we have trace () that also supplies a surface normal, a nice complement to
> that would be reflected_ray (Ray, SurfaceNormal).
>
(or refracted, transmitted, media generated...)
I agree such capability would be useful(a) for diagrams - and probably
mostly for debugging.
Assuming you want access to the real internally generated >first rays,
the other forms are quite a bit harder / uglier to do than is trace().
Further, the results for other than initial / first rays are also
tangled in render settings and options.
Bill P.
(a) - While doing the solver work back in 2017 /2018, I a couple times
hacked in a capability to dump all the generated rays from single
rendered pixels. The pixels were isolated by start/end column row
command line flags (or ini settings). FWIW - It was hacked code and not
SDL available functionality.
Post a reply to this message
|
|