I am planning on moving some simulation code from a CPU only raytracer to optix - I am an optix newbie, but very familiar with RT concepts and programming. Part of the simulation involves generating diffracted rays when a ray hits a “sharp” edge ( it is up to the application to define what is a sharp edge- in an RT engine we use lines with a radius - aka ‘hair’ ). When a ray hits an edge up to , say, 256 new rays in a cone shape can be generated from that hit . This can be done in a recursive algorithm, or a multi-pass approach where we save the rays to be cast at diffraction each level. Recommendations? A diffraction level of about 5 is a practical limit as the ray loses energy each time - after 5 diffractions the ray is typically ‘all worn out’…
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Make multi ray in closest hit. | 3 | 601 | June 14, 2022 | |
Number of generated rays? | 2 | 1179 | June 14, 2022 | |
Application to other frequencies of electromagnetic waves | 2 | 1175 | June 14, 2022 | |
Casting large numbers of rays | 7 | 723 | June 14, 2022 | |
What is the best way for rendering diffused reflections / multi ray generation inside recursion | 2 | 1235 | June 14, 2022 | |
Branch divergence | 2 | 794 | June 14, 2022 | |
Question about reflection at ray surface | 3 | 518 | October 12, 2021 | |
Unknown intersection information in "__closesthit__" funtion | 3 | 907 | November 2, 2021 | |
refracted ray and closest hit | 2 | 670 | June 14, 2022 | |
Question about CloseHit Point Location | 2 | 589 | June 14, 2022 |