é·ãéã空æ°ã§ã¯è³¢æãªããšã¯äœãã§ããŸããã§ããã ãããæè¿ããã®æè¡ã¯å¢ããå¢ããŠãããã¢ããã¯å€æ°ã®æé©åã空äžã³ãŒãã§è¡ã£ãŠãããçŸåšã§ã¯éåžžã«è¿ éãªã¢ããªã±ãŒã·ã§ã³ãäœæããããšãå¯èœã«ãªã£ãŠããŸãã ãã®èšäºã§ã¯ãiOSçšã®Airã¢ããªã±ãŒã·ã§ã³éçºã®çµéšã«ã€ããŠã話ããŸãã
ã©ã®ããã«ããŠãã®ãããªç掻ã«ãã©ãçããŸãããïŒ
çŸæç¹ã§ã¯ãæ°äººã®äŒç€Ÿã§ããå°ããªã¹ã¿ãŒãã¢ããã®ã¡ã€ã³ãããžã§ã¯ãïŒãœãŒã·ã£ã«ã²ãŒã ïŒã¯ãæè³å®¶ãæ¢ããŠããæéã®æçµæ®µéã§1幎ã®éçºãçµããŠåçµãããŠããŸãã ãã®ãããæ€çŽ¢/亀æžäžã«åº§ã£ãŠããªãããã«ãç§ãã¡ã¯ããŸãåŽåéçŽçã§ã¯ãªãäœããããããšã«ãªããŸãããäœããåŸãããšãã§ããã°ãããã¯ãšãŠãã·ãã¯ã§ãã
ãªããªã ç§ãã¡ããXcodeã«ã€ããŠãããããããç¥ã£ãŠãã人ã¯èª°ãããŸãããããã©ãã·ã¥ã䜿çšãããšããããªããã«ãªããŸãã
çŸæç¹ã§ã¯ãiOSã®Airã®ãŠãŒã¹ã±ãŒã¹ã䜿çšããŠãã ããã ã¯ãã ãã·ããªãŠã ã¯æªããããŸããã ããããããã§ããããã¯ææšã§ã¯ãããŸããã ç§ãã¡ã¯ã空æ°ãåçãªããã¡ããã©ã®ããã«æ±ãã®ãçåã«æã£ãŠããŸããã
ãã®ããã決å®ãäžãããŸããã æšå®æéïŒ1ãæïŒ-é éæžã¿ã ãããŠãç§ãã¡ã¯ç§ãã¡ã®ããã«æ°ããæè¡ãæãäžããããã«åº§ã£ã...
ç§ãã¡ã泚ç®ããäž»ãªãã©ãããã©ãŒã ã¯ãiPhone 4ã§ããã
ã²ãŒã ã®ã¢ã€ãã¢ã
ããã§ã¯ãé·ãéèããŠããŸããã§ããã ã¿ã¹ã¯ã¯ã次ã®åºæºã«åããã®ãèŠã€ããããšã§ããã
- ã·ã³ãã«=>é«ééçº
- å€ãã®ã¢ãã¡ãŒã·ã§ã³ãã°ã©ãã£ãã¯ã¹ãªã©ã®æ¬ åŠ ïŒãã®ããããŸã-ã¢ãŒãã£ã¹ãã«å幎éäœåãããŒãããªãããã«ãã次ã«-æºåž¯é»è©±ã®ããã»ããµãããŒãããªãããã«ããŸãïŒ
- æãŸãã-宣èšãããŠããªããããã¯
- 100çš®é¡ã®é£æ床ã®é«ãããºã«ã¬ãã«ãäœæããå¿ èŠã¯ãããŸããïŒéçºã®é床ãäœäžããŸãïŒ
ç§ãã¡ã¯ç¬èªã®äœããçºæããããªãã£ãã®ã§ãèšç®ã¯ãã®ããã§ã¯ãããŸããã§ããã ããã§ãã¯ããŒã³ãªããžã§ã¯ããæ¢ããŠã€ã³ã¿ãŒããããµãŒãã£ã³ãå§ããŸããã
æ°æ¥éã®æ€çŽ¢ã®åŸãã Ax in Face ãããã¡ãã«èœã¡çããŸããã 圌女ã¯ãã¹ãŠã®èŠä»¶ãæºãããŸããã ãã®æ¬è³ªã¯ãfingerã®éã«æ²¿ã£ãŠæãåŒããæµã«åãã£ãŠæããããšã§ããã
éçºã®éå§ã
ããã§ãç§ãã¡ã¯å§ããŸãã... Airãã¯ãããžãŒã«ã€ããŠãŸã£ããç¥ããªãã£ãããšã¯æ³šç®ã«å€ããŸãã
ããããçµå±ã®ãšããããã¹ãŠã¯ãŸã£ããæããã®ã§ã¯ãããŸããã ããã¯åããã©ãã·ã¥ã§ãããã¢ãã€ã«åºæã®æ©èœïŒãã«ãã¿ãããªã©ïŒãæäœããããã®è¿œå ã¯ã©ã¹ã2ã€ã ããããŸãã
ããã§ãéåžžã®ãã©ãã·ã¥éçºãéå§ããŸããã ç§ã¯ããã«ã€ããŠã¯æžããŸãã-ããã¯èšäºã®ãããã¯ã§ã¯ãããŸããã
ããŒããŠã§ã¢ïŒiPhoneãiPadïŒã§ã¢ããªã±ãŒã·ã§ã³ãèµ·åãããšãã«çºçããåé¡ãšå°é£ã«ã€ããŠã®ã¿èª¬æããŸãã
ã¡ãªã¿ã«ãAirãäœã§ãããç解ããŠããªã人ã®ããã«-ç°¡åã«èšãã°ã ããªãã¯ãã©ãã·ã¥ã²ãŒã ãéçºããŠããŸãã 次ã«ãAir iOSã®äžã§ãåºå£ã§ïŒçæ³çã«ã¯ïŒã³ã³ãã€ã«ããŸã-ã¢ããªã¹ãã¢ã«éä¿¡ããæºåãã§ãã.ipaãã¡ã€ã«ãååŸããŸãã
ãŠãŒã¶ãŒã«ãšã£ãŠããã®ããã°ã©ã ã¯Objective-CãŸãã¯Unityã§äœæããããã®ãšå€ãããŸããã iããã€ã¹ã§ãåãããã«å®è¡ãããŸãã è¿œå ã®èšå®ãã¿ã³ããªã³ãšã®ãã³ã¹ã¯å¿ èŠãããŸãã-å¿ èŠãããŸããã
ããã©ãŒãã³ã¹ã
ããã©ãŒãã³ã¹ã®ãããã¯ã¯ãéçºã«ãããŠæãéèŠã§ãã åœç¶ãç§ãã¡ã¯ä»ã®iOSã²ãŒã ãšæ»ããããå€ãããªã補åãæ±ããŠããŸããã ãŸãããŸãã¯ã§ããã ããããã«è¿ãã ã€ãã³ããè¿œãè¶ããŠãç§ã¯ãããã©ãã§ãå¯èœã§ã¯ãªãã£ããšèšãã§ãããã
ãã®ãããç§ãã¡ã®ã²ãŒã ã§ã¯ãæ°ååã®ã¢ãã¡ãŒã·ã§ã³ã¹ãã©ã€ããã§ããã ãæ©ãç»é¢ã«è¡šç€ºããå¿ èŠããããŸããã æè¡ãæç³»åã§èª¬æããŸãã
Flashãšã³ãžã³ããããããããã¬ãŒã ã
ãã¡ããããã¯ãã«ã®è©±ã¯ãããŸããã ãããã£ãŠãç§ãã¡ãæåã«è©Šããã®ã¯ããã¯ã¿ãŒãããããããã«ãšã¯ã¹ããŒããããã©ãã·ã¥ãã¬ãŒã ã«æ¿å ¥ãçŽãããšã§ããã
ããã¯æªããªãããšãå€æããŸããããããéã/ããã¹ã ãŒãºã«ãããã£ãã®ã§ãã
ããããããããªããã£ã³ã°ã
ããããå€ãã®äººããã®æè¡ã«ç²ŸéããŠããŸãã ããã¯ããã©ãã·ã¥ãã€ãã©ã€ã³ã§åããŠèªåã§å®è¡ããå Žåã§ããcopyPixelsã䜿çšããŠç©ºã®é·æ¹åœ¢ãšåãã¬ãŒã ãçæããã¹ãã©ã€ãã次ã ã«ã¹ãã©ã€ããããããã«ã³ããŒããŸãã
次ã«-çµæã®ãã£ã³ãã¹ã1ã€ã®Bitmapãªããžã§ã¯ããšããŠåºåããŸãã
ãã®ãã¯ãããžãŒã¯ãã¹ã¯ãããäžã§éåžžã«åªããããã©ãŒãã³ã¹ãçºæ®ããŸãããiOSã§ã¯å€±æããããšãå€æããŸããã ãšã³ãžã³ã¯10åé ããªããŸããã
å€æŽããããã©ãã·ã¥ãšã³ãžã³ã
ããã«ãã-é»éã®å¹³åã
ããã€ãã®ã°ãŒã°ã«ã®åŸãã¹ã±ãžã¥ãŒã«ãã¹ããŒãã¢ããã§ããããšãæããã«ãªããŸããã äžçªäžã®è¡ã¯ãæåã®ã±ãŒã¹ã®ããã«ãã¢ãã¡ãŒã·ã§ã³ã®åãã¬ãŒã ãæ°ãããã¬ãŒã ã«äœæãããšãã«ããã©ãã·ã¥ãå€ããã¬ãŒã ããåãã¬ãŒã ãåé€ããŠæ°ãããã¬ãŒã ãäœæããªããã°ãªããªãã£ããšããããšã§ãã ããã¯éåžžã«ãªãœãŒã¹ãæ¶è²»ããŸãã
ã¢ãã€ã«ç°å¢ãæ倧éã«æŽ»çšã§ãããã¯ãããžãŒã«ã€ããŠã©ããã§èªã¿ãŸããã
ãã®æ¬è³ªã¯ã1ãã¬ãŒã ã§MovieClipãäœæãããã®ãã¬ãŒã ã«ã¢ãã¡ãŒã·ã§ã³ã®ãã¹ãŠã®ãã¬ãŒã ãããã«ããããããããšã§ãã
次ã«ãå¯èŠã§ãå¿ èŠãªãã®ã ãã衚瀺ããŸãã ããªãã¯ã¯ãã¢ãã¡ãŒã·ã§ã³ã®ãã¹ãŠã®ãã¬ãŒã ãã¡ã¢ãªã«åæã«ååšãïŒä»®æ³ãã·ã³ãæ¢ã«ãããã«ã¡ã¢ãªãå²ãåœãŠãããã«è©°ã蟌ãã§ããïŒããããã®å¯èŠæ§ã®ã¿ããªã³/ãªãã«ããããšã§ãã ãããåæã«ãã¡ã¢ãªã¯åæ§ç¯ãããããã¹ãŠãå¯èœãªéãè¿ éã«æ©èœããŸãã
ãã¯ãããžãŒã®å€æŽãšããŠããã¹ãŠã®ãã¬ãŒã ãåå¥ã®bitmapDataã«ä¿åãããå Žåã«äœ¿çšããããªãã·ã§ã³ããããŸãã ãããŠãããããããã®ããŒãããå¯èŠãåŒãåºã代ããã«ãã¡ã€ã³ã®ãããããããããããã®ããã«ããããããããŒã¿ãåé 眮ããŸãã ã€ãŸã main_bmp.bitmapData = bd_frame [i];ã®ãããªãã®
ããã§åæ¢ããŸããã ã¢ãã¡ãŒã·ã§ã³ã®é床ã¯æåã®ã±ãŒã¹ã®1.5åã§ãiPhone4ã§ã¯40 fpsã§20ã30ã®ã¹ãã©ã€ãã衚瀺ã§ããŸãããããã¯éåžžã«é©ããŠããŸããã
ããã©ãŒãã³ã¹ãæé©åããããã®ãã³ãã
éçºäžã«ããã³ãã®åœ¢åŒã§èŠçŽãããã¬ãŒãã«ééããŸããã
- ã§ããã ãå°ãªãåçãªããžã§ã¯ããäœæããŸãã
- ç»é¢äžã®ãªããžã§ã¯ããå°ãªãã»ã©ããããŠã¹ãïŒæïŒã®ã€ãã³ãããã£ããã§ããŸãã å šå¡ã«mouseEnabledãmouseChildrenãfalseã«èšå®ããŸãã
- 倧ããªãªããžã§ã¯ãã移åããããšãããã¢ã«ãã¡ãå€æŽããããšã¯ããŸãããªãã§ãã ããã
- ã¢ãã¡ãŒã·ã§ã³åãããŠããªããã®ã«ã¯cacheAsBitmapãèšå®ããŸãã
- ã¢ã«ãã¡ãå転ãŸãã¯å€æŽããå¿ èŠãããå Žåã¯ãcacheAsBitmapMatrixã䜿çšããŸããããã«ããããã®ããã»ã¹ãé«éåãããŸãã
- ENTER_FRAMEã«å€æ°ã®ã©ã€ã»ã³ãµãŒãæããªãã§ãã ããã ããªããå¿ èŠãšãããã¹ãŠãåŒãèµ·ãããã®ãè¡ãæ¹ãè¯ãã
- ãã¬ãŒã ã«ã¢ã¿ãããããã®ã§ã¯ãªããã¿ã€ããŒã«ã¢ã¿ãããããŸãã ã€ãŸã ENTER_FRAMEã®ã©ã€ã»ã³ã·ãŒã§ãæåŸã®åŒã³åºãããã¿ã€ã ã«ãŠã³ã¿ãŒãå ¥åãããããããã§ã«é²ãã§ããŸã-ãã¹ãŠã®èšç®ãè¡ããŸãã
ã ãã...ç· ãåãã«éã«åããã1ãæã§ã¯ãªã2ãæããããŸãããããããç§ã¯æ¬åœã«å€§éšãããããããŸããã§ããã
ãã©ãããã©ãŒã åºæã
網è察äœè§£å床ã
ç»é¢ãç°ãªãiPhoneã§å®è¡ãããŠããAirã¢ããªã±ãŒã·ã§ã³ã¯ã©ã®ããã«åäœããŸããïŒ å®éããã¹ãŠãã·ã³ãã«ã§ãã èšå®ã§ã¯ãRetinaã¢ããªã±ãŒã·ã§ã³ã䜿çšãããã©ãããèšå®ããŸãã ããã«å¿ããŠãã¢ããªã±ãŒã·ã§ã³ã¯ã¹ã±ãŒãªã³ã°ãããŸãã
ãã®ã±ãŒã¹ã§ã¯ã網èã¢ããªã±ãŒã·ã§ã³ãš960x640ã®ã·ãŒã³ãµã€ãºãäœæããŸããã iPhone 4 / 4Sã§ã¯ãã¹ã±ãŒãªã³ã°ã¯è¡ãããŸããã 第3ã·ãªãŒãºã§ã¯ã50ïŒ ã«ã¹ã±ãŒãªã³ã°ãããŸãã
ãã¡ããã倧ããªæ¬²æ±-åæåäžã«æ··ä¹±ãã1.0ãŸãã¯0.5ã§ãããã©ããã«å¿ããŠã¹ã±ãŒã«ãååŸã§ããŸã-ç°ãªãã°ã©ãã£ãã¯ã衚瀺ããŸã...ããããç§ãã¡ã«ãšã£ãŠã¯éåžžã«é£ããããã§ããç§ã¯ã³ãŒããæžããªããã°ãªããªãã£ãã®ã§ãç§ãã¡ã¯åãåºããŸããã
iPhone察iPadã
ããã§ç¶²èãšåãããšã ãiPadããã§ãã¯ããã¯ã¹ããªã³ã«ãããšãiPadäžã®ã¢ããªã±ãŒã·ã§ã³ã¯ãã«ã¹ã¯ãªãŒã³ã§å®è¡ãããããã«åãããŠã¹ã±ãŒãªã³ã°ãããŸãïŒ960x640ã®å Žåãè€æ°ã®ã¹ã±ãŒãªã³ã°ãšã¢ãŒãã£ãã¡ã¯ããçããŸãïŒã ãã®ãã§ãã¯ããã¯ã¹ããªãã«ãããšãiPadã§å®è¡ãããéåžžã®iPhoneã¢ããªã±ãŒã·ã§ã³ã®ããã«åäœããŸãã ãx2ããã¿ã³ã䜿çšããŠå°ããªãŠã£ã³ããŠã§å®è¡ããŸãã
ãŸãã«ããããã£ãã
å°æ¥çã«ã¯ãããããiPadå°çšã®HDããŒãžã§ã³ïŒãã«ã¹ã¯ãªãŒã³ããã³ãã«ã°ã©ãã£ãã¯ã¹ïŒãåéããäºå®ã§ãã
CPU察GPUã
Flash for Airã¯ãGPUãšCPUã«ãšã³ãžã³ãæèŒãã2ã€ã®ããŒãžã§ã³ã§çµã¿ç«ãŠãããšãã§ããŸãã é©ããããšã«ããšã³ãžã³ã¢ã«ãŽãªãºã ã¯ãGPUãšCPUã®å·®ãéåžžã«å°ããïŒ10ïŒ ä»¥äžïŒãã®ã§ããã ãããã£ãŠãCPUã䜿çšããŸããã GPUã³ã³ãã€ã«ã¯ãšãã§ã¯ãããµããŒãããŠããŸããã ã€ãŸã ãã¹ãŠã®ãã©ã³ããšåœ±ã®ã¹ãããŒã¯ã¯æ©èœããŸããã ãã¡ããã解決çã¯ããšãã§ã¯ãä»ãã®ãã©ã³ããååŸããããããããããŒã¿ãäœæããããã«ãã®ãã©ã³ããæç»ïŒïŒããŠãçµæã®ãããããããã·ãŒã³ã«è¿œå ããããšã§ããã ãã®å Žåããã¹ãŠã®å¹æã¯æå®ã®äœçœ®ã«ãããŸãã drawïŒïŒã¯ããããã®å ŽåãCPUäžã§å®è¡ããããããå¹æã倱ãããšã¯ãããŸããã
ããããããã¯ã©ããããããéåžžã«ãžã§ã¢ã«ãã§ãããã²ãŒã ã¯ããããã®äŸ¡å€ããªããšæ±ºå®ãããŸããã
ãããããã®åé¡ã¯ãããžã§ã¯ãããšã«åå¥ã«æ€èšããå¿ èŠããããšæããŸãã
åé¡ãšè§£æ±ºçã
æããã«ããã¹ãŠã®iOSæ©èœãAirããå©çšã§ããããã§ã¯ãããŸããã ããšãã°ãGame Centerã®æ©èœãžã ã©ããã è¡ãæ¢ãŸãïŒ
ãŸã£ãããããŸããã ããããã¹ãŠã®ããã«ããã€ãã£ãæ¡åŒµãã¯ãããžãŒããããŸãã ãããã®æ¡åŒµæ©èœã䜿çšããŠãç¹å®ã®ã¢ã€ãã³ã«ãæãå·®ã䌞ã¹ããããšãã§ããŸãã ãããã®äœ¿çšæ¹æ³ã¯ãããªãåºç¯ãªãããã¯ã§ãã
ããã«ããã€ãã£ãæ¡åŒµã®äœ¿çšã«ã¯ã2çªç®ïŒããã«3çªç®ïŒã®åé¡ã䌎ããŸã-ãã©ãã·ã¥ããipaãã³ã³ãã€ã«ã§ããïŒã³ãã³ãã©ã€ã³ã䜿çšããå¿ èŠããããŸãïŒãã¿ã³ããªã³ãšãã³ã¹ããŠããŒããŠã§ã¢ã§åäœããŸãã
ãŸããäœããã®çç±ã§ãAireã®æ°ããããŒãžã§ã³ã¯ãé»è©±ã®ãµãŠã³ãã¹ã€ãããåãåºããããšèããŠããŸããã åäœãããã«ã¯ããã€ãã£ãæ¡åŒµã䜿çšããå¿ èŠããããŸãã ãããããå Žå-ãã€ãã£ãæ¡åŒµã«ã€ããŠã®èšäºãå¥ã«æžãããšãã§ããŸãã
ããã«ãããã»ã¹å šäœãPCã§å®äºããããšã¯ã§ããŸããã 蚌ææžãããŠã£ã³ããŠã®äžã«äœæã§ãããšããäºå®ã«ããããããïŒåã³-誰ããèå³ãæã£ãŠããå Žå-ç§ã¯å¥ã®èšäºã§ã¿ã³ããªã³ã䜿ã£ãŠãã¹ãŠã®ãã³ã¹ã説æã§ããŸãïŒãWindowsã®äžã§ã§ããªãããšã¯ã¢ããªã®ã¢ããªã±ãŒã·ã§ã³ã«èšå ¥ããããšã§ãã æè¿ãããã¯å¯èœãªå¯äžã®æ¹æ³ã§è¡ãããŸãããMacOS 10.6.8以äžãå¿ èŠãšããç¹å¥ãªããã°ã©ã ã䜿çšããŸãã ãããŠãä»ã®æ¹æ³ã¯ãããŸããã ã¿ã³ããªã³ãšã®é·ãæç¶çãªãã³ã¹ã«ããããã®ããŒãžã§ã³ã®ãã³ã·ãAMDã®ä»®æ³ãã·ã³ã«çœ®ãããšãã§ããŸããïŒèå³ãããå Žåã¯ãç°¡åã«ïŒç»å10.6.4ïŒã¬ã¬ã·ãŒïŒã®ã¿ãæ©èœãã10.6.8ãžã®ã³ã³ãã¢ããããŒããããŠã³ããŒãããŸããïŒæã§ïŒïŒ ãåèµ·åãããkextã亀æãããããPCIæ§æã®éå§æã«ãã³ã°ããããã£ãã·ã¥ãç¡èŠããŠããŒããããŸããïŒã ã¿ã³ããªã³ãšããã«ããã€ãã®ãã³ã¹-ãšã¢ããªã±ãŒã·ã§ã³ã殺å°ããŠããŸãïŒ
çµè«
çµéšã¯æåããŸãããïŒ æ°ãããã¯ãããžãŒã®çµéšã¯ã©ã®ãããæ£ç¢ºã§ããïŒ
ããããåçãªã²ãŒã ãæžãããã®ãã©ãããã©ãŒã ãšããŠ-ç§ã¯ä»ã®ãšãããŸã ãã©ãã·ã¥ããå§ãããŸããã ãªããªã ãŸã ãã¬ãŒãããããŸãã ããšãã°ãã¡ãã¥ãŒå ã®ãªããžã§ã¯ãã®åãã®ã¢ãã¡ãŒã·ã§ã³ã¯ã4çªç®ã®iPhoneã§ã¯ã¹ã ãŒãºã«ã§ããŸããã§ããã 4Sããã³iPad 2ã§ã¯ããã¹ãŠãé£ã¶ã ããããäžæ¹ã§ããããã®æ©èœã¯ç¹ã«éèŠã§ã¯ãªããã²ãŒã ãã¬ã€ã劚ããããšã¯ãããŸããã
èŠçŽ-ããªãã¯ããèšãããšãã§ããŸã-ããªãã¯æžãããšãã§ããŸãã ãããŠãèŠãç®ãè¯ããããããŸããã ããããããã€ãã®ç¹ã§ããã€ãã£ãã¢ããªã±ãŒã·ã§ã³ã«ã¯ãŸã å±ããŸããã
ãã ããã¢ãããéæ¢ããŠããŸããã æšæ¥ã圌ã¯GPUïŒ3Dãå«ãïŒããã«ã«æŽ»çšãããªãªãŒã¹åè£çAir 3.2ãçºè¡šããŸããã èŠãŠã¿ãŸããã...
çµæã
åçãããã¢ãŒã·ã§ã³ã³ãŒãã補åãªã³ã¯ããããŸãããã ãPRãã§å ¬éããããªãã®ã§ãåé€ããŸããã
çµæã«ã€ããŠè©±ãã®ã¯ææå°æ©ã§ã-ããã¡ãã¯ã¢ããªã§æ°æ¥ã§ãã æè¿iphones.ruã«å ¬éãããŸããã ãã®ãããä»ã®ãšããããã¹ãŠãå ã§ãã èå³æ·±ãå Žåã¯ãåæ¥çãªçµæã«ã€ããŠæžãããšãã§ããŸãã 確ãã«ã圌ãã¯ãã§ã«ãããŒããŒããã1ç¹ã®ã¬ãã¥ãŒãç²åŸããŠãããææïŒããã³ã¡ã€ã³ã¡ãã¥ãŒã«ããïŒãšç©çåŠã®æ¬ åŠã«ã€ããŠäžå¹³ãèšã£ãŠããŸãã ã¯ããã²ãŒã ã«æ¬ ããŠããã®ã¯ç©çåŠã§ãã
ããŒãã¹ãšããŠ-ããã€ãã®ã¹ã±ããïŒ