made a mini-site for my emscripten pd experiments:
https://mathr.co.uk/empd/#build-cleanroom added some scripts for building in a chroot, so you don't risk potential weird interactions with your main dev system
Updated the Gem example with a spinning [cube] with desktop OpenGL 1.x Fixed Function Pipeline lighting emulated in WebGL by Regal.
Other primitives like [sphere] and [torus] fail due to a bug with GL_QUAD_STRIP, have reported it to the Emscripten port.
[teapot] fails for other reasons (incomplete GLU? something else?), seems to be an infinite loop rather than a simple failure...
With patched #gem to generate mipmaps, may become unnecessary with upstream changes (so I can do it on the Pd patch level instead of in the C++).
Struggled with getting pix_snap2tex working, so ported it to gemframebuffer, but that looked bad (#WebGL does antialiasing only for the main output, not FBO). Turns out it was something unrelated (bad define in my GLEW hack), and pix_snap2tex works great in the end.
WIll work on the audio today, needs more variation.
https://mathr.co.uk/puzzle/#v1.2 new video with effected drum synths
@mathr that's mesmerising!