在 wxPython 应用程序中嵌入 3D 编辑器(例如 Blender)

发布于 2024-07-23 08:09:23 字数 163 浏览 3 评论 0原文

是否可以在我的 wxPython 应用程序中嵌入 3D 编辑器? (我正在考虑 Blender,但欢迎其他建议。)

我的应用程序打开一个 wxPython 窗口,我想在其中有一个 3D 编辑器。 当然,我希望我的程序和 3D 编辑器能够相互交互。

可能的? 如何?

Is it possible to embed a 3-D editor inside my wxPython application? (I'm thinking Blender, but other suggestions are welcome.)

My application opens a wxPython window, and I want to have a 3-D editor inside of it. Of course, I want my program and the 3-D editor to interact with each other.

Possible? How?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

久隐师 2024-07-30 08:09:23

Blender 有 python 插件,你可以编写一个插件来与你的程序交互。

Blender has python plugins, you can write a plugin to interract with your program.

旧城空念 2024-07-30 08:09:23

我赞同 Luper Rouch 关于 Blender 插件的想法。 但如果你必须有自己的窗口,你需要分叉 Blender。 看一下 makehuman 项目。 它曾经以 Blender 作为平台。 (我不确定,但我认为他们现在有不同的基础设施)

I second Luper Rouch's idea of Blender plugins. But if you must have your own window you need to fork Blender. Take a look at makehuman project. It used to have Blender as a platform. (I'm not sure but I think they have a different infrastructure now)

暗喜 2024-07-30 08:09:23

对于Blender,我对此表示怀疑。 Blender 使用基于 OpenGL 的自定义 UI,我不确定您是否可以强制它使用预先存在的窗口。 我建议浏览“Ghost”的代码,它是 Blender 的自定义适配层(负责与操作系统进行 UI 交互)。

For Blender specifically, I doubt it. Blender uses a custom UI based on OpenGL, and I'm not sure you can force it to use a pre-existing window. I suggest browsing the code of "Ghost", which is Blender's custom adaption layer (responsible for interacting with the OS for UI purposes).

七婞 2024-07-30 08:09:23

也许此脚本可能会为您的项目提供一些上下文。 它集成了 Blender、ActiveX 和 wxPython。

注意:仅限 Windows。

Perhaps this script might provide some context for your project. It integrates Blender, ActiveX, and wxPython.

Caveat: Windows only.

情魔剑神 2024-07-30 08:09:23

对于 Linux 上的 Blender2.5,您可以使用 gtk.Socket,代码示例是 pastebin 上

For Blender2.5 on linux you can use gtk.Socket, code example is here on pastebin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文