石英2D或OpenGL ES?优点和缺点从长远来看,迁移到其他平台的可能性可能性、缺点、优点、从长远来看

2023-09-05 00:51:07 作者:他的轮廓

我有一个很难决定是否要与Quartz2D或OpenGL的一个iPad游戏。这将主要2D,但效果密集(10-30对象,10-20屏幕上的动画同步同时照明效果)。 到目前为止,假设我同样愚蠢的这两种技术,并有从地面学习他们,我来到了这个名单。 (我读过几个主题在这里,SO,包含石英或OpenGL的名字,但我还是留下了一些问题)

石英

在更好的时间到市场,因为 准备使用absractions喜欢的UIView, 的UIImageView,CoreAnimation 抽象

的Open GL ES

更​​接近硬件,因此,性能 更好。

应用程序,使用OpenGL ES实现可更容易移植到Android,MeeGo的,的Windows Phone等。

我的问题是:

如何时间要花改写 石英2D应用程序使用OpenGL?让我们 说我花了2人月写 石英的应用程序,需要多长时间我 需要重写一遍? (请,只是一些主观的意见,我会尽力以某种方式总结他们) 在使用OpenGL时,关于便于移植到其他平台,对,是不是真的如此吗? 或者当石英迁移应用从的iPhoneOS到Android将努力与其说是更大的,比的OpenGL应用程序迁移? (易迁移是非常重要的标准) 对于OpenGL的,我应该去与OpenGL的1.1或2.0,有关迁移? (安卓2.0支持通过NDK,但不知道NDK的使用是否会增加或减少迁移工作) 解决方案

使用框架,是跨平台

的cocos2d为Android: HTTP://$c$c.google.com/p/cocos2d-android/

的cocos2d为iPhone:

HTTP://$c$c.google.com/p/cocos2d -iPhone /

I'm having a hard time deciding whether to go with Quartz2D or OpenGL for an iPad game. It will be 2D mostly, but effect-intense (simultaneous lighting effects for 10-30 objects, 10-20 simultaneous animations on the screen). So far, assuming i'm equally dumb in both technologies and have to learn them from the ground, i came to this list. (I've read several topics here, on SO, with names like "Quartz or OpenGL", but i'm still left with some questions)

宜家又遇质量风波,这次涉及17万件缺陷餐具

Quartz:

Better time-to-market, because of ready to use absractions like UIView, UIImageView, CoreAnimation abstractions

Open GL ES

Closer to hardware, thus, performance is better.

App, implemented with OpenGL ES can be easier migrated to Android, MeeGo, Windows Phone, etc.

My questions are:

How time will it take to rewrite Quartz 2d app to use OpenGL? Lets say it took me 2 man-month to write Quartz app, how much time will i need to rewrite it? (Please, just some subjective opinions, i'll try to summarize them somehow) Regarding the ease of migration to other platforms, when using OpenGL, is it really so? Or efforts when migrating Quartz app from iPhoneOS to Android will be not so much bigger, compared to OpenGL app migration? (Ease of migration is quite important criterion) Regarding OpenGL, should i go with OpenGL 1.1 or 2.0, concerning migration? (Android supports 2.0 through NDK, but dont know whether NDK's use will increase or decrease migration efforts)

解决方案

use a framework that is cross platform

Cocos2d for android: http://code.google.com/p/cocos2d-android/

Cocos2d for iphone:

http://code.google.com/p/cocos2d-iphone/

 
精彩推荐
图片推荐