PyGame 做 3d 吗? [英] Does PyGame do 3d?

查看:30
本文介绍了PyGame 做 3d 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎在任何地方都找不到这个问题的答案.我意识到你必须使用 PyOpenGL 或类似的东西来做 OpenGL 的东西,但我想知道是否可以在没有任何其他依赖的情况下做非常基本的 3D 图形.

I can't seem to find the answer to this question anywhere. I realize 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 的包装器,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.

Python 的 3D 库包括 Panda3DDirectPython,虽然它们使用起来可能相当复杂,尤其是后者.

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

这篇关于PyGame 做 3d 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