Google O3D 可以用作富互联网应用框架吗?
尽管它被定位为浏览器的 3D 图形框架,但 Google O3D 是否可以用作RIA 框架类似于 GWT、Flex 或 Rails?
Although it's pegged as a 3D graphics framework for the browser, could Google O3D be used as an RIA framework similar to GWT, Flex or Rails?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短回答:
是的。
长答案:
更有可能的是它只会用于浏览器内游戏。 在 3d 框架之上构建一个像样的 RIA 框架需要做大量的工作,而且这样的框架(如果它曾经发布过)不太可能对开发人员非常友好。
如果您想要一个好的 RIA 框架,请查看 Silverlight 或 Flex。
Short answer:
Yes.
Long answer:
More likely it'll just be used for in-browser games. It takes a lot of work to build a decent RIA framework on top of a 3d framework, and it's unlikely such a framework (if it's ever released) will be very developer friendly.
If you want good a RIA framework look at Silverlight or Flex.
可以,但没有可以在 O3D 窗口上绘图的用户界面小部件。 这是一个经典的游戏开发问题 - 让通用 UI 库在硬件加速 3D 窗口之上实际正确渲染确实很复杂。 如果您想在世界空间中渲染附加到具有正确排序的对象的窗口,则更是如此。 通常,游戏使用自定义 UI 引擎。
O3D 确实有一个用于 2d 绘图的高性能 Canvas,并且很有可能用 JS 编写一个可以在该画布上绘图的 UI 库。 但是...这就像用 JS 重写 Flex 一样。
这样做的好处是 2D 和 3D 内容之间的紧密集成 - 以及能够在 UI 层中拥有复杂的 UI,并通过渲染到纹理技术附加到 3D 场景中的对象。
It could, but there are no user interface widgets that can draw on the O3D window. This is a classic game development problem - it is really complicated to get common UI libraries to actually render properly over top of a hardware accelerated 3d window. Even more so if you want to render windows in world space attached to objects with proper sorting. Typically, games use custom UI engines.
O3D does have a high performance Canvas for 2d drawing and it would be quite possible to write a UI library in JS that could draw on that canvas. But... that would be like re-writing Flex in JS.
The upside of that would be tight integration between 2d and 3d content - and the ability to have complex UIs both in the UI layer, and attached to objects in the 3d scene with render-to-texture tech.