planet/README.md

33 lines
750 B
Markdown
Raw Normal View History

2020-01-19 06:49:04 +00:00
# Hexsphere and Icosahedron Viewer
2019-02-09 23:40:04 +00:00
2020-01-19 06:49:04 +00:00
View live at: https://www.hallada.net/planet/
2019-02-09 23:40:04 +00:00
2020-01-19 06:49:04 +00:00
Renders shapes generated from my other project
[icosahedron](https://crates.io/crates/icosahedron) ([github
repo](https://github.com/thallada/icosahedron)) using
[regl.js](https://github.com/regl-project/regl).
2019-02-09 23:40:04 +00:00
2020-01-19 06:49:04 +00:00
Since this is hosted on Github, which has a 100 MB file limit. The most detailed
shapes available for rendering are the hexsphere at detail level 6 and the
icosahedron at detail level 7.
2019-02-09 23:40:04 +00:00
2020-01-19 06:49:04 +00:00
## Running
2019-02-09 23:47:20 +00:00
2020-01-19 06:49:04 +00:00
Checkout and then run:
2019-02-09 23:47:20 +00:00
2020-01-19 06:49:04 +00:00
```
npm install
npm start
```
2019-02-09 23:40:04 +00:00
2020-01-19 06:49:04 +00:00
## Building
Compiles files to the `/docs` folder which is the folder set up for Github pages
hosting.
```
npm run build
```
Any output needs to be committed for it to appear on Github pages.