用于 Python 的 3D 场景渲染器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4522748/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
3D Scene Renderer for Python
提问by mkrause
I'm looking for an easy to use 3D scene renderer for Python. All I'm looking for is to be able to:
我正在寻找一个易于使用的 Python 3D 场景渲染器。我正在寻找的是能够:
- Load a 3D scene model
- Render it using an orthographic camera
- Export the image so I can perform analysis
- 加载 3D 场景模型
- 使用正交相机渲染它
- 导出图像以便我可以执行分析
So far the software I've found is either too low-level (like basic OpenGL bindings) or too complex (like Ogre). Any advice?
到目前为止,我发现的软件要么太低级(如基本的 OpenGL 绑定),要么太复杂(如 Ogre)。有什么建议吗?
采纳答案by Hugh Bothwell
Really depends exactly what you want to accomplish. How complex is your scene? What sort of render quality are you after? Do you need real-time animation, or are rendered stills good enough?
真的取决于你想要完成什么。你的场景有多复杂?你追求什么样的渲染质量?您是否需要实时动画,或者渲染的静止图像是否足够好?
First-rate, full game engines (have been used for commercial games)
一流的全游戏引擎(已用于商业游戏)
- Panda3d http://www.panda3d.org/
- PyOgre http://www.ogre3d.org/tikiwiki/PyOgre
- Pyrr (Irrlicht wrapper)
- Panda3d http://www.panda3d.org/
- PyOgre http://www.ogre3d.org/tikiwiki/PyOgre
- Pyrr(Irrlicht 包装器)
Less popular 3d engines, new or beta: YMMV.
不太流行的 3d 引擎,新的或测试版:YMMV。
- OpenSceneGraph http://www.openscenegraph.org/projects/osg
- Spyre http://pduel.sourceforge.net/spyre/spyre.spyre-module.html
- PySoy http://www.pysoy.org/
- Soya http://pypi.python.org/pypi/Soya/0.11.2
- PyCrystal http://www.crystalspace3d.org/main/PyCrystal
- Horde3d http://www.horde3d.org/
- VTK (Visualization Tool Kit) http://www.vtk.org/
- OpenSceneGraph http://www.openscenegraph.org/projects/osg
- Spyre http://pduel.sourceforge.net/spyre/spyre.spyre-module.html
- PySoy http://www.pysoy.org/
- 大豆http://pypi.python.org/pypi/Soya/0.11.2
- PyCrystal http://www.crystalspace3d.org/main/PyCrystal
- Horde3d http://www.horde3d.org/
- VTK(可视化工具包)http://www.vtk.org/
Low-level OpenGL interfaces - more control, more for you to do yourself
底层OpenGL接口——更多控制,更多让你自己做
- PyOpenGL http://pyopengl.sourceforge.net/
- Pyglet http://www.pyglet.org/
- Zoe http://www.alcyone.com/software/zoe/
- PyOpenGL http://pyopengl.sourceforge.net/
- Pyglet http://www.pyglet.org/
- 佐伊http://www.alcyone.com/software/zoe/
Non-realtime interfaces
非实时接口
- cgkit http://cgkit.sourceforge.net/documentation.html(Renderman, Maya)
- Blender http://www.blender3d.org/
- POVray wrapper http://code.activestate.com/recipes/205451/
回答by kCODINGeroo
I would recommend Panda3D. It supports everything in the list, and is "high-level" too. The manual describes how to achieve everything needed.
我会推荐 Panda3D。它支持列表中的所有内容,并且也是“高级”的。该手册描述了如何实现所需的一切。

