简体   繁体   English

适用于Python的简单跨平台3D场景渲染

[英]Simple cross-platform 3D scene render for Python

I have a code in Python that simulates planetary orbits. 我在Python中有一个代码可以模拟行星轨道。 It currently uses Visual Python (VPython) to render the 3D scene, however it only works in Linux through wine and needs some work around. 目前,它使用Visual Python(VPython)渲染3D场景,但是它只能通过wine在Linux中工作,并且需要一些解决方法。

Now I'm looking for a completely cross-platform render to use in my simulator. 现在,我正在寻找在模拟器中使用的完全跨平台的渲染。 Nothing fancy, I just need to place some spheres, rotate and change their positions. 没什么,我只需要放置一些球体,旋转并更改其位置即可。 I don't need any powerful game engine. 我不需要任何强大的游戏引擎。 The simpler, the better. 越简单越好。

Do you know of any 3D scene render that could help me with this? 您是否知道任何可以帮助我完成此操作的3D场景渲染?

(I hope this does not fit into the "Opinion based question" that gets closed here :( ) (我希望这不适合在此处关闭的“基于意见的问题:()

It has been a while, so I am not sure if this question is still of interest. 已经有一段时间了,所以我不确定这个问题是否仍然值得关注。 I've been looking into rendering libraries for similar purposes, and blender seems to be an option. 我一直在为类似目的研究渲染库,而Blender似乎是一个选择。 It has a python scripting interface (called bpy). 它具有python脚本接口(称为bpy)。 It is not a library: you have to run your python program within blender's python interpreter (you can't just call it from a python interpreter), but it looks like you can run arbitrary python code. 它不是一个库:您必须在Blender的python解释器中运行python程序(不能仅仅从python解释器中调用它),但是看起来您可以运行任意的python代码。 And it appears to be cross-platform. 它似乎是跨平台的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM