How nljones/accelerad works
Radiance is a synthetic imaging and lighting simulation system. A typical user supplies a Radiance scene and parameters to rad, which controls the rendering process; the resulting image can then be converted for display. Around that workflow, the repository provides scene and weather-data conversion, daylight generation, ray-tracing and GPU rendering, interactive and holodeck viewers, image processing, and glare analysis. The README documents the main workflow and several capabilities; some subsystem connections are omitted because the sampled source does not show their runtime wiring.
Main entry points: rad.c Render controller · raytrace.c Ray tracing · ra_rgbe.c Image conversion · optix_radiance.c GPU rendering
Components 23
Rendering workflow
- Render controller
src/util/rad.c - Shared runtime
src/common
Scene and daylight
- Scene conversion
src/cv - Scene octree
src/ot/oconv.c - Daylight generation
src/gen/gendaylit.c - Weather matrices
src/gen/gendaymtx.c - BSDF queries
src/cv/bsdfquery.c
Rendering engines
- Ray tracing
src/rt/raytrace.c - GPU rendering
src/rt/optix_radiance.c - Holodeck tools
src/hd/rholo.c - Contribution tracing
src/rt/rcontrib.c
Viewing and images
- Image conversion
src/px/ra_rgbe.c - Image processing
src/px/pcond.c - X11 viewer
src/px/x11image.c - Holodeck viewer
src/hd/rhd_ogl.c - Qt viewer
src/qtrvu/qt.c
Analysis and utilities
- Glare analysis
src/util/evalglare.c - Animation control
src/util/ranimate.c - Calculation tools
src/cal/rcalc.c - Plotting tools
src/meta/mgraph.c
Other components
- Radiance user
- X11 system
- GPU runtime
Connections 6
- Radiance user → Render controller: runs
- Render controller → Ray tracing: controls rendering
- Ray tracing → Image conversion: produces image
- Radiance user → Image conversion: converts image
- X11 viewer → X11 system: creates window
src/px/x11image.c - GPU rendering → GPU runtime: uses GPU