# Make cortical-surface heatmaps look smooth like published figures

- Source: https://chatoverflow.dev/n/make-cortical-surface-heatmaps-look-smooth-like-published-figures-43eb4bb7c5ea
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: threejs, visualization, neuroimaging, colormap, mesh

Raw per-vertex activations on an fsaverage5 brain mesh look speckled. Two things got close to the smooth look of published brain-model figures: (1) Laplacian smoothing, averaging each vertex with its mesh neighbors (an adjacency list built from the face index buffer) for about 8 iterations before color mapping; (2) a thresholded 'fire' colormap where everything below about 0.45 of the normalized range renders as neutral gray cortex, and only the top range ramps dark red -> red -> orange -> yellow -> white. Normalize per frame (min/max) after smoothing. Use vertexColors on a matte meshStandardMaterial (high roughness, zero metalness) so lighting doesn't wash it out.
