本文介绍了什么是对(视觉吸引力)的3D物理模拟/可视化创造了Python程序库好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是对(视觉吸引力)的3D物理模拟/可视化?

What are good libraries for creating a python program for (visually appealing) 3D physics simulations/visualizations?

我看的 Vpython 的,但我已经看到了模拟长得难看,我想他们是视觉上的吸引力。它也像一个古老的图书馆。对于3D节目我已经看到了使用建议的的Panda3D 蟒蛇食人魔的,但我不知道它是否真的适合于精确的模拟。另外,我想preFER结合以及与其他库的库(例如pygame的不结合这么好与其他库)。

I've looked at Vpython but the simulations I have seen look ugly, I want them to be visually appealing. It also looks like an old library. For 3D programming I've seen suggestions of using Panda3D and python-ogre but I'm not sure if it is really suited for exact simulations. Also, I would prefer a library that combines well with other libraries (E.g. pygame does not combine so well with other libraries).

推荐答案

相对于其他语言Python的3​​D支持是相当薄弱,但与方式,大部分都是建,该程序的外观是远远超过可变你可能会认为。比如,你谈到Vpython,而他们的许多例子都没有视觉上的吸引力,其中大部分也都是从previous版本,最新的版本还包括型材,材质和外观,它允许您自定义外观很多moreso比以前。

3D support for python is fairly weak compared to other languages, but with the way that most of them are built, the appearance of the program is far more mutable than you might think. For instance, you talked about Vpython, while many of their examples are not visually appealing, most of them are also from previous releases, the most recent release includes both extrusions, materials, and skins, which allow you to customize your appearance much moreso than before.

这可能是值得也指出,这是根本不可能做出实时渲染画质的图像(周期是朝这个方向迈出了一大步,但它仍然不能令人信服)。我相信,大多数在这里你的问题是你正在寻找的东西,技术根本就没有能力了,但是如果你愿意承担的负担,让你的模拟看起来悦目,Vpython(这是一个gussied后续版本PyOpenGL)可能是你最好的选择。下面是一个不同的技术下运行,虽然,如果你正在寻找什么更普遍的:

It is probably worth noting also, that it is simply not possible to make render-quality images in real time (cycles is a huge step in that direction, but it's still not quite there). I believe that most of your issue here is you are looking for something that technology is simply not capable of now, however if you are willing to take on the burden for making your simulation look visually appealing, Vpython (which is a gussied up version of PyOpenGL) is probably your best bet. Below is a run down of different technologies though, in case you are looking for anything more general:

搅拌机:最强大的Python图形程序,但它是为图形设计和特效制作,虽然它有非常复杂的物理它的下面运行,搅拌机不是为物理效果模拟进行。自包含的。

Blender: The most powerful python graphics program available, however it is made for graphic design and special effects, though it has very complex physics running underneath it, Blender is not made for physics simulations. Self contained.

Panda3D的:一个程序很多时候相比,搅拌机,但对于游戏是非常有用的。游戏引擎是更好的比Blender的工作,但渲染质量要低得多,因为是功能丰富。自给

Panda3D: A program very often compared to Blender, however mostly useful for games. The game engine is nicer to work with than Blender's, but the render quality is far lower, as is the feature-richness. Self contained

食人魔:这是非常受欢迎的游戏开发在当天回来,用了很多强大的功能,特别适用于创建游戏环境的库。事件处理也很好的实现。可以使与其他库整合,但难以

Ogre: A library that was very popular for game development back in the day, with a lot of powerful functionality, especially for creating game environments. Event handling is also very well implemented. Can be made to integrate with other libraries, but with difficulty.

VPython:一个库用于物理模拟,消除了大量的纹理贴图和渲染力相比其他方法,但是这种能力仍然存在,因为VPython主要是由OpenGL的,这是最多才多艺的你修造图形库周围。这样,VPython也很容易与其他库整合

VPython: A library intended for physics simulations that removes a lot of the texture mapping and rendering power compared to the other methods, however this capability is still there, as VPython is largely built from OpenGL, which is one of the most versatile graphics libraries around. As such, VPython also is very easy to integrate with other libraries.

PyOpenGL:OpenGL进行了Python。 OpenGL是最广泛使用的图形库之一,并且是不能够在此列表中产生的一些最好的视觉效果(除搅拌机,这是一个它自己的阶级)的疑问,但它不会是容易做到的。 PyOpenGL很裸露的骨骼,而功能性是存在的,这将是很难实现比什么都重要。拉得将与其他库,但只有当你知道自己在做什么。

PyOpenGL: OpenGL for Python. OpenGL is one of the most widely use graphics libraries, and is without a doubt capable of producing some of the nicest visuals on this list (Except for Blender, which is a class of its own), however it will not be easy to do so. PyOpenGL is very bare bones, and while the functionality is there, it will be harder to implement than anything else. Plays very will with other libraries, but only if you know what you're doing.

这篇关于什么是对(视觉吸引力)的3D物理模拟/可视化创造了Python程序库好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 02:51