To train in Camera Server or Orbit, install the standalone Xangle 4DGS Trainer. The Windows preview uses it to prepare, train, and export a PLY sequence. You do not need the trainer to play an existing sequence.
Install the trainer and its runtime
Download the source from GitHub using Code → Download ZIP, then extract it. Open PowerShell in the extracted folder and install the command in a Python 3.11 virtual environment:
py -3.11 -m venv .venv
.\.venv\Scripts\python.exe -m pip install .
.\.venv\Scripts\xangle-4dgs.exe --help
The command does not install Open4DGS, CUDA, or model weights. Follow the trainer's runtime setup for the pinned Open4DGS checkouts, TRiGS checkpoint patch, and matching models. You need a CUDA-capable NVIDIA GPU, a compatible driver, and enough local disk space for the runtime, staged images, checkpoints, and PLYs.
Enable the Windows preview
Close Camera Server or Orbit. From the same PowerShell window, set these variables and launch the app. Replace the example runtime path with your own. The command below uses the default Camera Server install location. For a custom location or for Orbit, use the path to its executable instead.
$env:XANGLE_4DGS_TRAINER = (Resolve-Path .\.venv\Scripts\xangle-4dgs.exe).Path
$env:XANGLE_4DGS_RUNTIME = 'D:\path\to\4dgs-native'
$env:XANGLE_4DGS_PREVIEW = '1'
& "$env:ProgramFiles\Xangle\cameraserver\cameraserver.exe"
If you have the xangle-apps and xangle-4dgs-trainer checkouts side by side,
you can run bat\run-cameraserver-4dgs.bat from the xangle-apps checkout
instead. It uses the runtime at %LOCALAPPDATA%\Xangle\4dgs-native.
In the app, open 4DGS, train a short range, and use Existing trainings to resume or export it. The preview can resume an interrupted batch at its original target. It cannot extend a completed batch, reuse preparation from another run, or resume a run created with the development backend.
If Train 4DGS is unavailable, check that the app was launched from that
PowerShell session and that the runtime contains env\Scripts\python.exe.
To train without either app, see the
standalone command examples.