mikedh / trimesh

Python library for loading and using triangular meshes.
https://trimesh.org
MIT License
2.94k stars 574 forks source link

Path to supporting Pyglet 2? #2155

Open musicinmybrain opened 7 months ago

musicinmybrain commented 7 months ago

Has there been any progress on supporting Pyglet 2.0.0 or later since https://github.com/mikedh/trimesh/issues/1812?

I’m currently patching python-pyglet out of the weak dependencies of the python-trimesh package in Fedora Rawhide since it was updated to 2.0.10, and I was curious whether or not I am likely to be able to restore that dependency before Fedora 41 is released this fall.

mikedh commented 7 months ago

Hey, no current work on supporting Pyglet 2 but open to PR's!

I have been doing other stuff in WebGPU wgpu-native bindings (i.e. xgpu|wgpu-py +glfw) which is easy to install, supports a lot of graphics backends (vulkan, directx, metal, etc), has a lot of industry backing, and seems like the future.

My thought right now for the eventual future of the debug viewer is to deprecate pyglet<2 related code and write one that is webgpu+PBR focused but there is no current work in progress. This would also make scene.save_image vastly more reliable (a perennial source of issues) as the modern APIs work headless with a lot less effort.