便携式 3D 网络技术?
我正在寻找一种解决方案,将简单的 3D 场景嵌入到 Web 浏览器中,该浏览器在桌面和移动设备上具有高度可移植性。
我需要:
- 绘制简单的形状
- 阴影
- 碰撞检测
- 从 HTML 页面的 Javascript 操作场景的属性。例如移动灯光位置、移动形状。
WebGL 提供了我需要的所有功能。我构建了一个简单的 原型 通过 Three.js 库使用 WebGL。
然而,我需要一个在桌面+移动设备上具有高度可移植性并且可以立即使用的解决方案。我可以指定使用哪个浏览器或需要安装插件 - 但它必须在 PC、iOS、Android 等上工作
我已经尝试过 HTML5 Canvas,但我无法获得任何阴影 - 我认为这是不可能的,因为阴影需要硬件加速。
我研究过 Java3D 解决方案,但我知道它不可能在移动设备上运行。
如果 Apple 支持 Flash,我会很高兴。
到目前为止我的理解正确吗?有什么技术可以实现这一点吗?
I am looking for a solution to embed simple 3D scenes in a web browser that is highly portable across desktop and mobile devices.
I need:
- To draw simple shapes
- Shadows
- Coliision detection
- To manipulate properties of the scene from the HTML page's Javascript. Such as move the light position, move shapes.
WebGL provides all the functionality I need. I have built a simple prototype
using WebGL via the Three.js library.
However, I need a solution that is highly portable across desktop + mobile devices and can be used today. I can dictate which browser to use or require a plugin installed - but it must work on pcs, ios, android, etc
I have tried the HTML5 Canvas but I cannot get any shadows - I think this will not be possible because shadows require hardware acceleration.
I have looked into a Java3D solution but I understand it is not possible to run this on mobile devices.
I would be happy with Flash if only Apple supported it.
Am I correct in my understanding so far? Is there any technology with which I can achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
跨平台很难实现。许多设备和浏览器尚未完全支持 HTML5。我建议你检查 JMonkeyEngine。只要平台支持 Java,这在所有浏览器上都可以正常工作。
Cross platform is hard to get. HTML5 is not yet fully supported on numerous devices and browsers. I recommend you check JMonkeyEngine. This works wonderfully from all browsers, as long the platform supports Java.
无论好坏,“Flash”可以说是目前“最好”的解决方案......除了 iPhone 例外。
问:OpenGL 适合您吗?
以下是 Steve Job 关于 iPhone 上的 Flash 的原始声明:
http://www.apple.com/hotnews/thoughts-on-flash /
以下是有关 Adobe(即将推出的)Flash 替代品“Edge”的链接:
http:// /www.beatweek.com/news/8896-adobe-html5-iphone-5-release-date-sees-flash-edge/
您可能还对 Cocos3d(Cocos3d 的扩展)感兴趣Cocos2d):
http://brenwill.com/cocos3d/
For better or for worse, "Flash" is arguably the "best" solution at the moment ... except for the iPhone exception.
Q: Is OpenGL an option for you?
Here's Steve Job's original statement about Flash on the iPhone:
http://www.apple.com/hotnews/thoughts-on-flash/
Here's a link about Adobe's (upcoming) Flash replacement, "Edge":
http://www.beatweek.com/news/8896-adobe-html5-iphone-5-release-date-sees-flash-edge/
You might also be interested in Cocos3d (an extension of the Cocos2d):
http://brenwill.com/cocos3d/