https://github.com/anvaka/vector-space-adventure
WebGPU space ship simulator to fly through 3D/4D vector fields
https://github.com/anvaka/vector-space-adventure
vector-field webgpu
Last synced: 11 days ago
JSON representation
WebGPU space ship simulator to fly through 3D/4D vector fields
- Host: GitHub
- URL: https://github.com/anvaka/vector-space-adventure
- Owner: anvaka
- License: mit
- Created: 2023-06-04T16:57:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T07:26:59.000Z (3 months ago)
- Last Synced: 2025-02-13T08:27:30.395Z (3 months ago)
- Topics: vector-field, webgpu
- Language: JavaScript
- Homepage: https://anvaka.github.io/vector-space-adventure/
- Size: 1010 KB
- Stars: 28
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vector space adventure
This is a simple exploration of WebGPU applied to visualization of vector fields.
It allows you to control a spaceship and fly in a vector space. When you press the left mouse button
new lines are emitted at the crosshair's coordinates and the vector field simulates the movement of
those lines.Entire computation is done on the GPU using compute shaders.
Note: WebGPU is supported only by the latest version of Chrome and Edge.
## Controls
- `WASD` - move the spaceship
- `Shift` - move up
- `Space` - move down
- `Mouse` - look around. When pointer is locked, hit `ESC` to unlock it.## Local development
```
git clone https://github.com/anvaka/vector-space-adventure
cd vector-space-adventure
npm install
npm run dev
```## Support
Don't hesitate to reach out with any questions either here or on [twitter](https://twitter.com/anvaka).
If you like this project, consider [supporting it](https://github.com/sponsors/anvaka). Thank you!
## License
MIT