An open API service indexing awesome lists of open source software.

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

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