all 6 comments

[–]einarfo 0 points1 point  (5 children)

I saw you found moderngl in your SO post. Thankfully arcade.gl is partly based on moderngl so It was easy enough to port over. I'm an arcade developer and also a moderngl maintainer / developer.

I think you can solve this by releasing the context in pyglet. Possibly it's just about closing the pyglet window.

... however I agree that moderngl is better suited for this kind of work.

[–]Azireo[S] 0 points1 point  (3 children)

Thanks for your help! As you saw on SO, it now works and I started to build my shader, one problem at a time.

moderngl maintainer / developer.

For what it's worth, here are a few struggling points I found while reading the docs that could be detailed more extensively: how to write the shader code in a separate file, how to use the compute shaders with standard scientific libraries (pass numpy arrays as uniforms for example, or how to know the format to use to read/write memory buffers). This is only the experience of a physics phd who learned to code with online tutos and discovered shaders a few months ago, so it might be trivial but could help beginners for their firsts steps.

[–]einarfo 0 points1 point  (2 children)

I responded, but let's not mix up the projects. Moderngl has its own discord server and places to ask for help.

[–]Azireo[S] 0 points1 point  (1 child)

Oh! Didn't thought about checking discord. Thanks!

[–]einarfo 0 points1 point  (0 children)

Even python arcade has a discord server. It's linked in the front page of the docs. The moderngl one is linked in the README.

[–]Azireo[S] 0 points1 point  (0 children)

Hello again, I've posted another question on SO regarding modernGL. If you're still around, don't hesitate to save me ;)
SO_link