将 WebGL 游戏移植到 iPhone 的原生 OpenGL?
我们正在开发一款网页游戏,它的两个最大部分使用了 WebGL。使用 HTML / CSS 太慢而且太有限,所以它不被考虑。
事实是,iOS 尚未公开支持 WebGL,仅在 iAd 上支持。我猜测,一旦苹果和微软声称的安全问题得到解决,并且看起来足够稳定,苹果最终会支持它。
问题是,如果苹果不通过发布下一个市长 iOS 版本来做到这一点,那么我们手中将有一个无法运行的移动 WebGL 游戏。 6个月的开发和测试就浪费了。
那么,问题:
如果是这样的话,将游戏的 WebGL 部分移植到本机 iPhone OpenGL 的可行性(就时间而言)如何?恐怕移植的时间比游戏本身的开发时间还要长。
我在 Stack Overflow 上看到了帖子(像这样),建议在 Android 上添加手动将 OpenGL 接口连接到 WebKit 元素。它会比本地慢。但不管怎样……这是 AppStore 可以接受的吗? Apple 对此类内容非常严格...
谢谢大家的宝贵时间!
We are developing a web game that uses WebGL for the two biggest parts of it. Working with HTML / CSS was too slow and too limited, so it's off the table.
Thing is, iOS does not support WebGL publicly just yet, only on iAd. It is my guess Apple will eventually support it once the security issues they and Microsoft claim it has are fixed, and looks stable enough.
Problem is, if Apple does not do this by the release of the next mayor iOS version, then we will have in our hands a mobile WebGL game that does not run. 6 months of development and testing to waste.
So, questions:
If that was the case, how viable (regarding amount of time) is it porting the WebGL part of the game to native iPhone OpenGL? I'm afraid that porting will take longer than the development of the game itself.
I saw posts on Stack Overflow (like this) that suggested, on Android, adding the OpenGL interface manually to a WebKit element. It'd be slower than native. But either way... Is this something that could be accepted in the AppStore? Apple is very restrictive with these kind of stuff...
Thank you all for your time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说,由于问题中缺乏输入数据,移植需要 2-3 个月的时间。当然,如果这意味着同时学习 Obj-C,那将是一场艰苦的战斗。
OpenGL 在每个运行时都是相同的,因此移植应该很简单,甚至可以在本机应用程序的上下文中运行 JS。
Apple 并不关心你向 App Store 提交的内容,只要它有效即可。
I'd say it takes 2-3 months to port, with the lack of input data in the question. Of course if this means learning Obj-C simultaneously it will be some uphill battle.
OpenGL is all the same in every run-time, so porting should be straightforward, or even running JS in the context of a native app.
Apple doesnt care what you submit to App Store as long as it works.