Open andreagalle opened 1 year ago
WebGL uses GLES not OpenGL, it is possible to have OpenGL 1.0 emulation but it is only usefull for initial window setup. You should go for something modern like ZenGL ( which is expected to be pygbag compatible at some point).
But the most important is that WebGPU is coming soon so more power to game engines that deal with low level WGPU/Vulkan/DX12/Metal.
OpenGL - is - dead and will have backport layer anyway at some point to resurrect old programs.
So meanwhile please save your time and use/learn/teach 3D game engines that provide abstraction.
A perfectly decent FOSS alternative to competitors around is Panda3D. eg on itch https://itch.io/c/3724091/panda3d-wasm
transfering to porting.
What about Godot (https://godotengine.org/), I see Panda3D is a game engine too. Isn't there the possibility just to import a 3D rendering engine to feed pygame (as well as pygbag) with sequences of PNG files to be blitted on the screen?
Godot is great, but it does not use Python (gdscript instead)
Panda3D is as powerfull and C++ built around python interpreter from the start, it can interface with pygame/matplotlib/etc with only a few lines eg https://pygame-web.github.io/showroom/pypad_git.html#src/test_pgp3d.py
I added this wheel below, because I need to use OpenGL in my pygame project (using
pygbag
):https://files.pythonhosted.org/packages/99/48/00e31747821d3fc56faddd00a4725454d1e694a8b67d715cf20f531506a5/PyOpenGL-3.1.7-py3-none-any.whl
of course I am pointing to my own cdn, but I am getting the following error:
Is there any shortcoming you forsee doing this? Is there any possibility that
pygbag
can support openGL?