Frontory

Open code, practice, and notes →

Download source with English comments · for reading

Gaussian Splatting · 04 Quaternions and Anisotropy

Series contents · Technology map

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

Goals and learning outcomes

Prerequisites

Continue using the output and records from Unit 3. Before the Quaternions and Anisotropy experiment, preserve the previous inputs and reference outputs.

Key concepts and explanations

Representing rotation

A quaternion must maintain unit length to represent a rotation. The component order in a file may differ from the library constructor's order.

Anisotropy

If the three scale values differ, width varies with direction. For an isotropic Gaussian, changing the rotation leaves the shape unchanged.

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 shape.js, write normalization and component-order conversion functions.
  2. Supply scale [0.3,0.1,0.1] and a 90-degree rotation to the CPU projection input.
  3. Apply the same rotation to the isotropic [0.1,0.1,0.1] input and compare bounding boxes.

Variables to observe

VariableBaselineChangeExpected change / hypothesis
Rotation angle0 degrees90 degrees about the Z axisExpect the anisotropic ellipse's long axis to change while the isotropic shape 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. How should a quaternion of length 0 be handled?
  2. What shape can a component-order error produce?

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: Coordinate Systems and Units · Next: Reading Shape from Covariance

Open code, practice, and notes →