Skip to content

Image understanding, generation, and 3D reconstruction · Neural rendering and 3D reconstruction · VIS020 · Model

3D Gaussian Splatting (original)

Original 3D Gaussian Splatting represents a scene with explicit anisotropic Gaussians and renders novel views by differentiable splatting. It optimizes scene primitives, rather than requiring a large coordinate MLP;

Explained here Component demo, not a trained model CodeSplash's run and the reference's record

In CodeSplash

Documented in the Academy only. There's no Set up button.

Availability
Explained here
Code example
Component demo, not a trained model
Who ran it
CodeSplash's run and the reference's record
CodeSplash's run
The reference's example ran in Python and R here, and they agree.
The reference's record
Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

Original 3D Gaussian Splatting represents a scene with explicit anisotropic Gaussians and renders novel views by differentiable splatting. It optimizes scene primitives, rather than requiring a large coordinate MLP; density control adds, splits and prunes primitives during fitting.

Question / hypotheses

Can optimized explicit anisotropic primitives render unseen views while maintaining useful geometric consistency? This is a modeling/evaluation question, not a formal null-hypothesis test.

Architecture / computational structure

Each primitive has a 3D center, positive covariance, opacity and view-dependent spherical-harmonic color. Cameras project Gaussians to image-space ellipses, a rasterizer orders relevant contributions and composites colors. Optimization updates primitives from multiview image losses.

Assumptions

Calibrated views and a mostly static scene constrain the representation. Sparse coverage can produce floaters, unstable transparency and unseen-view holes; image fidelity does not imply accurate surfaces. Covariance parameterization must preserve positivity.

Formula / computational definition

Σ=Rdiag⁡(s12,s22,s32)RT\Sigma=R\operatorname{diag}(s_1^2,s_2^2,s_3^2)R^T, Σ2D≈JRcΣRcTJT\Sigma_{2D}\approx J R_c\Sigma R_c^TJ^T, and C=∑iciαi∏j<i(1−αj)C=\sum_i c_i\alpha_i\prod_{j<i}(1-\alpha_j). Here JJ is the projection Jacobian, RcR_c camera rotation and αi\alpha_i the opacity-weighted projected Gaussian at a pixel.

Parameters and notation

Notation: Here R is primitive rotation, s_j positive axis scales, Sigma its 3D covariance and R_c camera rotation. J linearizes projection, while c_i and alpha_i are a splat’s color and pixel opacity after Gaussian weighting; front-to-back ordering defines transmittance.

Learned or estimated: Gaussian centers, scales/rotations, opacities and spherical-harmonic color coefficients. Primitive count changes through density-control operations; it is not a fixed learned neural-layer width.

Hyperparameters and effects: Initialization, densification/pruning schedules and thresholds, separate parameter learning rates, SH degree, rasterization settings and image-loss weights. More primitives improve local capacity but consume memory and may overfit unsupported geometry.

Fitting, fine-tuning, and adaptation

Fit scene parameters with photometric and structural image losses, applying the documented density-control schedule. Refine on additional views using small rates and retained old-view supervision. For editing or partial refinement, freeze unrelated primitives deliberately; cross-scene transfer usually requires new geometry/initialization, not ordinary backbone fine-tuning.

How to use and calibrate

Hold out complete camera views and, for transfer claims, complete scenes; report calibration, coordinate units and capture overlap. Measure held-out-view image quality, rendering speed, memory/primitive count and geometry accuracy when relevant. Inspect depth ordering, opacity artifacts and extrapolated views; distinguish original rasterization from later antialiasing/dynamic-scene extensions.

Example application

Render interactive novel views of a static scene from a multiview capture. This is a proposed use case, not a claim of validated performance on supplied real data.

Interpretation / pitfalls

Watch out

Scene fitting may achieve high training-view fidelity with incorrect geometry. Rendering quality, camera accuracy and geometric validity need separate checks. A correct component calculation does not validate the full architecture, checkpoint or deployment pipeline.

Python and R code examples

Scope: Projected anisotropic Gaussian footprint plus ordered alpha compositing for two splats; 3D camera projection, spherical harmonics and density control are omitted. Use the shared setup. Dependencies: NumPy / base R. Validation: Python executed; R unexecuted.

Full-model route: Python: official Gaussian-splatting implementation with its compiled rasterizer. R: bridge for the full renderer. The examples compute a projected anisotropic footprint and ordered alpha compositing, not full optimization or rasterization.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Component demo, not a trained model — Projected anisotropic Gaussian footprint plus ordered alpha compositing for two splats; 3D camera projection, spherical harmonics and density control are omitted. Use the shared setup.

Shared setup for this chapter
import numpy as np
from itertools import permutations
def softmax(x):
    x=np.asarray(x,dtype=float)
    e=np.exp(x-x.max(axis=-1,keepdims=True))
    return e/e.sum(axis=-1,keepdims=True)
def bilinear(a,y,x):
    y=float(np.clip(y,0,a.shape[0]-1)); x=float(np.clip(x,0,a.shape[1]-1))
    y0=int(np.floor(y)); x0=int(np.floor(x))
    y1=min(y0+1,a.shape[0]-1); x1=min(x0+1,a.shape[1]-1)
    dy=y-y0; dx=x-x0
    return (1-dy)*((1-dx)*a[y0,x0]+dx*a[y0,x1])+dy*((1-dx)*a[y1,x0]+dx*a[y1,x1])
theta=.4; rot=np.array([[np.cos(theta),-np.sin(theta)],[np.sin(theta),np.cos(theta)]])
cov=rot@np.diag([.5**2,1.2**2])@rot.T
offset=np.array([.4,.2]); footprint=np.exp(-.5*offset@np.linalg.solve(cov,offset))
alpha=np.array([.8*footprint,.3]); colors=np.array([[1.,0.,0.],[0.,0.,1.]])
weights=alpha*np.r_[1.,1-alpha[0]]; bg=np.prod(1-alpha)
pixel=weights@colors+bg*np.ones(3)
assert np.linalg.eigvalsh(cov).min()>0 and np.isclose(weights.sum()+bg,1)
print('covariance:',cov,'footprint:',footprint,'pixel:',pixel)
R

Component demo, not a trained model — Projected anisotropic Gaussian footprint plus ordered alpha compositing for two splats; 3D camera projection, spherical harmonics and density control are omitted. Use the shared setup.

Shared setup for this chapter
softmax <- function(x) {
  if(is.null(dim(x))) {e<-exp(x-max(x)); return(e/sum(e))}
  t(apply(x,1,function(v) {e<-exp(v-max(v)); e/sum(e)}))
}
bilinear <- function(a,y,x) {
  y<-min(max(y,0),nrow(a)-1); x<-min(max(x,0),ncol(a)-1)
  y0<-floor(y); x0<-floor(x); y1<-min(y0+1,nrow(a)-1); x1<-min(x0+1,ncol(a)-1)
  dy<-y-y0; dx<-x-x0
  (1-dy)*((1-dx)*a[y0+1,x0+1]+dx*a[y0+1,x1+1])+dy*((1-dx)*a[y1+1,x0+1]+dx*a[y1+1,x1+1])
}
theta<-.4; rot<-matrix(c(cos(theta),-sin(theta),sin(theta),cos(theta)),2,byrow=TRUE)
cov<-rot%*%diag(c(.5^2,1.2^2))%*%t(rot)
offset<-c(.4,.2); footprint<-exp(-.5*sum(offset*solve(cov,offset)))
alpha<-c(.8*footprint,.3); colors<-matrix(c(1,0,0,0,0,1),2,byrow=TRUE)
weights<-alpha*c(1,1-alpha[1]); bg<-prod(1-alpha)
pixel<-as.vector(weights%*%colors)+bg
stopifnot(min(eigen(cov,symmetric=TRUE)$values)>0,abs(sum(weights)+bg-1)<1e-12)
print(list(covariance=cov,footprint=footprint,pixel=pixel))

Sources

From the CodeSplash reference, entry VIS020.