Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aneeshdurg/meshdeformation
https://github.com/aneeshdurg/meshdeformation
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aneeshdurg/meshdeformation
- Owner: aneeshdurg
- Created: 2024-12-22T19:07:58.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-22T19:10:37.000Z (about 1 month ago)
- Last Synced: 2024-12-22T20:21:35.674Z (about 1 month ago)
- Language: TypeScript
- Size: 841 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Generative art project that deforms a mesh of points based on some input "mass" image or video.
Particle simulation is done via WebGPU.Build instructions:
```bash
nvm install latest
npm install
npx webpack -w
```Generate key pair for SSL
```bash
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem
```Start https server
```python
import http.server
import ssldef get_ssl_context(certfile, keyfile):
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
context.load_cert_chain(certfile, keyfile)
context.set_ciphers("@SECLEVEL=1:ALL")
return contextclass MyHandler(http.server.SimpleHTTPRequestHandler):
def do_POST(self):
content_length = int(self.headers["Content-Length"])
post_data = self.rfile.read(content_length)
print(post_data.decode("utf-8"))server_address = ("127.0.0.1", 5000)
httpd = http.server.HTTPServer(server_address, MyHandler)context = get_ssl_context("cert.pem", "key.pem")
httpd.socket = context.wrap_socket(httpd.socket, server_side=True)httpd.serve_forever()
```Note that to test WebGPU stuff on linux the best option seems to be to download firefox nightly.