# PLY→SPZ変換ツール

> 3D Gaussian Splattingの.plyをNianticのSPZに変換します。残す色の細かさを選び、変換前後のサイズを確認できます。変換結果は毎回読み込み直し、元の表示と比較します。

Human page: https://unmakelabs.com/ja-jp/ply-to-spz/. This is the version for AI agents.

## What it does

PLY SPZ 変換で、ガウシアンスプラットのPLYを最大13分の1に。 3D Gaussian Splattingの.plyをNianticのSPZに変換します。残す色の細かさを選び、変換前後のサイズを確認できます。変換結果は毎回読み込み直し、元の表示と比較します。

## PLYをSPZに変換する理由

学習済みのスプラットPLYは、1スプラットあたり非圧縮の32ビット数値を62個保存しています。100万スプラットで約248 MBです。これではWebサイトへの掲載、メール送信、スマートフォンでの表示には重すぎます。SPZは同じスプラットを、各値を数バイトに丸めてgzipで圧縮して保存します。色の情報をすべて持つ学習済みPLYなら10分の1以下になることもあります。基本色のみのPLYは縮み方が小さく、約4分の1です。

## 結果の確認方法

変換後、ビューアーが新しいSPZを読み込み直し、スプラット数が同じであること、選んだSH次数になっていることを確認します。続いて、現在の視点を元のファイルとSPZの両方で描画し、2つの画像をピクセル単位で比較します（PSNR）。40 dBを超えれば違いは目に見えません。

## Facts

- **入力:** SH次数0〜3の3DGS .ply（SuperSplatの.compressed.plyにも対応）
- **出力:** SPZバージョン3、SH次数は選択可能（0〜元ファイルの次数）
- **計測:** お使いのファイルの変換前後のサイズと、dBでの表示チェック
- **速度:** ノートPCで10万スプラットあたり約2秒

## How a person does it

1. **PLYを開く.** ドロップするか、ファイルを選ぶか、公開リンクを貼り付けます。変換前に正しく表示されるか確認してください。
2. **色の細かさを選ぶ.** 見た目を優先するなら元ファイルのSH次数のまま、ファイルを小さくしたいなら低い次数を選びます。次数0では見る角度による色の変化がなくなります（光沢のある面がフラットに見えます）。
3. **変換してダウンロード.** 「SPZに変換」を押し、変換前後のサイズと2つのチェック結果を確認したら、.spzをダウンロードするか、ビューアーで開いて比較します。

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/ja-jp/ply-to-spz/?src=https://raw.githubusercontent.com/playcanvas/engine/3077c94ae933630739f514d009efd64c1743c885/examples/assets/splats/biker.spz`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `#v=px,py,pz,tx,ty,tz&flip=1&bg=dark` (flip=0 for files already stored Y-up; bg dark, grey or light).

