难道对于pyGame做3D?pyGame

2023-09-07 22:43:25 作者:炽热,

我似乎无法找到这个问题的答案的任何地方。我意识到,你必须使用pyOpenGL或类似的做openGL的东西什么的,但我想知道,如果它可以做到非常基本的3D图形没有任何其他依赖关系。

I can't seem to find the answer to this question anywhere. I realise that you have to use pyOpenGL or something similar to do openGL stuff, but I was wondering if its possible to do very basic 3d graphics without any other dependencies.

推荐答案

没有,pygame的是一个包装SDL,这是一个2D API。 pygame的不提供任何3D功能,并可能永远也不会。

No, Pygame is a wrapper for SDL, which is a 2D api. Pygame doesn't provide any 3D capability and probably never will.

3D库的Python包括的Panda3D 和 DirectPython < /一>,尽管它们可能是相当复杂的使用,尤其是后者。

3D libraries for Python include Panda3D and DirectPython, although they are probably quite complex to use, especially the latter.