使用支持 WebGL 的浏览器查看 VRML 文件 [英] View VRML file with WebGL-capable browser

查看:34
本文介绍了使用支持 WebGL 的浏览器查看 VRML 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个生成 VRML 1.0 文件的旧版应用程序.我想构建一个可以显示这些 VRML 文件的基于 WebGL 的 Web 界面.有没有简单的方法来做到这一点?

I have a legacy application that generates VRML 1.0 files. I'd like to build a WebGL-based web interface that can display these VRML files. Is there an easy way to do so?

指定它们是 VRML 1.0.

Specified that they are VRML 1.0.

推荐答案

如果您可以使用上述来自 Parallelgraphics 的工具将其升级到 VRML 2.0 (VRML '97),则可以使用 Fraunhofer Institute 的工具 (请参阅 http://www.x3dom.org/?page_id=532) 从 VRML 2 转到 X3DOM 或 X3D.使用 Firefox 或 Chrome 以及当前的显卡和驱动程序,您就可以获得运行 X3​​DOM 所需的 WebGL 支持.X3DOM 仅处理 X3D 的一个子集,但可以直接从 XHTML 和 CSS 或所需的插件中引用.与直接与 WebGL 打交道相比,它处于更高级别且更易于处理.

If you can get it to VRML 2.0 (VRML '97) using a tool like the above-referenced one from Parallelgraphics, you can use the Fraunhofer Institute's tools (see discussion and links to InstantReality at http://www.x3dom.org/?page_id=532) to go from VRML 2 to either X3DOM or X3D. With Firefox or Chrome and a current graphics card and driver, you've got the WebGL support needed to run X3DOM. X3DOM handles only a subset of X3D, but can be referenced straight from XHTML and CSS, or plug-ins required. It's at a much higher level and easier to deal with than dealing directly with WebGL.

这篇关于使用支持 WebGL 的浏览器查看 VRML 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