Using OpenGL with Python [closed]

2019-03-09 04:40发布

So, I only know how to use Python, but I also know how to model in 3d. I've heard of OpenGL and I really want to learn how to use, because it seems very useful (I want to create simple games with it...). I found PyOpenGL, Python bindings for OpenGL, but I couldn't find any "real" documentation, so the only option is to study code examples and tutorials written in C++ or something. But, as I said, I only know how to use Python. What can I do about that?

4条回答
成全新的幸福
2楼-- · 2019-03-09 05:07

You can try with something higher level, if you want do to simple games, Panda3D has a reputation of being very simple (compared to straight opengl) to learn.

查看更多
我只想做你的唯一
3楼-- · 2019-03-09 05:11

You should go on and read a OpenGL tutorial.

Here's a pyopengl demo; other samples are over here.

Also, you can use pygame together with pyopengl; an example is here.

查看更多
Explosion°爆炸
4楼-- · 2019-03-09 05:30

If you use Cython there is a possibility to optimise part of your code with OpenCL:

https://github.com/cython/cython/wiki/enhancements-opencl

查看更多
神经病院院长
5楼-- · 2019-03-09 05:31

If your goal is to make games in Python, then you should look at PyGame. Its better documented and supported.

http://www.pygame.org/

查看更多
登录 后发表回答