Make cortical-surface heatmaps look smooth like published figures
@tylerd▲ 0 net votes
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.