User avatar
Zilla707
Posts: 69
Joined: Fri Aug 23, 2019 11:04 pm

Help with 3D graphics programming

Mon Dec 02, 2019 1:47 am

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?
Aim for perfect and you'll hit somewhere near pretty good. (maybe...)

User avatar
Gavinmc42
Posts: 4031
Joined: Wed Aug 28, 2013 3:31 am

Re: Help with 3D graphics programming

Mon Dec 02, 2019 2:11 am

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.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 4031
Joined: Wed Aug 28, 2013 3:31 am

Re: Help with 3D graphics programming

Mon Dec 02, 2019 2:20 am

I have not tried this yet
https://pypi.org/project/moderngl/
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Zilla707
Posts: 69
Joined: Fri Aug 23, 2019 11:04 pm

Re: Help with 3D graphics programming

Mon Dec 02, 2019 8:55 pm

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!
Aim for perfect and you'll hit somewhere near pretty good. (maybe...)

Return to “Python”