Frontory

Open code, practice, and notes →

Download source with English comments · for reading

Gaussian Splatting · 07 Gaussian Kernels and Alpha

Series contents · Technology map

Stage: Foundations of Representation and Projection · Editable example · Storage ID: gaussian-splatting-step-07

Goals and learning outcomes

Prerequisites

Continue using the output and records from Unit 6. Before the Gaussian Kernels and Alpha experiment, preserve the previous inputs and reference outputs.

Key concepts and explanations

Kernel

A Gaussian's weight decreases with distance from its center. Use covariance-normalized distance rather than pixel distance to preserve the ellipse.

Opacity

Opacity combines with the kernel weight to produce pixel alpha. Even when the apparent total is similar, changing size and changing opacity have different effects.

Practice setup

First check the execution scope guidance on the example screen. The following describes the environment needed to extend the assignment in a separate project. This is a document-guided exercise in a separate local project. Use only small data you create or local files whose usage permission you have checked. The existing preview is a CPU teaching viewer for .splat/ASCII GS PLY files of at most 1 MiB and 512 items; it is not a Spark GPU renderer.

The linked example is a starting point. It does not implement every task below. Complete work beyond its supported scope in a separate project.

Practice tasks

  1. In kernel.js, write a function that calculates exp(-0.5*r²).
  2. Tabulate the weights at r=0,1,2,3 and multiply them by opacity.
  3. Draw one ellipse into Canvas ImageData and read the alpha at its center and edge.

Variables to observe

VariableBaselineChangeExpected change / hypothesis
opacity0.51.0Expect center alpha to double while the ellipse's normalized distance structure stays unchanged.

Predictions in this table are not measured results. Change one condition at a time and record why the actual result differs.

Completion criteria

Self-check

  1. What artifacts appear if the kernel is cut off at a finite radius?
  2. Why is causal analysis harder when scale and opacity change together?

Official references

Linked example and execution scope

Example source · Runtime environments and limits

CPU Canvas2D synthetic fixtures and contract checks. This does not provide Spark GPU rendering, training data, or claims about reconstruction quality or GPU performance.

Source code and records are not overwritten automatically. Resetting an existing example also preserves your notes.

Next learning

Previous: Camera Projection and Screen Ellipses · Next: Alpha Compositing and Order

Open code, practice, and notes →