Reading the ray-trace output

Escape top, TIR-trapped, Fresnel-bounce-quit — three bins.

Lesson 4 of 5 · ~7 min read

Every launched ray ends up in exactly one of three bins:

  • Escaped top: transmitted through the top face on some bounce. This is the number that defines escape efficiency.
  • TIR-trapped: the ray never once reached the top within the escape cone before the simulator ran out of bounces (the max-bounces cap, default 50).
  • Fresnel-bounce-quit: the ray reached the escape cone but drew "reflect" repeatedly and never transmitted. For a lossless mirror these rays eventually transmit — in practice the max-bounces cap also closes this bin.

What the three bins tell you

Compare escape fraction against the analytic 2·θc/π. The ratio of TIR-trapped to Fresnel-bounce-quit tells you where the Monte-Carlo "loss" sits: TIR-trapped dominates at high n (the cone is narrow), Fresnel-bounce-quit dominates near normal incidence (many Fresnel draws per ray).