https://github.com/danielesteban/wasmblocks
A tech demo of a voxelizer implemented in C
https://github.com/danielesteban/wasmblocks
Last synced: over 1 year ago
JSON representation
A tech demo of a voxelizer implemented in C
- Host: GitHub
- URL: https://github.com/danielesteban/wasmblocks
- Owner: danielesteban
- License: mit
- Created: 2021-03-21T15:46:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-23T17:20:10.000Z (over 5 years ago)
- Last Synced: 2025-02-28T11:56:28.666Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 1.95 MB
- Stars: 16
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[wasmblocks tech demo](https://wasmblocks.gatunes.com/)
==
[](https://wasmblocks.gatunes.com/)
> A tech demo of yet another voxelizer. This time with a backend implemented in C.
#### Live demo
[https://wasmblocks.gatunes.com/](https://wasmblocks.gatunes.com/)
#### Animation Test
[https://wasmblocks.gatunes.com/#/animation](https://wasmblocks.gatunes.com/#/animation)
#### Dev dependencies
To build this, you'll need to install LLVM:
* Win: [https://chocolatey.org/packages/llvm](https://chocolatey.org/packages/llvm)
* Mac: [https://formulae.brew.sh/formula/llvm](https://formulae.brew.sh/formula/llvm)
* Linux: [https://releases.llvm.org/download.html](https://releases.llvm.org/download.html)
On the first build, it will complain about a missing file that you can get here:
[libclang_rt.builtins-wasm32-wasi-12.0.tar.gz](https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/libclang_rt.builtins-wasm32-wasi-12.0.tar.gz). Just put it on the same path that the error specifies and you should be good to go.
#### Local development
```bash
# clone this repo and it's submodules
git clone --recursive https://github.com/danielesteban/wasmblocks.git
cd wasmblocks
# build wasi-lib
cd vendor/wasi-libc && make -j8 && cd ../..
# install dev dependencies
npm install
# start the dev environment:
npm start
# open http://localhost:8080/ in your browser
```