交互式3D Web技术 [英] Interactive 3d Web Technology

查看:737
本文介绍了交互式3D Web技术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用交互式的三维模型在网页中。所需的功能是:

I would like to use interactive 3D models in a web page. The required functionality is:

    它定义与放大器
  • 在导入DXF文件;显示一个房间。
  • 添加/移动prebuilt对象从JavaScript
  • 添加/它投射阴影从JavaScript的移动灯
  • 返回房间大小的JavaScript
  • 在返回的对象位置的JavaScript
  • Import dxf file which defines & displays a room.
  • Add/move prebuilt objects from javascript
  • Add/move lamp which cast shadows from javascript
  • Return room dimensions to javascript
  • Return object positions to javascript

我可以导入DXF文件到任何WebGL的引擎?

Can I import dxf files into any WebGL engine?

我有一个小的重复的用户群使浏览器的安装是一点问题都没有。是否有任何插件技术,我可以使用? Java小程序?统一?我可以使用的OpenGL引擎作为一个插件?怎么样Java3D的小程序?

I have a small repeat user base so a browser installation is no problem at all. Is there any plugin technology I could use? Java applets? Unity? Can I use an OpenGL engine as a plugin? How about a java3d applet?

我将开始与台式机,但需要尽快并在两年内手机左右瞄准平板电脑。

I will start with desktop but would need to be targeting tablets soon and mobiles in two years or so.

我越来越确​​信我将需要聘请专家来写,但我想了解的选项。你能推荐一个合适的技术?

I am becoming convinced I will need to hire an expert to write this but I want to understand the options. Can you recommend a suitable technology?

推荐答案

我认为WebGL是这种应用的最佳选择;你描述的图形功能以及其自身能力。我不能对模型加载评论,不过,因为我不熟悉的WebGL引擎。

I think WebGL is an excellent choice for this application; the graphics functions you describe are well within its capabilities. I can't comment on model loading, though, as I'm not familiar with WebGL engines.

然而,手机是一个很大的皱纹。关于技术,您提到:

However, mobile is a big wrinkle. Regarding the techniques you mention:

  • WebGL的支持在Chrome和Firefox Android版。在iOS上,移动Safari浏览器没有的启用的WebGL的,但实施存在(严格用于在应用程序内广告),所以很可能,有可能在未来(可能需要定制的更广泛的WebGL的支持Web视图包装启用它)。

  • WebGL is supported in Chrome and Firefox for Android. On iOS, Mobile Safari does not enable WebGL, but an implementation exists (used strictly for in-app ads), so it is likely that there may be broader WebGL support in the future (possibly requiring a custom web view wrapper to enable it).

Java小应用程序不支持通过任何Android或iOS的任何浏览器。

Java applets are not supported by any browser on either Android or iOS.

团结是一个可行的选择;统一的Web Player浏览器插件允许嵌入在网页中统一的内容。然而,有没有这样的插件移动操作系统设备;统一内容可以是编译成为iOS或Android一个应用的,但它不能在网页内观看。

Unity is a viable choice; the Unity Web Player browser plugin allows embedding Unity content in a web page. However, there is no such plugin for mobile-OS devices; Unity content may be compiled into a application for iOS or Android but it cannot be viewed within a web page.

新闻为2014年八月的:统一宣布,即将推出的统一5将包括出版成JavaScript +的WebGL(无需插件)。假设这个工程的承诺,你可以用统一,如果你的目标平台与支持WebGL的浏览器。

News as of August 2014: Unity has announced that the upcoming Unity 5 will include publishing to JavaScript + WebGL (no plugin required). Assuming this works as promised, you can use Unity if your target platform has a browser with WebGL support.

所以,如果你确实需要跨平台的3D包括iOS的现在,团结就是那里的AT,但WebGL是用于台式机和Android的一个不错的选择,现在和可能提高在移动中未来,并且是唯一的方式嵌入3D的的网页,而不是一个应用程序的跨桌面和Android。

So, if you absolutely need cross-platform 3D including iOS right now, Unity is where it's at, but WebGL is a good choice for desktop and Android now and likely to improve on mobile in the future, and is the only way to embed 3D in a web page, not an app across desktop and Android.

这篇关于交互式3D Web技术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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