Volume rendering is a computer graphics technique that generates a 2D image by numerically integrating optical properties—like color and volumetric density—along rays cast through a 3D data field. Unlike surface-based rendering, which only considers object boundaries, it models light absorption and emission within a semi-transparent medium. This process is governed by the volume rendering equation, a continuous integral approximated via discrete ray marching. It is the core algorithm enabling the photorealistic synthesis of novel views in Neural Radiance Fields (NeRF).
Glossary
Volume Rendering

What is Volume Rendering?
Volume rendering is the foundational computer graphics technique for visualizing 3D scalar fields, such as medical CT scans or scientific simulations, by simulating light transport through participating media.
The technique's critical parameters are extinction coefficient (absorption + out-scattering) and source term (emission + in-scattering). For NeRF and implicit neural representations, a Multi-Layer Perceptron (MLP) acts as a continuous function, outputting density and view-dependent radiance at any 3D point. During training, differentiable rendering allows gradients from a photometric loss to flow backward through this sampling process, optimizing the neural network to represent the scene. Advanced methods use hierarchical sampling to concentrate computations where density is high.
Key Components of the Volume Rendering Equation
The Volume Rendering Equation (VRE) is the fundamental integral that describes how light interacts with a participating medium to produce a final image. It mathematically models the accumulation of emitted and scattered light along a ray.
Emission Term
The Emission Term represents light that is generated or emitted from within the volume itself at a given point. It is a source term in the equation, adding radiance to the ray.
- Mathematical Form: Typically denoted as C(s)σₐ(s), where C(s) is the color (radiance) emitted and σₐ(s) is the absorption coefficient at point s.
- Physical Analogy: Similar to a light bulb or a glowing gas cloud within the volume.
- In NeRF: The neural network directly outputs an RGB color at each sampled 3D point, which acts as the emitted radiance for that infinitesimal particle.
Absorption & Out-Scattering
Absorption and Out-Scattering are attenuation processes that reduce the intensity of light traveling along a ray. They are combined into the Extinction Coefficient, σₜ(s) = σₐ(s) + σₛ(s).
- Absorption (σₐ): Photons are absorbed by the medium and converted to other forms of energy (e.g., heat).
- Out-Scattering (σₛ): Photons are deflected into different directions, away from the ray path.
- The Role of σ: In the VRE, the exponential decay term exp(-∫σₜ(t)dt) models how much light from behind a point reaches it. In NeRF, the network outputs a volume density σ, which directly serves as this extinction coefficient.
Transmittance
Transmittance, T(s), is the probability that a photon travels from the start of the ray to a point s without being absorbed or scattered away. It quantifies the cumulative attenuation up to that point.
- Mathematical Definition: T(s) = exp( -∫₀ˢ σₜ(t) dt ).
- Physical Meaning: It acts as a 'visibility' multiplier. Light contributions from deeper in the volume are weighted by how much of the preceding medium they had to pass through.
- In Rendering: This is computed numerically via alpha compositing. The accumulated opacity α = 1 - exp(-σ δ), where δ is the distance between samples, is used to build up transmittance step-by-step.
In-Scattering (Phase Function)
In-Scattering is the process where light from other directions is scattered into the ray path. It is governed by the Phase Function, p(ω → ω'), which describes the angular distribution of scattered light.
- Key Property: The phase function is normalized; its integral over all directions is 1.
- Isotropic vs. Anisotropic: A simple isotropic phase function scatters light equally in all directions. Real-world media (like fog or skin) use anisotropic functions (e.g., Henyey-Greenstein) to model forward or backward scattering.
- In NeRF: Standard NeRF models a vacuum with no in-scattering. It assumes light travels directly from the light source to a point and is then emitted toward the camera. Extensions like NeRF in participating media explicitly model this term.
The Integral Form
The full Volume Rendering Equation integrates all components along a ray from the camera tₙ to tₓ. The final color C(r) for ray r is:
C(r) = ∫ₜₙᵗᶠ T(t) [ Cₑ(t) + ∫₄π p(ω→ω') Lᵢ(t,ω') dω' ] dt
Where:
- T(t): Transmittance to point t.
- Cₑ(t): Emitted radiance at t.
- ∫₄π p(...)Lᵢ(...) dω': The in-scattering integral over all incoming directions ω'.
- The NeRF Simplification: NeRF assumes no external illumination or in-scattering. The equation reduces to C(r) = ∫ T(t) σ(t) c(t) dt, where σ(t) is density and c(t) is the view-dependent emitted color.
Numerical Quadrature (Ray Marching)
Solving the VRE's continuous integral requires numerical quadrature, implemented via Ray Marching. The ray is discretized into N samples, and the integral is approximated as a weighted sum.
- The Discrete Equation: Ĉ(r) = Σᵢ₌₁ᴺ Tᵢ (1 - exp(-σᵢ δᵢ)) cᵢ, where Tᵢ = exp(-Σⱼ₌₁ⁱ⁻¹ σⱼ δⱼ).
- Alpha Compositing: The term (1 - exp(-σᵢ δᵢ)) is the alpha value αᵢ for the i-th sample. The final pixel color is computed via front-to-back alpha blending:
- C ← C + T * α * c
- T ← T * (1 - α)
- Hierarchical Sampling: To sample efficiently, NeRF uses a two-stage process: a 'coarse' network informs a 'fine' network where to place more samples in regions of high density (σ).
Frequently Asked Questions
Volume rendering is the core computer graphics technique for generating 2D images from 3D volumetric data. It is fundamental to Neural Radiance Fields (NeRF) and other neural scene representations.
Volume rendering is a computer graphics technique that generates a 2D image by integrating optical properties—like color and density—along rays cast through a 3D volumetric field. The core algorithm, ray marching, works by sampling the volume at discrete points along each pixel's ray, accumulating color and opacity based on the local density and emitted/absorbed light. The final pixel color is computed via the volume rendering integral, which approximates the physical process of light transport through a participating medium. This differentiable process is what allows Neural Radiance Fields (NeRF) to be trained from 2D images using gradient descent.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Volume rendering is the foundational technique for generating 2D images from 3D data. These related concepts define the mathematical, algorithmic, and representational components that make it work.
Ray Marching
Ray marching is the core numerical integration algorithm used in volume rendering. It approximates the volume rendering integral by sampling a 3D field at discrete points along a ray from the camera.
- Process: Steps along a ray, querying the volume's density and color at each sample point.
- Accumulation: Uses the alpha compositing equation to blend samples from back to front, simulating light absorption and emission.
- NeRF Application: In a Neural Radiance Field, ray marching queries a neural network at each 3D point to get the radiance and density, which are then composited to produce a pixel color.
Volume Rendering Equation
The volume rendering equation is the continuous mathematical model that ray marching approximates. It computes the color C of a pixel by integrating light contributions along a ray r(t) from the near bound t_n to the far bound t_f.
The standard form is:
C(r) = ∫_tn^tf T(t) * σ(r(t)) * c(r(t), d) dt
where:
- σ(r(t)) is the volume density at point t.
- c(r(t), d) is the radiance (color) emitted at that point in direction d.
- T(t) = exp(-∫_tn^t σ(r(s)) ds) is the transmittance, representing the probability the ray travels from t_n to t without hitting any particles. This equation is the theoretical foundation for all volumetric rendering, including NeRF.
Alpha Compositing
Alpha compositing is the discrete, front-to-back algorithm used to approximate the volume rendering integral during ray marching. It is also known as the over operator.
For N ordered samples along a ray, the accumulated color C and opacity α are computed iteratively:
C_i = C_i-1 + (1 - α_i-1) * α_i * c_iα_i = α_i-1 + (1 - α_i-1) * α_i
Key Properties:
- c_i is the color of the i-th sample.
- α_i is the opacity of the i-th sample, derived from density (
α_i = 1 - exp(-σ_i * δ_i), where δ_i is the distance between samples). - The term
(1 - α_i-1)is the remaining transmittance, ensuring deeper samples contribute less if the ray is already occluded.
Transfer Function
A transfer function is a user-defined mapping that assigns optical properties (color and opacity) to the scalar values in a volumetric dataset. It is a critical tool for visualizing scientific and medical data (e.g., CT, MRI scans).
- Purpose: Makes specific tissues or materials visible by mapping data values to high opacity and distinct colors.
- Contrast with NeRF: In a traditional volume renderer, the transfer function is applied to pre-existing 3D data. In NeRF, the neural network learns an implicit transfer function, outputting density σ and color c directly from 3D coordinates.
Emission-Absorption Model
The emission-absorption model is the specific physical light interaction model assumed by the classic volume rendering equation. It describes how light behaves as it passes through a participating medium.
- Absorption: Light is attenuated as it passes through the volume. The probability of absorption is defined by the absorption coefficient, related to density σ.
- Emission: The volume itself can emit light (e.g., a hot gas, a neon cloud). This emitted radiance is the c(r(t), d) term.
- Key Assumption: The model typically does not account for complex in-scattering (light scattering into the ray from other directions), which would require the full radiative transfer equation. NeRF and most real-time volume rendering use this simpler, effective model.
Differentiable Rendering
Differentiable rendering is a framework that allows gradients to flow from a synthesized 2D image back to the underlying 3D scene parameters. This is the enabling technology for training Neural Radiance Fields.
- Core Mechanism: Makes the rendering process (ray marching, sampling, compositing) differentiable with respect to scene parameters like density and color.
- NeRF Training: The photometric loss between a rendered image and a ground truth image generates gradients. These gradients propagate backward through the volume rendering pipeline to update the weights of the neural network defining the radiance field.
- Impact: It turns rendering from a final visualization step into an optimization tool for reconstructing 3D geometry and appearance from 2D images.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us