Skip to content
Suhas-GPublic

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

RenderGS

The Strawberry Gaussian splat scene rendered in RenderGS on Android

Scene: "Strawberry" by Dany Bittel (source), licensed under CC BY 4.0. Rendered with RenderGS.

RenderGS is a mobile-first Android viewer for 3D Gaussian splat scenes. It opens PLY, SPZ, and bundled SOG files directly from Android storage and renders multi-million-splat captures with a native Vulkan pipeline.

The application is intentionally a viewer rather than an editor. Its focus is a fast path from choosing a scene to exploring it on a phone, with touch-first camera controls, recent-file access, clear load failures, and optional performance information.

Why RenderGS

Gaussian splat capture and interchange formats are developing quickly, but many established tools are designed primarily around desktop editing, conversion, or publishing workflows. RenderGS focuses on a narrower use case: opening an existing scene from an Android document provider and inspecting it locally without first preparing a hosted viewer.

This makes it useful for creators and developers who want to review captures away from a workstation, revisit spatial scenes on a phone, or check a raw or compressed deliverable on representative mobile hardware.

Features

  • Direct document-picker access to PLY, SPZ, and SOG scenes.
  • Native Vulkan rendering with GPU projection, culling, compaction, sorting, spherical-harmonic evaluation, and rasterization.
  • Exact global back-to-front ordering through four stable GPU radix passes.
  • Degree-3 spherical harmonics and anisotropic Gaussian covariance projection.
  • Scene admission up to six million retained splats, subject to device memory.
  • One-finger orbit plus two-finger pan, pinch zoom, and camera roll.
  • Scene-adaptive close zoom, wider overview zoom, and camera reset.
  • Up to ten manually selected recent scenes using retained Android document permissions; scenes are never opened automatically.
  • A collapsible statistics panel with load durations, process memory, renderer-owned Vulkan allocation requirements, GPU timings, and the latest visible-splat count.
  • Renderer work and Vulkan waits remain off the Android UI thread.
  • Scene resources and camera state survive normal Activity recreation; leaving the viewer releases scene-owned GPU resources.

Supported formats

Format Supported scope
PLY Binary little-endian Graphdeco-style Gaussian splat PLY with property-order-independent decoding.
SPZ Base SPZ versions 1-4. Versions 1-3 use the legacy gzip container and version 4 uses zstd attribute streams.
SOG Bundled, non-streaming SOG v2 with meta.json and lossless WebP property images stored at the archive root.

The renderer supports spherical-harmonic bands 0-3. SPZ degree-4 data is loaded with band 4 omitted, while bands 0-3 remain unchanged. SPZ files that declare optional extensions are currently rejected because an extension may change coordinate interpretation. Directory-based SOG, legacy SOG v1, streamed SOG, ZIP64, encrypted archives, and lossy WebP property images are outside the current SOG scope.

Rendering pipeline

Android document descriptor
  -> format dispatcher
  -> PLY, SPZ, or SOG decoder
  -> loader-neutral SplatScene
  -> immutable Vulkan source buffers
  -> GPU project / cull / degree-3 SH / compact
  -> four stable depth radix passes
  -> one indirect back-to-front instanced-quad draw

The format boundary is independent of Vulkan. Each loader converts its source representation and coordinate convention into the same SplatScene contract, so adding another format does not require a renderer change.

Source attributes remain GPU-resident after installation. Visible splats are projected and compacted by a compute shader, globally sorted by a stable four-pass least-significant-digit radix sort, and drawn as instanced quads in one indirect draw. Static camera poses reuse the projected and sorted buffers.

Large-scene support accounts for Android devices whose maxStorageBufferRange is 128 MiB. Spherical-harmonic data is exposed through aligned descriptor windows, and each logical projected record is split into four descriptor-safe vec4 streams without changing the rendering math.

See IMPLEMENTATION.md for format validation, memory ownership, synchronization, camera behavior, performance semantics, and the decisions behind the production path.

Device requirements and limits

  • Android 12 (API 31) or newer.
  • Vulkan 1.1 support.
  • Available memory appropriate for the selected scene.
  • At most 6,000,000 retained splats per scene.

RenderGS uses a conservative memory-pressure estimate before renderer installation. A scene within the product limit may still fail if the Vulkan driver cannot satisfy its allocations; conversely, the estimate is advisory because Android GPUs commonly share system memory. The UI warns when a scene appears likely to create memory pressure, while the actual Vulkan allocation result remains authoritative.

