Thermal rendering¶
VisionSim simulates heat on the surfaces of a Blender scene and renders the
result as temperature and thermal-camera images. Enable it alongside the usual
RGB and other outputs with --config.include-thermal. VisionSim bakes the
scene’s lighting with Cycles, integrates a temperature field for the requested
simulation time, and renders that final field from each requested camera pose.
A render animation therefore shows the same solved thermal state from different
views; it does not advance the heat simulation between frames.
The scene’s world, lights, emissive surfaces, materials and geometry affect the Cycles lighting bake. The heat solve uses surface sample points and a robust point-cloud Laplacian [1]. The point-cloud approach tolerates typical scene meshes, though scene scale, surface detail and sensible thermal material values still matter.
Getting started¶
Save a Blender scene with visible, renderable meshes, then run:
vsim blender.render-animation scene.blend out/ --config.include-thermal
The defaults produce a temperature EXR, an inferno-colour preview PNG, and a
thermal-radiance EXR in addition to normal render outputs. For a CPU-only
machine, add --config.thermal.device cpu. To skip the second render when
you only need temperatures, add --config.thermal.no-radiance. The default
render-domain AUTO chooses how densely to sample each surface; large walls
and floors will often use thermal atlas texels.
The --config.include-all flag enables thermal along with every other output, so it
also pays for the bake, the heat solve and the second render pass. Pass
--config.include-thermal instead when you want only the thermal outputs.
For example, to assign thermal materials, run a 60-second static heat solve, and increase the bake’s spatial resolution:
vsim blender.render-animation scene.blend out/ \
--config.include-thermal \
--config.thermal.assignments scene.thermal.json \
--config.thermal.sim-time-s 60 \
--config.thermal.timestep-s 0.1 \
--config.thermal.irradiance-texture-size 1024
The sim-time-s parameter is elapsed simulation time, not animation duration. Adjust it
to let heating and conduction develop before rendering. It does not move
objects or change illumination during the solve.
Reading the outputs¶
temperature/OpenEXR containing visible surface temperature in Kelvin, with a single channel on Blender 4.3 and newer and RGB (identical channels) before that. Read its floating-point values for measurement; 300 K is about 27 °C. A fixed-temperature source reports its assigned temperature.
previews/temperature/PNG with the temperature EXR mapped through the inferno palette. The colour range follows the solved scene’s temperatures, using the central 1st-to-99th percentile range and a minimum span so small differences remain visible. The same colour in two scenes need not mean the same Kelvin value. Disable with
--config.thermal.no-preview.thermal_radiance/OpenEXR from a second Cycles render, single-channel on Blender 4.3 and newer and RGB (identical channels) before that. The thermal material emits according to temperature and emissivity and reflects thermal light from other surfaces and the world. Thermal material presets choose diffuse or mixed diffuse/glossy reflection; glass is opaque here. The emission is spectrally flat, so radiance is a scalar field. This is a broadband gray-body image, not a calibrated image for a particular infrared camera band. Its emission scale follows \(\varepsilon\sigma T^4\), where \(\varepsilon\) is surface emissivity and \(\sigma\) is the Stefan–Boltzmann constant [2]. The shader uses an exitance-equivalent \(\sigma T^4\) magnitude, so pixel values should not be interpreted directly as W/(m²·sr) without a Lambertian \(1/\pi\) conversion.
Keep the EXRs when quantitative values matter. The PNG is a visualization. Radiance is a separate render pass, so turning it off can save substantial render time while leaving the temperature solve and output available.
During the radiance pass, VisionSim disables Cycles Filter Glossy, smooth mesh shading and weighted-normal modifiers. Reflections use the mesh’s face normals to avoid artificial dark rims near edges; geometry modifiers such as bevels remain active. The original filtering, smoothing and modifier settings are restored afterward, including on failure. These overrides do not change the lighting bake or temperature solve.
How the solve works¶
The Cycles bake estimates incident light and visible albedo on each sampled
surface. VisionSim approximates absorbed heat as irradiance times
1 - albedo; irradiance-scale then multiplies that input. This is a
broadband approximation: visible colour is not measured infrared absorptivity.
For directly connected opaque Principled materials, the incident-light bake uses
a white diffuse receiver only at the initial measurement point. Every subsequent
reflection uses the original material, including reflections within one object.
The separate colour bake reads the original Base Color, including for metals.
This receiver requires constant Alpha 1, Transmission 0 and Subsurface 0, with no
volume shader. Linked opacity inputs, transparent or translucent materials, and
complex shader graphs retain their previous bake behavior. The changes apply to
temporary material copies; authored RGB materials are restored after each bake.
The point-cloud solver spreads heat among nearby samples and includes radiative exchange with a fixed ambient reference. Its proximity-based conduction can also couple nearby, physically separate surfaces. It does not model air convection. Material presets are practical starting values, not measurements of a particular asset.
The scene starts at initial-temperature-K except at pinned sources. The
solver advances in timestep-s increments for sim-time-s and renders the
last temperature field. Both the heat calculation and thermal-render world use
a fixed 295 K ambient reference, separate from the configurable initial
temperature. Geometry is converted to millimetres internally; specify
diffusivity in mm²/s, density in kg/m³, specific heat in J/(kg·K), and
temperature in K.
Thermal parameters¶
All options below use the --config.thermal. prefix. For example,
--config.thermal.emissivity 0.8 changes the global emissivity. These are
scene-wide defaults: explicitly authored Blender object values can replace
material defaults, and an assignment sidecar can supply values per material
slot. Boolean options such as radiance and preview accept a no-
form to turn them off. See visionsim.simulate.config.ThermalConfig
for the configuration type.
Output and file settings¶
Parameter |
Default |
What it changes |
|---|---|---|
|
|
Includes the thermal-camera EXR and its second Cycles render. Disable when temperature data alone is enough. |
|
|
Writes the colourized temperature PNG. This does not change the solve. |
|
|
Path to JSON that assigns thermal presets and source roles by Blender material name. See Assigning materials and heat sources. |
|
|
Compression for temperature and radiance EXRs. ZIP preserves their floating-point values. |
|
|
Bits per channel in those EXRs. |
Material defaults¶
These are generic fallback estimates from ThermalConfig, independent of
the named material presets.
Parameter |
Default |
What it changes |
|---|---|---|
|
|
Starting surface temperature in Kelvin. Raising it warms the initial field, but does not change the fixed ambient reference. |
|
|
How quickly temperature differences spread spatially. Larger values smooth hot spots faster; smaller values keep heating more local. |
|
|
Density. Together with specific heat, it sets thermal inertia: higher density generally slows temperature change for a given input. |
|
|
Energy needed to warm a unit mass by one Kelvin. Larger values generally reduce and slow the temperature rise. |
|
|
Surface emissivity from 0 to 1. It controls radiative exchange in the solve and the mix of emitted versus reflected thermal light in the radiance image. Low-emissivity metal can appear closer to its surroundings than to its own temperature. |
Heating and integration¶
Parameter |
Default |
What it changes |
|---|---|---|
|
|
Multiplies absorbed input from the lighting bake. Increase it for a
stronger temperature rise from scene lighting. Unlike
|
|
|
Duration of the static heat solve in seconds. Longer times allow more heat to accumulate, diffuse and exchange with the ambient reference. |
|
|
Integration step in seconds. Smaller steps resolve the transient more finely but require more solve time. |
|
|
Cycles samples for the irradiance bake. More samples reduce stochastic speckle in the heating input, at extra bake cost; they do not increase spatial resolution. |
|
|
Width and height of the square Cycles irradiance and albedo bakes. Increasing it can preserve finer lighting and texture variation, with roughly quadratic image-memory and bake-work growth. |
|
|
Compute device for the heat solve: |
|
|
Regenerates the Cycles bakes and heat solve instead of using a reusable result from the scene’s thermal cache. |
Choosing surface samples¶
The solver needs points on surfaces where temperatures can differ. VERTEX
samples evaluated mesh vertices and interpolates the result over each face.
This works well for dense geometry, but a wall made from two large triangles
cannot show a detailed heating pattern between its corners. TEXEL creates
a thermal UV atlas and samples its covered texels. Its resolution can exceed
the mesh’s vertex density. Both choices use the same point-cloud heat solver
and Cycles bake.
AUTO chooses separately for each object. It keeps vertices when they are
dense enough and the solved field can be written back safely. It chooses texels
for sparse surfaces, locally large triangles, and evaluated meshes whose
vertices cannot be mapped safely back to the base mesh. Use TEXEL when you
want atlas sampling throughout a scene, or VERTEX when diagnosing a dense
mesh. The thermal UV layer is separate from the UVs used for RGB materials.
If an atlas is required but its surface cannot be rasterized, or if vertex
write-back is unsafe in VERTEX mode, VisionSim reports an error.
If a UV layout covers fewer atlas texels than the mesh has distinct, safely
addressable surface positions, AUTO retains vertices instead. Duplicate
vertices at UV or normal seams and unused vertices do not increase that count.
This prevents dense surfaces
such as upholstery from losing most of their thermal resolution to empty space
between UV charts. The lighting and albedo bakes reuse one geometry-dependent
UV layout; their UVs remain separate from the authored RGB texture coordinates.
Generated layouts are checked for overlaps, collapsed faces, and excessive
stretching. Invalid charts are unwrapped, split, and repacked on a private mesh;
the original geometry and RGB UVs are preserved. If repair fails, rendering stops
with an error instead of baking through an invalid layout.
Saved scenes retain the validated layouts under <scene>.blend.heatsim/bake_uv
so independent workers use identical thermal sample addresses.
If a tiny modified surface has no covered atlas texels, AUTO can retain the
vertices of its private render mesh without writing onto the original mesh.
Parameter |
Default |
What it changes |
|---|---|---|
|
|
Selects |
|
|
Target thermal samples per square metre for atlas surfaces. Raising it can resolve smaller hot spots, but increases point count, memory and solve cost. Tile dimensions and the overall budget can limit it. |
|
|
Minimum side length, in texels, of one object’s atlas tile. A larger minimum gives small objects more samples, at extra memory cost. |
|
|
Maximum side length of one object’s tile. A lower maximum limits the cost of large objects but reduces their effective resolution. |
|
|
Soft budget for atlas texels plus retained vertices. If exceeded, VisionSim reduces effective atlas density and warns. It is a planning limit rather than an exact cap. |
|
|
Multiplies gray-body emission in the thermal-radiance render. It changes image brightness, not the heat solve or temperature EXR. |
If a heating pattern looks noisy, raise bake-samples first. If it looks
smooth but misses small features, inspect both irradiance-texture-size and
the thermal sample density. More render pixels cannot restore a pattern absent
from the bake or solve points. Start with AUTO and change one setting at a
time while comparing the temperature EXR.
Assigning materials and heat sources¶
Global material defaults apply when nothing more specific is authored. Blender
objects can carry a heat_sim_material property group with initial
temperature, diffusivity, density, specific heat, emissivity, thermal_role
and dirichlet_temperature_K. Explicitly set object values override global
defaults. The object’s heat_simulation_enabled property controls whether
it joins the solve; an excluded visible object still renders with its default
temperature.
For scenes with several materials on one object, supply a JSON sidecar so a
wooden seat and metal legs need not share one thermal material. A sidecar maps
Blender material names to presets. The thermal assignment tutorial shows how to inventory a scene, draft a
sidecar and check it before rendering. Save this as scene.thermal.json:
{
"schema_version": 1,
"scene": "scene.blend",
"defaults": {"preset": "plaster"},
"materials": {
"Wood Panel": {"preset": "wood"},
"Steel Fixture": {"preset": "metal_painted"},
"Warm Plate": {
"preset": "metal_painted",
"role": "DIRICHLET_SOURCE",
"dirichlet_K": 320.0
}
}
}
Pass it using --config.thermal.assignments scene.thermal.json. Material
names must match the blend file exactly. schema_version must be 1;
scene is an informational label. The optional defaults.preset applies
when a material entry is missing or has no preset, including unnamed slots.
When neither supplies a preset, the object’s authored values or the generic
fallback values in ThermalConfig apply. A null preset does not exclude a
surface from the simulation.
A FEM_PARTICIPANT starts at its initial temperature and evolves during the
solve. A DIRICHLET_SOURCE stays pinned at dirichlet_K and can warm or
cool nearby participants through point-cloud coupling. A 320 K hotplate is
about 47 °C. Use a fixed source when its temperature is known or deliberately
prescribed. The sidecar accepts 280–500 K for dirichlet_K. On a Blender
object, set thermal_role to DIRICHLET_SOURCE and
dirichlet_temperature_K to its fixed value; if that object value is zero,
its initial temperature is used. Sidecar entries can also include
confidence and reason as authoring notes; the solver ignores them.
Preset values supply diffusivity, density, specific heat and emissivity. Some
common starting points are shown below. The full set of preset names is
aluminium, aluminium_polished, asphalt, brick, carpet,
ceramic, concrete, copper, drywall, fabric, foliage,
food, glass, iron, leather, li_ion, marble,
metal_painted, paper, plaster, polystyrene, porcelain,
pvc, rubber, skin, stainless_steel, steel, tile_glazed, water and
wood. Their values are defined in
visionsim.simulate.heatsim.materials. They describe generic materials
rather than a measured piece of furniture or appliance. A coating can change
surface emissivity even when the metal underneath has similar thermal mass.
Source links, derivations, surface assumptions and estimated values are recorded alongside the preset table in materials.py.
Preset |
Diffusivity (mm²/s) |
Density (kg/m³) |
Specific heat (J/kg·K) |
Emissivity |
|---|---|---|---|---|
|
0.15 |
700 |
1630 |
0.90 |
|
0.31 |
1120 |
1090 |
0.91 |
|
0.43 |
2500 |
880 |
0.84 |
|
15.4 |
7850 |
440 |
0.92 |
|
3.8 |
7900 |
500 |
0.16 |
|
97.0 |
2700 |
900 |
0.05 |
Within an atlas tile, material properties follow the face’s material slot. On the vertex path, properties at a vertex shared by multiple material faces are area-weighted; a fixed-temperature role follows the dominant adjacent material. Both sampling modes retain per-material behaviour, while a material boundary may look sharper in the atlas.
Reusing a solve¶
VisionSim stores reusable thermal results beside the blend file in a directory
named after it with a .heatsim suffix (for example scene.blend.heatsim).
For a clean, saved blend, it checks blend bytes, external images and libraries,
solver settings, sampling layout, and sidecar contents before reusing a result.
Edited or missing dependencies cause a new bake and solve. Passing
--config.thermal.recompute forces a new one. Changing only preview or radiance
display settings does not require a new heat solve.
Thermal atlases and attributes are prepared in memory for rendering; the
source blend is not overwritten. Save an output blend explicitly if you need
to reopen that prepared scene without relying on its external cache.