Ray Marching Steps Calculator

Conditional integration step budget ceil(actual ray length/independent max step length), zero-length0, not selectedrendererquality or SDFhit guarantee.

Description

Ray marching evaluates a scene at successive positions along a ray.

Ray marching evaluates a scene at successive positions along a ray.1

Segment length and a chosen maximum step length determine a conditional count of steps. The calculation and input requirements are explained below.

When to use Ray Marching Steps Calculator

Enter a nonnegative ray-segment length and positive maximum step length in the same unit.

How to use Ray Marching Steps Calculator and how it works

  1. Prepare the measurements or independently established model inputs described below, with matching units and observation scope.
  2. Enter the required fields and run Ray Marching Steps Calculator.
  3. Read the result fields using the formula, output units, signs and ordering explained below.
  4. Correct any rejected inputs and rerun; interpret the result within the stated model and its assumptions.
Input fieldMeaningValue typeRequirement
actualRaySegmentLengthActual Ray Segment Length. Use the units and matching context stated in the calculation below.numberRequired; nonnegative; finite; other constraints below
callerActualMaximumRayStepLengthCaller Actual Maximum Ray Step Length. Use the units and matching context stated in the calculation below.numberRequired; strictly positive; finite; other constraints below

Enter a nonnegative ray-segment length and positive maximum step length in the same unit. Divide and round upward for the conditional step count. Zero segment length returns zero; scene hits and integration quality are not guaranteed.

steps=ceil(segmentLength/maxStepLength)

Apply the input ordering, units and branch conditions stated above.

Output fieldMeaningValue type
resultObject containing the calculated or selected fields below.object
result.valueNumeric result under the formula and output units explained above.number
json
{
  "input": {
    "actualRaySegmentLength": 10,
    "callerActualMaximumRayStepLength": 2
  },
  "output": {
    "result": {
      "value": 5
    }
  }
}

Limitations and assumptions

The calculation uses the supplied observations and model inputs. It does not collect measurements, select a reference population or coefficient, or establish that the model applies to the actual case. The stated branch conditions and output units remain part of the result.

All fields require explicit values. Unexpected fields, wrong types, nonfinite numbers and sparse arrays are rejected. Alignment, bounds and supported-token rules are explained above; extremely large inputs or nonfinite results can also fail. Input errors differ from successful false comparisons, unavailable-domain flags and empty match lists.

Alternative or Complementary methods

Use Volumetric Rendering Samples Calculator for a complementary operation: Volume rendering samples along an optical path.

Use Shading Rate Pixels Per Degree Calculator for a complementary operation: Shading rate determines how many rendering samples cover a pixel region.

References

  1. Ray Marching Steps Calculator — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies