The SH4 Viewer on your own website

← Downloads

SH4 Viewer version 1.0 · guide of 29 November 2026

Show your Gaussian splats on your own web pages, with spherical harmonics up to degree 4 and the SH slider. It takes one folder, your splat file and one line of HTML.

Download SH4 Viewer · 0.9 MB

What you need

Four steps

  1. Unzip SH4-Viewer.zip. Inside is a folder named app:
    app/
      default-settings.json     the viewer's settings (background colour, …)
      index.html                the drop page of the Windows app (not needed on a website)
      viewer/
        index.html              the viewer
        index.js, index.css
        LICENSE-supersplat-viewer.txt
  2. Upload the app folder to your website and give it a clear name, for example sh4-viewer. Keep the files inside as they are.
  3. Upload your splat file to the same website, for example to /splats/my-specimen.sog.
  4. Paste this line where the viewer should appear on your page, with your own file name after content=:
    <iframe src="/sh4-viewer/viewer/index.html?content=/splats/my-specimen.sog&settings=../default-settings.json"
            style="width: 100%; aspect-ratio: 4 / 3; border: 0;"
            allow="fullscreen; xr-spatial-tracking" title="3D model"></iframe>

Open the page: the splat appears in the frame, with the SH slider at the top right. At the bottom right are the fit button (the target icon, or the F key: the object back in the middle, for visitors who got lost) and the full-screen button.

The address, part by part

Everything after the ? tells the viewer what to show. Parts are joined with &.

PartWhat it does
content=Required. The splat file to show. Best as a path from the root of your site (/splats/…).
settings=Required. The settings file. ../default-settings.json is the one from the zip, seen from the viewer folder. Without it the viewer stays empty.
poster=Optional. An image (.jpg, .webp) shown while the splat loads. Useful for a large file.
nouiOptional. Hides every control, the SH slider included: only the splat and the mouse or touch navigation remain.
noanimOptional. Does not play the camera animation of the settings file.

Example with a poster image and without controls:

/sh4-viewer/viewer/index.html?content=/splats/my-specimen.sog&settings=../default-settings.json&poster=/splats/my-specimen.webp&noui

The settings file

Good to know

Licence