RustSynth is a modern rewrite of Structure Synth for generating 3D scenes and models from code.
(P.S Take a look at the docs for more info)
A web version is hosted here: http://rustsynth.hexdump0.pw (Using WASM)
Desktop build are also available in the releases
- Rust
- Node.js
- Tauri v2
git clone https://github.com/HexDump0/RustSynth/releases
cd src
cargo buildcd src/crates/rustsynth_app_tauri
npm install
npx tauri devcd src/crates/rustsynth_app_tauri
npm install
npm run web:devcd src
cargo run -p rustsynth_cli -- --helpBuild a script as OBJ (+ MTL):
cargo run -p rustsynth_cli -- export-obj path/to/model.es -o out/model.objBuild scene JSON from script:
cargo run -p rustsynth_cli -- build path/to/model.esOptions:
--seed <u64>--max-objects <usize>--max-generations <u32>--mode bfs|dfs
-
Using Rust Even though using typescript for the compilation part would be natural I decided to use Rust coz why the hell not. It is very much fast compared to the original version which was written in cpp.
It takes
0.599sto compile and export tree_3d.es while it took~3.2son StructureSynth -
Instanced rendering Objects of the same type are batched into one draw group, reducing draw calls from many per object to a few per group which is how it was done in StructureSynth. (Also using modern browser tech which is already wayy better at rendering stuff)
- Frontend stack: React + Vite + Three.js
- Desktop shell: Tauri v2
- Core pipeline: preprocess -> parse -> resolve -> validate -> evaluate -> export
GPL-3.0
