有人尝试过 Google 的 3D 图形 O3D 插件吗?

发布于 2024-07-18 17:05:31 字数 179 浏览 1 评论 0原文

我刚刚发现 Google 的 O3D 项目,用于使用 html 和 javascript 在浏览器中渲染 3D 图形。 看起来不错,尽管据我所知,这些图形已经过时了大约 5 年。 有人尝试过吗?

I just found out about Google's O3D project, for rendering 3D graphics in Browsers using html and javascript. It seems nice, although the graphics are about 5 years outdated as far as I could see. Has anyone tried it out?

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

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

发布评论

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

评论(3

昇り龍 2024-07-25 17:05:31

它似乎是针对程序员而不是设计师

3D 环境应该很容易描述和构建,但我在它上面找到的文档似乎更面向程序员

it seems aimed at programmers not designers

3d environments should be easy to describe and build but the documentation i found on it seemed to be way more programmer oriented

青瓷清茶倾城歌 2024-07-25 17:05:31

我花了一些时间阅读文档并使用它。 作为测试,我使用他们的画布对象制作了康威的生命游戏:

life

这实际上完全在 javascript 中运行并且执行得非常好; 比我在 Unity3D 中进行的等效测试快得多。 将其转移到像素着色器中将是性能的下一步,然后它就会真正飞起来。

这是图形技术前沿的一个严肃的项目。 他们对架构以及如何与浏览器集成做出了非常好的决策。

但是,它是一个低级图形 API - 与 DirectX 或 OpenGL 级别相似,并且它使用现代“可编程管道”而不是传统/遗留的“固定功能管道”。 通俗地说,这意味着它无法在较旧的计算机上运行,​​但它可以在性能和功能方面充分利用较新的图形硬件。 这也意味着开发人员需要了解现代图形编程技术,如着色器、渲染图形等。

它支持图像的 Web 格式(如 jpg 和 png),但也支持游戏行业风格的 DDS 纹理,这些纹理对于加载到游戏中更加优化视频卡内存。 它可以加载基于 xml 的 COLLADA 资产,而且还具有类似二进制的 JSON 接口,用于优化已处理资产的加载。

为了让 O3D 真正起飞,它需要在其之上构建更高级别的 javascript API。 理想情况下,类似游戏引擎的东西包括物理和音频,具有一致的光照模型和优化的资源格式。

I spent some time reading the docs and playing with it. As a test I made a Conway's Game of Life using their canvas object:

life

This is actually running completely in javascript and performs surprisingly well; much faster than an equivalent test I did in Unity3D. Moving it into a pixel-shader would be the next step in performance, then it would really fly.

This is a serious project on the cutting edge of graphics technology. They have made really good decisions about the architecture and how it integrates with the browser.

But, it is a low level graphics api - at a similar level to DirectX or OpenGL, and it uses a modern 'programmable pipeline' instead of a traditional/legacy 'fixed-function-pipeline'. In layman's terms, this means that it wont run on older computers, but it can fully utilize newer graphics hardware in terms of both performance and features. It also means that developers need to understand modern graphics programming techniques like shaders, render graphs, etc.

It supports web-formats for images (like jpg and png) but also supports game-industry style DDS textures that are far more optimized for loading into video card RAM. It can load xml-based COLLADA assets, but also has a binary-like JSON interface for optimized loading of processed assets.

For O3D to really take off, it is going to need higher-level javascript APIs built on top of it. Ideally something like a game engine that includes physics and audio, has a consistent lighting model and optimized asset format.

胡大本事 2024-07-25 17:05:31

我做到了。 它看起来不错,镜面反射效果很好。 弄清楚导航有点困难,但我也没有太多时间投入其中。

I did. It looked good, did nice specular reflections. It was a little hard to figure out the navigation, but I didn't have a lot of time to put into it either.

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