From acb541cc4e41c0c02b75a3a0c939128c4de93678 Mon Sep 17 00:00:00 2001
From: Andreas Sundquist
Date: Mon, 9 Jun 2025 13:50:08 -0700
Subject: [PATCH] Renamed "forge" to "spark". Updated meta-references and
future domain. (#40)
---
.github/workflows/ci-linux.yml | 4 +-
.github/workflows/ci-windows.yaml | 4 +-
README.md | 40 +++----
biome.json | 2 +-
docs/docs/community-resources.md | 14 +--
docs/docs/controls.md | 6 +-
docs/docs/dyno-overview.md | 10 +-
docs/docs/dyno-stdlib.md | 8 +-
docs/docs/index.md | 20 ++--
docs/docs/loading-splats.md | 4 +-
docs/docs/overview.md | 10 +-
docs/docs/packed-splats.md | 8 +-
docs/docs/performance.md | 4 +-
docs/docs/procedural-splats.md | 8 +-
.../{forge-renderer.md => spark-renderer.md} | 34 +++---
...{forge-viewpoint.md => spark-viewpoint.md} | 24 ++--
docs/docs/splat-editing.md | 2 +-
docs/docs/splat-mesh.md | 6 +-
docs/docs/system-design.md | 18 +--
docs/overrides/partials/header.html | 2 +-
docs/stylesheets/{forge.css => spark.css} | 0
examples.html | 16 +--
examples/assets.json | 50 ++++-----
examples/dynamic-lighting/index.html | 14 +--
examples/editor/index.html | 16 +--
examples/envmap/index.html | 12 +-
examples/hello-world/carousel.html | 6 +-
examples/hello-world/index.html | 6 +-
examples/interactivity/index.html | 6 +-
examples/js/get-asset-url.js | 2 +-
examples/js/preloader.js | 8 +-
...ding_black.gif => spark_loading_black.gif} | Bin
...ding_white.gif => spark_loading_white.gif} | Bin
examples/multiple-splats/index.html | 6 +-
examples/multiple-viewpoints/index.html | 14 +--
examples/particle-animation/index.html | 12 +-
examples/particle-simulation/index.html | 12 +-
examples/procedural-splats/index.html | 8 +-
examples/raycasting/index.html | 6 +-
examples/viewer/index.html | 30 ++---
.../viewer/{forge-logo.svg => spark-logo.svg} | 0
.../{forge-viewer.svg => spark-viewer.svg} | 0
index.html | 8 +-
mkdocs.yml | 10 +-
package-lock.json | 23 ++--
package.json | 20 ++--
rust/.gitignore | 2 +-
rust/Cargo.lock | 20 ++--
rust/Cargo.toml | 4 +-
rust/build_rust_wasm.ps1 | 2 +-
rust/build_rust_wasm.sh | 2 +-
.../Cargo.toml | 2 +-
.../README.md | 10 +-
.../src/lib.rs | 0
.../src/raycast.rs | 0
.../src/sort.rs | 0
scripts/compress-to-spz.js | 2 +-
scripts/deploy-site.js | 4 +-
src/PackedSplats.ts | 2 +-
src/Readback.ts | 2 +-
src/{ForgeRenderer.ts => SparkRenderer.ts} | 104 +++++++++---------
src/{ForgeViewpoint.ts => SparkViewpoint.ts} | 84 +++++++-------
src/SplatAccumulator.ts | 2 +-
src/SplatEdit.ts | 2 +-
src/SplatGenerator.ts | 2 +-
src/SplatGeometry.ts | 2 +-
src/SplatMesh.ts | 4 +-
src/controls.ts | 6 +-
src/index.ts | 6 +-
src/utils.ts | 4 +-
src/worker.ts | 4 +-
vite.config.ts | 6 +-
72 files changed, 396 insertions(+), 395 deletions(-)
rename docs/docs/{forge-renderer.md => spark-renderer.md} (77%)
rename docs/docs/{forge-viewpoint.md => spark-viewpoint.md} (89%)
rename docs/stylesheets/{forge.css => spark.css} (100%)
rename examples/js/{forge_loading_black.gif => spark_loading_black.gif} (100%)
rename examples/js/{forge_loading_white.gif => spark_loading_white.gif} (100%)
rename examples/viewer/{forge-logo.svg => spark-logo.svg} (100%)
rename examples/viewer/{forge-viewer.svg => spark-viewer.svg} (100%)
rename rust/{forge-internal-rs => spark-internal-rs}/Cargo.toml (91%)
rename rust/{forge-internal-rs => spark-internal-rs}/README.md (78%)
rename rust/{forge-internal-rs => spark-internal-rs}/src/lib.rs (100%)
rename rust/{forge-internal-rs => spark-internal-rs}/src/raycast.rs (100%)
rename rust/{forge-internal-rs => spark-internal-rs}/src/sort.rs (100%)
rename src/{ForgeRenderer.ts => SparkRenderer.ts} (91%)
rename src/{ForgeViewpoint.ts => SparkViewpoint.ts} (91%)
diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml
index 20cc3fe..aece633 100644
--- a/.github/workflows/ci-linux.yml
+++ b/.github/workflows/ci-linux.yml
@@ -1,4 +1,4 @@
-name: Forge CI Linux
+name: Spark CI Linux
on:
push:
branches:
@@ -10,7 +10,7 @@ permissions:
contents: read
jobs:
test:
- name: forge
+ name: spark
runs-on: ubuntu-latest
strategy:
matrix:
diff --git a/.github/workflows/ci-windows.yaml b/.github/workflows/ci-windows.yaml
index 1c26e5b..413eaa4 100644
--- a/.github/workflows/ci-windows.yaml
+++ b/.github/workflows/ci-windows.yaml
@@ -1,4 +1,4 @@
-name: Forge CI Windows
+name: Spark CI Windows
on:
push:
branches:
@@ -10,7 +10,7 @@ permissions:
contents: read
jobs:
test:
- name: forge
+ name: spark
runs-on: windows-latest
strategy:
matrix:
diff --git a/README.md b/README.md
index 05fe887..c85508a 100644
--- a/README.md
+++ b/README.md
@@ -1,27 +1,27 @@
- 
- 
+ 
+ 
An advanced 3D Gaussian Splatting renderer for THREE.js
- [](https://github.com/forge-gfx/forge/blob/main/LICENSE)
- [](https://www.npmjs.com/package/forge)
+ [](https://github.com/sparkjs-dev/spark/blob/main/LICENSE)
+ [](https://www.npmjs.com/package/@sparkjs-dev/spark)
-
+
@@ -38,7 +38,7 @@
- Real-time splat color editing, displacement, and skeletal animation
- Shader graph system to dynamically create/edit splats on the GPU
-Check out all the [examples](https://forge.dev/examples/)
+Check out all the [examples](https://sparkjs.dev/examples/)
## Getting Started
@@ -53,13 +53,13 @@ Copy the following code into an `index.html` file.
{
"imports": {
"three": "https://cdnjs.cloudflare.com/ajax/libs/three.js/0.174.0/three.module.js",
- "@forge-gfx/forge": "https://forge.dev/releases/forge/0.1.0/forge.module.js"
+ "@sparkjs-dev/spark": "https://sparkjs.dev/releases/spark/0.2.0/spark.module.js"
}
}
@@ -100,26 +100,26 @@ Remix the [glitch starter template](https://glitch.com/edit/#!/forge-dev)
### NPM
```shell
-npm install @forge-gfx/forge
+npm install @sparkjs-dev/spark
```
## Run Examples locally
Install [Rust](https://www.rust-lang.org/tools/install) if it's not already installed in your machine.
-Next, build Forge by running:
+Next, build Spark by running:
```
npm install
npm run build
```
-This will first build the Rust Wasm component (can be invoked via `npm run build:wasm`), then Forge itself (`npm run build`).
+This will first build the Rust Wasm component (can be invoked via `npm run build:wasm`), then Spark itself (`npm run build`).
The examples fetch assets from a remote URL. This step is optional, but offline development and faster loading times are possible if you download and cache the assets files locally with the following command:
```
npm run assets:download
```
-Once you've built Forge and optionally downloaded the assets, you can now run the examples:
+Once you've built Spark and optionally downloaded the assets, you can now run the examples:
```
npm start
```
@@ -183,7 +183,7 @@ Edit markdown in `/docs` directory
npm run docs
```
-### Build Forge website
+### Build Spark website
Build the static site and docs in a `site` directory.
@@ -197,9 +197,9 @@ You can run any static server in the `site` directory but for convenience you ca
npm run site:serve
```
-### Deploy Forge website
+### Deploy Spark website
-The following command will generate a static site from the `docs` directory and push it to the [repo](https://github.com/forge-gfx/forge-gfx.github.io) that hosts the site via `gh-pages`
+The following command will generate a static site from the `docs` directory and push it to the [repo](https://github.com/sparkjs-dev/sparkjs-dev.github.io) that hosts the site via `gh-pages`
```
npm run site:deploy
diff --git a/biome.json b/biome.json
index 816cc0c..13ca1ce 100644
--- a/biome.json
+++ b/biome.json
@@ -11,7 +11,7 @@
"dist/*",
"examples/showcase/hello-gsplat",
"rust/target",
- "rust/forge-internal-rs/pkg",
+ "rust/spark-internal-rs/pkg",
"src/vrButton.ts",
"site",
"site-repo",
diff --git a/docs/docs/community-resources.md b/docs/docs/community-resources.md
index 125c5b6..9e4b117 100644
--- a/docs/docs/community-resources.md
+++ b/docs/docs/community-resources.md
@@ -1,16 +1,16 @@
# Community Resources
-A collection of resources and examples created by the community. To add your own, please submit a PR to edit this page at [forge-gfx/forge](https://github.com/forge-gfx/forge/tree/main/docs/docs/community-resources.md).
+A collection of resources and examples created by the community. To add your own, please submit a PR to edit this page at [sparkjs-dev/spark](https://github.com/sparkjs-dev/spark/tree/main/docs/docs/community-resources.md).
## Discord
-Join the [Forge Discord](https://discord.gg/W39qmSKemS) to connect with other users and developers.
+Join the [Spark Discord](https://discord.gg/W39qmSKemS) to connect with other users and developers.
## React Examples
-Forge can be used alongside or within React for declarative scene management, dynamic rendering, and state management between your user interface and the 3D scene. See the following examples for how to use Forge with React.
+Spark can be used alongside or within React for declarative scene management, dynamic rendering, and state management between your user interface and the 3D scene. See the following examples for how to use Spark with React.
-- [`forge-react-basic`](https://github.com/forge-gfx/forge-react-basic): A basic example of creating a `