Verification

The current application has been exercised on a OnePlus 13R running Android 16 with PLY, SPZ, and bundled SOG scenes. The large-scene path has also been tested with a 5,559,909-splat Graphdeco PLY scene of approximately 1.5 GB.

Performance and capacity are device- and scene-dependent. Measurements shown by the application describe the current run; they are not universal benchmark claims. Renderer-owned Vulkan allocation requirements may overlap process RSS on unified-memory devices and must not be added to RSS as if they represented separate physical memory.

Download

Download RenderGS v1.0.0 for Android

Requires Android 12 or newer and Vulkan 1.1. See the v1.0.0 Build Week release for installation instructions, supported formats, verification details, and known limitations.

Build from source

Prerequisites

  • Android Studio with an Android SDK containing API 37.
  • Android NDK 30.0.14904198.
  • CMake 3.22.1.
  • A Vulkan shader compiler (glslc).

Configure the Android SDK normally through Android Studio. The local SDK configuration must also provide glslc.dir, pointing to the directory that contains glslc, because Android Gradle Plugin 9.2 requires an explicit shader compiler location for these custom Vulkan shaders.

Build the debug APK from Android Studio or run:

.\gradlew.bat :app:assembleDebug

The output is written under app/build/outputs/apk/debug/. Native dependencies are pinned in the repository; CMake does not download native code while configuring the build.

Project structure

app/src/main/java/com/suhasg/rendergs2/  Android UI, lifecycle, file access, gestures
app/src/main/cpp/loaders/                PLY, SPZ, and SOG ingestion
app/src/main/cpp/core/                   Loader-neutral scene representation
app/src/main/cpp/renderer/               Gaussian splat rendering pipeline
app/src/main/cpp/vulkan/                 Vulkan device, surface, and swapchain lifecycle
app/src/main/shaders/                    Projection, radix-sort, and raster shaders

OpenAI Build Week 2026

RenderGS2 is a focused rewrite of an earlier experimental RenderGS project. The validated global-sort rendering approach, rendering equations, and prior device experiments predate Build Week. During the submission period, the project was meaningfully extended into the application in this repository, including:

  • separation of scene decoding from the Vulkan renderer;
  • removal of abandoned experimental and diagnostic rendering paths;
  • Android lifecycle, threading, error-propagation, and resource-ownership work;
  • a touch-first viewer and full-screen scene-library experience;
  • recent-scene persistence through Android's Storage Access Framework;
  • SPZ versions 1-4 and bundled SOG v2 ingestion;
  • descriptor-safe rendering of scenes approaching six million splats;
  • camera roll, scene-adaptive close zoom, and wider overview navigation;
  • user-facing load, memory, visibility, and GPU timing information; and
  • production-path documentation covering invariants and engineering decisions.

Collaboration with Codex and GPT-5.6

All implementation and documentation in this rewrite were produced through Codex using GPT-5.6. The human developer supplied the product direction, confirmed engineering tradeoffs, reviewed the work, provided device feedback, selected test scenes, and performed all Android hardware testing.

Codex and GPT-5.6 contributed across Kotlin, JNI, C++, Vulkan, and compute shaders. Representative work included:

  • reproducing and auditing the validated renderer without retaining unrelated experimental paths;
  • finding a first-frame corruption caused by an inconsistent Vulkan barrier array bound and replacing the duplicated counts with a structural invariant;
  • auditing file-descriptor ownership, native exception propagation, renderer installation failure, and Activity recreation behavior;
  • designing aligned descriptor windows and split projected streams for large scenes on devices with a 128 MiB storage-buffer range;
  • implementing SPZ and SOG loaders with bounded input, strict validation, coordinate conversion, and controlled temporary-memory lifetimes;
  • iterating on two-finger gesture intent, close-zoom behavior, recent scenes, and persistent user-facing errors from on-device feedback; and
  • documenting the renderer's synchronization, memory accounting, shader ABI, and confirmed product decisions.

The dated commit history and the detailed decision record in IMPLEMENTATION.md distinguish the Build Week rewrite from the earlier experimental renderer.

Third-party software

RenderGS vendors pinned subsets of:

Exact commits, retained source scope, local adjustments, and license locations are documented in app/src/main/cpp/third_party/README.md.

License

RenderGS is licensed under the MIT License.

Third-party components retain their respective licenses. See THIRD_PARTY_NOTICES.md.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages