made a mini-site for my emscripten pd experiments:
https://mathr.co.uk/empd/
http://mathr.co.uk/empd/gemtest.html victory! #puredata #gem #web #browser #emscripten #regal #opengl
working on cleaning up / committing my changes to the Gem sources now, will push as soon as I've got a reproducible build script
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...
Ported my #audiovisual https://mathr.co.uk/puzzle to empd, not published it formally yet...
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.
@mathr that's mesmerising!
fighting with Emscripten, Regal, GL, GLU, SDL, Gem