Commit Graph

257 Commits

Author SHA1 Message Date
sparkjsdev[bot] b829d125ab Bump dist build 2025-07-23 17:06:34 +00:00
Andreas Sundquist f60c2b0cf9 Custom/extended splat encoding ranges, Premultiplied alpha for hyper-saturated colors (#134)
* Externalized SparkRenderer.maxPixelRadius and .minAlpha settings. Added to documentation. Added to examples/editor under Debug folder, moved sort32 there.

* Added SplatEncoding concept, applied individually to SparkRenderer (rgbMin/Max, lnScaleMinMax), SplatMesh (additionally sh1Min/Max, sh2, sh3). Updated examples/editor to control settings via gui. Updated all related code to pipe along settings where needed.
Added SparkRenderer.premultipliedAlpha to control blend mode and enable hyper-saturated color contributions by default.

* Fix SplatLoader not passing along encoding. Complete renaming to splat encoding.
2025-07-23 10:04:24 -07:00
sparkjsdev[bot] f4b4522c56 Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@036a74f83f15454b92ba145ae743052e65ea1ee1/dist/spark.module.js) 2025-07-23 13:51:12 +00:00
sparkjsdev[bot] 036a74f83f Bump dist build 2025-07-23 13:51:10 +00:00
Noeri Huisman 9b6ea3c987 Combine tallying of buckets for both passes of float32 sorting (#132) 2025-07-23 15:49:00 +02:00
kali c1a335e8ee Added particle flow transition to examples (#131)
* Added particle flow transition to examples

* Added particle flow transition to examples
2025-07-22 20:08:50 +02:00
sparkjsdev[bot] 3a63eaeba2 Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@d9dd43c9ea9f00dc26bc705748a3c014e61a89bd/dist/spark.module.js) 2025-07-22 01:17:26 +00:00
sparkjsdev[bot] d9dd43c9ea Bump dist build 2025-07-22 01:17:24 +00:00
Andreas Sundquist 5eb57038b4 Externalize render settings minAlpha and maxPixelRadius (#130)
* Add commented benchmarkSort to compare JS vs Wasm sorting.

* Add 32-bit float sort via SparkViewpooint.sort32, using 2-pass radix-65536 sort. Turn on sort32 by default for examples/editor. Implemented Rust sort and JS sort, updated benchmarking code to include float16 and float32 sort.

* Add sort32 to docs/spark-viewpoint.md.

* Externalized SparkRenderer.maxPixelRadius and .minAlpha settings. Added to documentation. Added to examples/editor under Debug folder, moved sort32 there.
2025-07-22 03:15:13 +02:00
sparkjsdev[bot] 23b9b190a0 Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@d1b8c5687c112ffc6cd36dca9694c8fa8a9dddcd/dist/spark.module.js) 2025-07-22 00:50:03 +00:00
sparkjsdev[bot] d1b8c5687c Bump dist build 2025-07-22 00:50:01 +00:00
Andreas Sundquist 0bfb6c8963 Implement float32 sorting option (#129)
* Add commented benchmarkSort to compare JS vs Wasm sorting.

* Add 32-bit float sort via SparkViewpooint.sort32, using 2-pass radix-65536 sort. Turn on sort32 by default for examples/editor. Implemented Rust sort and JS sort, updated benchmarking code to include float16 and float32 sort.

* Add sort32 to docs/spark-viewpoint.md.
2025-07-21 17:47:41 -07:00
sparkjsdev[bot] 2ab9ee1e78 Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@013c9c0ae13ab735b9cc85c94ef23657c993b65f/dist/spark.module.js) 2025-07-16 16:45:25 +00:00
sparkjsdev[bot] 013c9c0ae1 Bump dist build 2025-07-16 16:45:24 +00:00
Noeri Huisman c803096259 Allow image decoding to happen in parallel when parsing SOGS (#122) 2025-07-16 18:43:09 +02:00
Noeri Huisman 1e697b397c Use FullScreenQuad instead of custom setup (#121) 2025-07-16 18:42:52 +02:00
sparkjsdev[bot] f114f73331 Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@67acaad6185515351814e0c10d04976a7608a26b/dist/spark.module.js) 2025-07-15 21:48:25 +00:00
sparkjsdev[bot] 67acaad618 Bump dist build 2025-07-15 21:48:24 +00:00
Noeri Huisman c25dc354bc Use JSDoc for documenting SparkRenderer and SparkViewpoint options (#123) 2025-07-15 23:46:18 +02:00
Diego Marcos Segura 8abae953cc Add missing sogs example to the site 2025-07-15 17:08:39 +02:00
Diego Marcos Segura add720614f Add missing splat-transitions example to the list 2025-07-15 02:32:12 +02:00
Noeri Huisman 141e2f381d Perform more tree-shaking on worker code (#118) 2025-07-14 17:50:58 +02:00
Diego Marcos Segura 54a0d1f140 Bump builds 2025-07-11 23:48:31 -04:00
Diego Marcos Segura 1e0fbefb97 Bump spark version 2025-07-11 23:47:47 -04:00
Diego Marcos Segura 26f474008d v0.1.6 changelog 2025-07-11 23:45:37 -04:00
sparkjsdev[bot] c2ff1274a8 Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@56cd3b7977d5c288eeb140fa026a96a63bda2117/dist/spark.module.js) 2025-07-12 02:01:32 +00:00
sparkjsdev[bot] 56cd3b7977 Bump dist build 2025-07-12 02:01:30 +00:00
Andreas Sundquist 0639f2f963 Rename SparkRenderer.renderScale to focalAdjustment. Add to constructor options and to docs. (#113) 2025-07-11 21:59:05 -04:00
sparkjsdev[bot] 00e3edb01a Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@80eac2d282f269dddc753de144aaeec0dfdeeec1/dist/spark.module.js) 2025-07-12 00:11:52 +00:00
sparkjsdev[bot] 80eac2d282 Bump dist build 2025-07-12 00:11:50 +00:00
Andreas Sundquist bf10efcab0 Update SplatLoader to handle progress updates, both for main file and any extra files, aggregating totals. Misc. improvements to examples. (#112) 2025-07-11 17:09:38 -07:00
61cygni 0cfa39df76 Add Sutro tower SOGS example (#111)
* Add Sutro tower SOGS example

- Reset to default settings
- Add to main index

* Remove spark renderer

* Update example title

---------

Co-authored-by: 61cygni <>
Co-authored-by: Diego Marcos <diego.marcos@gmail.com>
2025-07-11 16:20:40 -04:00
sparkjsdev[bot] 8c35d523a5 Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@a1a1a5351969e9b188a6176250b92d3031889cf4/dist/spark.module.js) 2025-07-11 18:39:43 +00:00
sparkjsdev[bot] a1a1a53519 Bump dist build 2025-07-11 18:39:41 +00:00
Noeri Huisman bc4f5137c6 Use fetch instead of FileLoader in SplatLoader to avoid reusing same arraybuffer (#94) 2025-07-11 11:37:20 -07:00
sparkjsdev[bot] 30d639a362 Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@1820b5b93118689520e00e2e05036f81853dbc06/dist/spark.module.js) 2025-07-11 18:33:16 +00:00
sparkjsdev[bot] 1820b5b931 Bump dist build 2025-07-11 18:33:15 +00:00
lucasoptml 0c3bb74e1a Add sh1, sh2 support to sogs (#109)
* Add sh1, sh2 support to sogs

* Fix lint issues

---------

Co-authored-by: Diego Marcos Segura <diego.marcos@gmail.com>
2025-07-11 11:30:57 -07:00
sparkjsdev[bot] 8d0267d7ff Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@4079cfc1a6d049e0b580477f24cc55d94cbdfeef/dist/spark.module.js) 2025-07-11 17:50:28 +00:00
sparkjsdev[bot] 4079cfc1a6 Bump dist build 2025-07-11 17:50:26 +00:00
Andreas Sundquist dc07e02a33 Expand internal splat scale encoding to e^[-12,9]. Lower zero cut-off to e^-30. Fix background color selection in editor. (#110) 2025-07-11 10:48:10 -07:00
Diego Marcos Segura c8394665ec Fix example importmaps 2025-07-10 23:06:58 -04:00
Diego Marcos Segura 6ba5309f5d Change sogs example blur and preBlur ammounts 2025-07-10 17:31:05 -04:00
Diego Marcos Segura 35927616f0 Add missing importmap 2025-07-10 01:46:23 -04:00
Diego Marcos Segura 9a7af2c7e9 Add example for SOGS compression 2025-07-10 01:29:26 -04:00
Winnie Lin fce43be8f0 Transition Shader Example (#69)
* v0 transition shader

* cleanup hardcoded constants, add multi-object transitions

* switch to fixed canvas

* update assets

* envmap draft

* update assets

* Move assets to CDN

* Replace underscore variable naming with camelCase for consistency

---------

Co-authored-by: Diego Marcos Segura <diego.marcos@gmail.com>
2025-07-08 16:27:55 -04:00
Andreas Sundquist fea2e17cd0 Add background color selector to examples/editor. (#103) 2025-07-08 12:24:50 -04:00
sparkjsdev[bot] 924f0842a0 Update main CDN URL. (https://cdn.jsdelivr.net/gh/sparkjsdev/spark@556e66c5872c501487bbf45aa0b08688ecf3a010/dist/spark.module.js) 2025-07-08 02:39:24 +00:00
sparkjsdev[bot] 556e66c587 Bump dist build 2025-07-08 02:39:23 +00:00
Andreas Sundquist 42d1477cb6 Fix visible flag bug in SplatGenerator/SplatMesh. (#101) 2025-07-07 22:37:09 -04:00