2

我知道可以为浏览器编写一个插件,让您渲染到浏览器窗口,这样您就可以在浏览器中有效地运行普通应用程序。使用 JS 或客户端技术,而是一个基本上包装您的应用程序的插件——在我们的例子中是 C++,它使用 DirectX 或 OpenGL 进行 3D 渲染。

我知道我们必须有 IE 和其他浏览器的版本,但这是如何工作的 - 在 Windows 中,我们是通过插件架构获得 HWND 还是更复杂?

您是否必须编写为每个平台编译的插件版本 - Win/Mac/Linux,因为插件是二进制文件,我认为是这种情况,所以您有一个 IE 版本,然后有多个 FF、Chrome 版本, Safari(共享相同的插件设置 IIRC)

使用 FF - 这是一个插件或扩展的例子吗?

我的意思的一个例子是QuakeLive - 在浏览器中进行适当的 3D 渲染。我们实际上使用的是 Ogre(跨平台 C++),但这使用的是 Direct3D/OpenGL,所以它是一回事。

4

4 回答 4

2

Things like QuakeLive can be done rather quite simply with Google's NativeClient SDK. It abstracts away the whole plugin architecture so that you can focus on writing your software, and provides support for nearly all plugin-capable browsers on Windows, Mac OS X, and Linux, portably. The user installs the NaCl plugin (which is included in some versions of Chrome and Chromium), and your software runs inside NaCl, seamlessly on all supported platforms, from a single binary.

Note that you can use OpenGL portably from within NaCl, but not DirectX. Future versions will also support ARM and x86_64 with technology from the LLVM project.

于 2011-01-15T00:28:55.190 回答
2

FireBreath是一个很棒的跨平台、跨浏览器库,用于开发 C++ 浏览器插件。

于 2011-09-14T13:21:30.320 回答
0

Flash Player 11 通过 DirectX、OpenGL 或设备上任何可用的 Stage API 提供真正的 3D 支持:http: //techzoom.org/adobe-flash-player-11-air-3-beta-stage3d-and-64bit-support -on-linux-mac-and-windows/ 它现在处于测试阶段,因此用户需要手动安装它,但是当 Adob​​e 发布它时,大多数浏览器将立即提供真正的 3D 支持。最新的 Away3D 测试版已经支持 Stage API。

于 2011-09-13T09:43:43.133 回答
-2

我需要尽快完成其中的一些工作,所以如果这里有人是这方面的专家,请找我。

Steve Bell Archiform 3D 动画工作室

于 2011-01-19T14:48:06.173 回答