Pygfx

(docs.pygfx.org)

65 points | by figomore 3 days ago ago

8 comments

  • sevensor 32 minutes ago

    Suppose I want to wrap a GUI around my visualization. Can I hand pygfx a surface I created with a GUI tool kit?

    • figomore 4 minutes ago

      It's possible to use Pygfx with Qt and WX.

  • blt an hour ago

    this looks similar to VisPy (https://vispy.org/), are there any major differences?

    • cipherself 19 minutes ago

      Pygfx uses webgpu while VisPy uses OpenGL.

  • MiliasGeiger 2 hours ago

    I used to love making physics visualizations using VPython[1]! It's awesome to see similar tools pop up. I gave up on VPython after python3, since it was a pain to migrate.

    [1]: https://vpython.org/

  • westurner 17 minutes ago

    pygfx/pygfx: https://github.com/pygfx/pygfx :

    > Pygfx (pronounced “py-graphics”) is built on wgpu, enabling superior performance and reliability compared to OpenGL-based solutions.

    pygfx/wgpu-py: https://github.com/pygfx/wgpu-py/ :

    > A Python implementation of WebGPU

    gfx-rs/wgpu: https://github.com/gfx-rs/wgpu :

    > wgpu is a cross-platform, safe, pure-rust graphics API. It runs natively on Vulkan, Metal, D3D12, and OpenGL; and on top of WebGL2 and WebGPU on wasm.

    > The API is based on the WebGPU standard. It serves as the core of the WebGPU integration in Firefox and Deno

  • prideout an hour ago

    Am I the only one who is irked by by ads on Read the Docs pages?

    • BiteCode_dev an hour ago

      Yes, because all the other people on HN use unlock origin.