o
odinpkg.dev
packages / app / odin-webgl-experiments

odin-webgl-experiments

d39f4d5app

Demos created while learning WebGL with Odin + WASM

No license · updated 4 months ago

odin-webgl-experiments

Demo projects using Odin compiled to WebAssembly and rendered using WebGL

jlafayette.github.io/odin-webgl-experiments

Prerequisites

Odin (uses fork at jlafayette/Odin) Go (for dev server) Python (for build/publish scripts)

To build an example with the dev server:

python build.py <example-name>

Useful Resources

Resizing and Zooming

webglfundamentals webgl-resizing-the-canvas

Phone Compatibility

Had a problem when the phone is vertical, the window size wasn't being set right and the aspect ratio was off and top of content cut off. Took a while to find the answer:

stackoverflow question

Viewport meta tag

TODO

[ ] multi: Have js send if running on mobile [ ] multi: Buttons for mobile inputs to cycle things [ ] camera: use quaternions [ ] camera: determine N_CUBES from query parameters if provided [ ] keyboard: add wave switcher