3D Scene Renderer for Python

旧街凉风 提交于 2019-12-04 07:41:50

问题


I'm looking for an easy to use 3D scene renderer for Python. All I'm looking for is to be able to:

  • Load a 3D scene model
  • Render it using an orthographic camera
  • Export the image so I can perform analysis

So far the software I've found is either too low-level (like basic OpenGL bindings) or too complex (like Ogre). Any advice?


回答1:


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)

Less popular 3d engines, new or beta: 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/

Low-level OpenGL interfaces - more control, more for you to do yourself

  • PyOpenGL http://pyopengl.sourceforge.net/
  • Pyglet http://www.pyglet.org/
  • Zoe 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/



回答2:


I would recommend Panda3D. It supports everything in the list, and is "high-level" too. The manual describes how to achieve everything needed.



来源:https://stackoverflow.com/questions/4522748/3d-scene-renderer-for-python

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!