Repository navigation
Conversation
Add @sparkjsdev/radix as an optional peer dependency and devDependency, externalize @sparkjsdev/radix(/*)? in rolldown.config.js, and alias @sparkjsdev/radix's unused macOS fsevents dependency to @preact/signals-core so Linux installs and consumer type checks succeed without duplicating three.
XRTransition renders a 1m skybox sphere at renderOrder -Infinity with depthTest: false. WebGL implicitly suppresses depth writes when GL_DEPTH_TEST is disabled, whereas WebGPU maps depthTest: false to depthCompare: 'always' while keeping depthWriteEnabled: true, writing 1.0m across the depth buffer and culling scene geometry/splats beyond 1m.
…config Resolve WebXR+WebGPU availability and adapter-clamped baseline device limits in a single requestAdapter() query, forward scaleFactor and fixedFoveation into XRGPUBinding.createProjectionLayer(), support XRGPUBinding.getNativeFramebufferScaleFactor(), forward logarithmicDepthBuffer to WebGPURenderer, and add URL overrides (?antialias, ?framebufferScaleFactor, ?forceWebGL).
Add SplatsOptions, RadixSplatObject, RadixSplatManager, and options.enableSplats() to coalesce visible 3DGS nodes into a shared @sparkjsdev/radix SplatRenderer on WebGPURenderer across both native WebGPU and its WebGL2 + worker-sort fallback, with mobile XR defaults, O(1) uniform fades, stereo view-key sharing, raycast no-op safety, and deferred GPU resource release.
Dispatch .ply, .spz, .rad, and .rdx assets to @sparkjsdev/radix on THREE.WebGPURenderer (covering both native WebGPU and its WebGL2 TSL fallback) while retaining @sparkjsdev/spark (.ply, .spz, .splat, .ksplat) on classic THREE.WebGLRenderer, auto-ensuring SparkRenderer on WebGL scenes.
Enable Radix 3DGS by default in 3dgs_walkthrough, keep spatial_ui/modelviewer on WebGL (@sparkjsdev/spark) by default while configuring single-vsync close-range Radix splat budgets when ?rendererBackend=webgpu is selected, externalize @sparkjsdev/radix in template 13_typescript_vite, and document Radix vs Spark backend support in WebGPU.mdx and ModelViewer.md.
nsalminen
force-pushed
the
integrate_radix_xrblocks
branch
from
November 16, 2026 19:06
d83cd76 to
1965d46
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Integrates
@sparkjsdev/radixas an optional, dynamically imported peer dependency for 3D Gaussian Splatting onTHREE.WebGPURenderer. Radix uses WebGPU compute sorting when available and automatically falls back toWebGPURenderer's WebGL2 + worker-sort backend on XR devices where Chrome's experimental WebXR+WebGPU flags are off.@sparkjsdev/sparkis retained for classicTHREE.WebGLRenderer(which cannot compile TSLNodeMaterial) and.splat/.ksplatfiles.src/splats/,Options.enableSplats()): AddsSplatsOptions,RadixSplatObject(THREE.Object3Dwrapper with covariance bounds and uniform opacity fades), andRadixSplatManager(shared scene-wideSplatRenderer), with mobile XR defaults (antialias: false,framebufferScaleFactor: 0.8,sortBits: 16,maxStdDev: 2,minAlpha: 5/255).ModelLoader&ModelViewer: Dispatches.ply,.spz,.rad, and.rdxto Radix onWebGPURendererwhile keeping Spark onTHREE.WebGLRenderer(auto-creating a sharedSparkRendererwhen needed).XRGPUBinding+xrCompatibleadapter availability alongside clamped device limits in a singlerequestAdapter()call, forwardsscaleFactorandfixedFoveationtoXRGPUBinding.createProjectionLayer(), and setsdepthWrite: falseon theXRTransitionskybox sphere so WebGPU depth passes don't cull geometry beyond 1m.samples/xr_realism/3dgs_walkthrough/toenableSplats()by default (~14 FPS -> 72 FPS on Android XR), keepssamples/spatial_ui/modelviewer/on WebGL by default while configuring close-range Radix budgets for?rendererBackend=webgpu, and updatesdocs/docs/manual/WebGPU.mdxanddocs/docs/manual/ModelViewer.md.Type of Change
Media / Screen Recordings & Screenshots (If Applicable)
Checklist