Doppler rendering¶
These render passes simulate measurements of moving scenes:
DopplerHistogramPathTracerInline: the Doppler spectrum of optical heterodyne detection (OHD), as in coherent lidar, or with a chirped laser the up- and down-chirp spectra of an FMCW lidar. Nothing moves; each path’s Doppler shift follows from the velocities of its vertices.DopplerGatedPathTracerInline: the light whose Doppler shift falls in a gate, one image instead of the spectrum, as the time-gated path tracer is to the transient histogram.DopplerToFPathTracerInline: Doppler time-of-flight, a continuous-wave ToF camera with different light and sensor modulation frequencies. The objects really move during the exposure.VelocityGroundTruthInline: ground-truth velocity maps for both.
For an introduction to the two sensing principles side by side, see the Doppler rendering tutorial, which compares OHD and Doppler ToF.
Velocities¶
All four take the motion of the scene objects in the same velocities property: a dictionary from an object name
to its instantaneous rigid motion, v(x) = linear + angular × (x − center):
"velocities": {
"TallBox": {"linear": [0.0, 0.0, 2.0]}, # m/s
"Wheel": {"angular": [0.0, 0.0, 30.0], "center": [0.3, 0.2, 0.0]}, # rad/s, about an axis through center
"Blood": {"flowOrigin": [0.0, -5e-4, 0.0], "flowAxis": [1.0, 0.0, 0.0],
"flowRadius": 2.5e-4, "flowMaxSpeed": 5e-3, # m, m/s on the axis
"diffusion": 1e-12}, # m^2/s
}
Missing fields are zero. Velocities are in m/s and rad/s; positions are in scene units, taken as meters. Objects that are not listed do not move.
A name matches a geometry instance’s mesh name, its material name, or
"#<instance index>". A name that matches nothing is reported in the log.get_object_names()lists the names of a scene’s objects.An object listed under several of its names takes the most specific one:
"#<instance index>", then its mesh name, then its material name. For example, a material name moves every object made of it, and a mesh name gives one of them another motion. Every pass resolves names the same way.Motions are in world space:
linear,angularandcenterare world coordinates, also for an object whose scene-graph node has a parent.Falcor merges identical materials when it loads a scene, and then they lose their names (in the Cornell box, every white surface becomes
Floor). Load scenes withSceneBuilderFlags.DontMergeMaterialsto keep them; pbrt triangle meshes have no names, so with pbrt scenes you name objects by their material.flowOrigin,flowAxis,flowRadiusandflowMaxSpeedadd a Poiseuille flow to the rigid motion: flowMaxSpeed (1 − r² / flowRadius²) alongflowAxisat distance r < flowRadius from the axis throughflowOrigin, zero farther out. It is meant for the scatterers of a medium, such as blood in a vessel of that radius, and so isdiffusion, their Brownian diffusion coefficient: see the participating media ofDopplerHistogramPathTracerInline.set_velocity(name, linear, angular=[0, 0, 0], center=[0, 0, 0])sets or changes a rigid motion from Python (without flow or diffusion).
DopplerToFPathTracerInline and the path_length mode of VelocityGroundTruthInline move the objects, which needs
more of the scene; see Moving objects. They move them rigidly, without flow or
diffusion.