Page 1 of 1

Help with 3D graphics programming

Posted: Mon Dec 02, 2019 1:47 am
by Zilla707
Hello, I have been doing python3 for some time now and have a decent grasp of how to use pygame's [https://pypi.org/project/pygame/] graphics and other functions. But I would like to learn some 3D graphics programming that I can use inside of python3. I have heard/read about OpenGL and how it can be used inside python with pygame. So my question is; what is a good 3D graphics library that can be used inside of python?

Re: Help with 3D graphics programming

Posted: Mon Dec 02, 2019 2:11 am
by Gavinmc42
Pygame, Pyglet, Pyopengl, SDL2 have been my starting points.
Pi3D is getting tweaked for Pi4's.

Even shaders can be done now, I started here.
https://github.com/Blakkis/GLSL_Python

OpenGL is easier on the Pi4, it mostly just works.
It is not perfect and mesa3D 19.2.6 just got some more Pi commits.

Re: Help with 3D graphics programming

Posted: Mon Dec 02, 2019 2:20 am
by Gavinmc42
I have not tried this yet
https://pypi.org/project/moderngl/

Re: Help with 3D graphics programming

Posted: Mon Dec 02, 2019 8:55 pm
by Zilla707
I installed and tried the last one, and ran a few of the examples. It looks decent from what I have seen so far. Thanks for the ideas!