• by fulafel on 10/26/2024, 7:11:59 AM

    As this is using wgpu, it will be interesting if in the future they get it to run in the browser (Python already does, with Pyodide).

    There are some tickets about it: https://github.com/pygfx/pygfx/issues/650 https://github.com/pygfx/wgpu-py/issues/407

  • by MiliasGeiger on 10/25/2024, 6:46:48 PM

    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/

  • by an1sotropy on 10/26/2024, 1:20:42 AM

    Suppose I'm using PySide6 and starting to use QRhi[1]. Is there a way to compare the portability and speed of pygfx (as within PySide6) with QRhi?

    [1] https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QRhiWidget...

  • by westurner on 10/25/2024, 8:03:02 PM

    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

  • by blt on 10/25/2024, 7:27:15 PM

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

  • by kelsolaar on 10/27/2024, 2:56:34 AM

    Pygfx is awesome!

    For years, we have looked at something solid to be able to implement 3D colour science visualisation. We used Vispy, but encountered some issues when interacting with the scenegraph, then a quick stint with Three.js which required doing dirty things to pass Python data to Javascript, and finally, Pygfx is the one that enabled us to do what we wanted: https://github.com/colour-science/colour-visuals

  • by sevensor on 10/25/2024, 7:48:47 PM

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

  • by raytopia on 10/26/2024, 2:31:08 PM

    If someone is looking for a renderer that also has tools for game development in Python. Panda3D is another good choice. It has a task and event system along with multiplayer and physics.

  • by federicotdn on 10/26/2024, 6:39:24 PM

    Question slightly related to this topic: how do native (e.g. Qt, GTK, etc.) desktop applications usually embed 3D views? Say for example, a desktop application for visualizing .obj files. Or something like AutoCAD, maybe (though I’m not sure which UI framework it uses).

  • by actinium226 on 10/26/2024, 3:59:01 PM

    Very cool, I wonder how this compares to Panda3D?

  • by indulona on 10/26/2024, 6:54:30 AM

    pigfix

  • by revskill on 10/25/2024, 8:20:22 PM

    Readthedocs is such the gold standard of a library documentation, it contains the complete guide to master the concepts, besides the API.

    Other languages, take a look and follow this standard, please.

  • by prideout on 10/25/2024, 7:16:01 PM

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

  • by CoastalCoder on 10/26/2024, 2:09:38 AM

    > Pygfx (pronounced “py-graphics”)

    Major tangent, but am I the only one who bristles at someone telling me how to pronounce an abbreviation they invented?

    I must have encountered this a few times in brand marketing within the tech world and gotten pissed off at feeling manipulated.