OPT illum Soft
Home › Technical Guides › Ray Tracing Fundamentals
Ray Tracing Fundamentals

Sequential vs. Non-Sequential Ray Tracing in Optical Design

Understand when to use ordered surface-by-surface sequential tracing versus 3D solid-model non-sequential Monte Carlo simulation.

Core Architectural Differences Between Solvers

Sequential ray tracing propagates each ray through a strictly predefined list of optical surfaces, intersecting Surface 1, then Surface 2, and continuing in order until reaching the image plane. Because every surface intersection is deterministic, sequential engines compute paraxial quantities, wavefront aberrations, and MTF rapidly for imaging objectives.

Non-sequential ray tracing models lenses, reflectors, light guides, and mechanical housings as true 3D solids without a fixed hit order. Rays can reflect, refract, diffract, split into Fresnel ghosts, or scatter diffusely off optomechanical mounts in any sequence, making it essential for illumination and stray light analysis.

  • Sequential tracing assumes one hit per surface in user-defined order and ignores housing geometry.
  • Non-sequential tracing evaluates every intersecting boundary, enabling multi-bounce and TIR paths.
  • Hybrid workflows optimize imaging prescriptions sequentially before exporting to a 3D solid solver.

Choosing the Right Mode by Engineering Task

Selecting the wrong propagation mode wastes compute cycles or hides critical failure modes. Camera lenses, microscope objectives, and telescopes rely on sequential optimization during early layout because damped least squares requires continuous derivatives across known surface indices.

Conversely, LED headlamps, backlight lightguides, LiDAR transceivers, and spectrometers experience backwards reflections, edge scatter, and total internal reflection. Only a non-sequential solver captures flux trapped inside light pipes or scattered onto a detector from chamfered lens mounts.

Handling Ray Splitting and Energy Thresholds

In non-sequential simulation, a ray striking an uncoated glass interface splits into a transmitted refracted ray and a reflected Fresnel ray. Across a six-element objective, unrestricted splitting produces exponential ray multiplication that stalls CPU memory without meaningfully improving radiometric accuracy.

Engineers control this growth by setting minimum relative flux thresholds, typically between 1e-4 and 1e-6 of initial ray power, and by toggling importance sampling toward detector apertures. Verified thresholds preserve energy conservation while keeping simulation runtimes predictable.

Bridging OSLO Sequential Layouts with 3D Illumination

Mature optical engineering teams pair sequential prescription tools like OSLO Studio with solid-model non-sequential engines such as TracePro AI. Once paraxial focal length, aberration balance, and element spacings stabilize, the lens prescription converts directly into closed solid bodies inside the 3D environment.

With CAD housings, baffles, and measured surface finishes added around the glass solids, engineers verify both on-axis image sharpness and off-axis stray light rejection within one traceable pipeline.

  • Export lens radii, thicknesses, and glass catalogs using standard prescription exchange formats.
  • Assign measured coating curves and mechanical BRDF finishes after converting to 3D solids.
  • Validate paraxial focal plane alignment with a collimated reference source before full trace.

Sequential vs. Non-Sequential Solver Comparison

ParameterSequential ModeNon-Sequential ModePrimary Use Case
Ray Path OrderFixed surface index sequenceArbitrary 3D solid intersectionsImaging vs. Illumination
Fresnel Ghosts & SplitsRequires special ghost configAutomatic via ray splittingStray light & veiling glare
CAD Housing SupportLimited aperture masksFull STEP/IGES/SOLIDWORKS solidsOptomechanical packaging
Aberration & MTF SpeedMilliseconds per configurationSeconds to minutes (Monte Carlo)Lens merit optimization
Typical Ray Count100 to 5,000 grid rays100,000 to 50,000,000 raysDeterministic vs. Radiometric

Comparison reflects standard geometric ray-tracing architectures used across optical CAD and lens design platforms.

Worked Illustration: Hybrid Triplet Imaging + Stray Light Check

Suppose an engineer designs an f/2.8 Cooke triplet sequentially and then checks ghost energy in a non-sequential housing.

  1. Worked example step 1: Optimize the 6-surface Cooke triplet sequentially using 64 pupil grid rays across 0 deg, 10 deg, and 20 deg fields until RMS spot radius falls below 8 um.
  2. Worked example step 2: Export the three glass elements to a 3D non-sequential scene and enclose them in an anodized aluminum barrel with 4% diffuse reflectance.
  3. Worked example step 3: Set ray-splitting minimum flux threshold to 1e-4 and launch 500,000 source rays at a 25 deg out-of-field angle.
  4. Worked example step 4: Inspect path sorting on the sensor plane to isolate two-bounce Fresnel ghosts exceeding 0.05% of nominal signal.

Worked Example Outcome: The hybrid workflow finishes sequential layout in seconds and identifies a 0.12% double-bounce ghost from Surface 4 to Surface 2, guiding an AR coating upgrade on those faces.

Solver Selection & Handoff Checklist

  • Confirm whether surface hit order is strictly fixed or includes TIR and housing bounces.
  • Verify glass dispersion curves (Sellmeier coefficients) match between sequential and 3D catalogs.
  • Set a documented minimum ray flux cutoff before enabling Fresnel ray splitting.
  • Include realistic mechanical chamfers, retaining rings, and lens edges in 3D checks.
  • Run a low-ray geometry sanity trace to confirm zero overlapping solid volumes.
  • Compare paraxial focal spot position between both solvers prior to final tolerancing.

Frequently Asked Questions

Can non-sequential ray tracing replace sequential optimization for camera lenses?

Usually not during initial layout. Sequential engines compute analytic ray derivatives and MTF far faster for damped least squares optimization, while non-sequential tracing excels at post-layout validation.

Why do rays disappear inside my non-sequential solid model?

Missing rays typically result from overlapping solid boundaries, inverted surface normals on imported STL/IGES meshes, or rays falling below the configured minimum flux cutoff.

How does ray splitting affect total conservation of energy?

Properly configured ray splitting preserves energy up to the flux cutoff threshold. Setting the cutoff too high discards low-energy scatter paths that may still matter in high-dynamic-range sensors.

When should diffraction replace geometric ray tracing?

Use physical optics propagation or PSF convolution when apertures approach a few wavelengths, beams focus near the diffraction limit, or laser Gaussian waist effects dominate.

Primary Standards & Technical References

  • ISO 10110-1: Optics and photonics — Preparation of drawings for optical elements and systems
  • Warren J. Smith, Modern Optical Engineering, 4th Edition, McGraw-Hill / SPIE Press
  • CIE Technical Report 198 / CIE S 025: Test Method for LED Lamps, Luminaires and Modules

Related Optical Engineering Guides