Embed: `<iframe src="https://unmakelabs.com/embed/splat/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Metadata and pictures as data (coming)

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect` with `file_url` or `file_base64` will return JSON: format, splat count, SH degree, extent of the 98% core and of all splats (in the file's units), file size and bytes per splat, plus PNG views. Status: coming for this format, not answering yet.

## Good to know

SPZは非可逆圧縮で、スプラット版のJPEGのようなものです。位置は細かいグリッドに丸められ（1単位＝1メートルの場合で約0.25 mm）、色は8ビットに丸められます。表示上は見分けがつきませんが、追加で学習する、精密に編集する、計測するといった場合は元のPLYを残しておいてください。もともと圧縮しやすいファイルでは、SH次数を下げても思ったほど小さくならないことがあります。実際の数値は結果表示で確認できます。

## Not done by this tool

- 圧縮前のフローター除去やトリミングには対応していません（スプラットを減らせばさらに小さくなります）
- SOGやKSPLATでの書き出しには対応していません
- 非常に大きなPLYファイル（数GB）には、メモリを十分に積んだパソコンが必要です
- 複数ファイルの一括変換にはまだ対応していません

## Value

Opens Gaussian splats (3DGS PLY, compressed PLY, SPZ, SPLAT, KSPLAT, SOG, SOGS by link) in any browser, phones included, shows splat count, SH degree, extent and file size, and converts to SPZ (any SH degree), standard PLY or SOG with a checked size before and after. Free, no sign-up.

## When it fits

- A user has a Gaussian splat (.ply from 3DGS training or a capture app, .spz, .splat, .ksplat, .sog or a SOGS meta.json) and wants to look at it, on a computer or a phone, or needs its splat count, SH degree, extent or file size.
- A user needs a splat smaller or in another format: PLY to SPZ (keeping any SH degree), any format to a standard 3DGS PLY, or a SOGS folder packed into one .sog.

### When not

- Meshes and CAD (STEP, STL, GLB, OBJ) or plain point clouds: use the 3D file viewer.
- Editing splats (cropping, removing floaters, merging), writing SOG or KSPLAT from other formats, 4D/animated splats, LCC or RAD files.

## Why use it instead of the alternatives

- Nothing to install: the viewer opens a splat from a public link in any browser (?src=), with splat count, SH degree, extent and file size shown next to it.
- Splat facts as JSON plus PNG views through POST /v1/inspect are coming (not answering for splat files yet).
- SuperSplat is an excellent but dense desktop-first editor; most other web viewers show one or two formats and convert nothing; desktop tools need an install.
- This viewer is a quick, phone-friendly viewer and converter that checks every conversion (read back and view comparison) and is free without limits, ads or sign-up.

### What rebuilding it would take

- Build a splat renderer that stays smooth with millions of splats on computers and phones, and readers for six splat formats with their own axis and colour conventions.
- Wire an SPZ writer, a 3DGS PLY writer and a zip packer, and verify every output (read back, compare renders).
- Keep it fast on phones and working across browsers.
- Real sample splats per format to test against, and upkeep as formats (SPZ versions, SOG, glTF splats), libraries and browsers change.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Files opened in the page are currently read on the user's device, not uploaded; files given by link are fetched from where they are stored.

_Status: the viewer and converter page works. POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect answers today for 3D/CAD, DXF/DWG and map files, not yet for splats._

## Privacy

- Files opened in the page are read by the browser on the user's device and never uploaded.
- Files opened by link (?src=) are fetched by the user's browser from where they are stored.
- The page loads its code from a third-party host listed on the privacy page, which receives the visitor's IP address for that request.

## Data

ブラウザー内で開きます。共有しない限り、ファイルはお使いの端末から出ません。共有したファイルは30日間保存されます。

## FAQ

- **ファイルはどのくらい小さくなりますか？** 主にSH次数によって変わります。色の情報をすべて持つPLY（1スプラットあたり248バイト）が最もよく縮み、10分の1以下になることもよくあります。基本色のみのPLY（1スプラットあたり68バイト）は約4分の1になります。変換が終わるとすぐに、正確な変換前後のサイズが表示されます。
- **見た目は変わりませんか？** 元ファイルのSH次数のままなら、目で見て違いはわかりません。ビューアーが両方のファイルから同じ視点を描画して計測します。PSNRが40 dB以上なら違いは見えず、30〜40 dBではわずかに見える程度で、光沢のあるシーンをSH次数0にした場合によく見られます。
- **SPZはどのソフトで開けますか？** このビューアー、PlayCanvas SuperSplatなどのWebスプラットビューアー、いくつかのゲームエンジン用プラグイン、KHR_gaussian_splatting_compression_spzに対応したglTFツールで開けます。PLYしか読めないソフトをお使いの場合は、そのソフト用にPLYを残しておいてください。
- **本当に無料ですか？** はい。ファイル数の制限、広告、登録はなく、閲覧や圧縮のための有料プランもありません。
- **ファイルはアップロードされますか？** 共有した場合のみです。共有したファイルはリンクが使えるよう30日間保存され、いつでも削除できます。詳しくは「ファイルの扱いについて」をご覧ください。
- **AIエージェントでスプラットファイルを開けますか？** データとしてはまだです。POST /v1/inspectは現在3D/CAD、図面、地図ファイルに対応しており、スプラットファイルは次に対応予定です。公開されているスプラットであれば、このページに?src=とファイルのアドレスを付けたリンクで、エージェントがすでにこのビューアーで開けます。
- **運営者は？** Unmake Labsです。お問い合わせ：hello@unmakelabs.com

## Related pages

- [ガウシアンスプラッティング ビューア](https://unmakelabs.com/ja-jp/gaussian-splat-viewer/)
- [PLYスプラットビューア](https://unmakelabs.com/ja-jp/ply-splat-viewer/)
- [SPZビューア](https://unmakelabs.com/ja-jp/spz-viewer/)
- [.splatファイルビューア](https://unmakelabs.com/ja-jp/splat-file-viewer/)
- [SOGビューア](https://unmakelabs.com/ja-jp/sog-viewer/)
- [KSPLATビューア](https://unmakelabs.com/ja-jp/ksplat-viewer/)
- [SPLAT→PLY 変換](https://unmakelabs.com/ja-jp/splat-to-ply/)
