Unityã«ã¯ãã²ãŒã ã§ã¹ã ãŒãºãªã°ã©ãã£ãã¯ã¹ãå®çŸããããã®å€ãã®èšå®ãšããŒã«ãå«ãŸããŠããŸãã ãã®ãããžã§ã¯ãã§ã¯ãå°é£ãçããå¯èœæ§ã®ãããã®ãéžæããIntel GPUã§ã®ã²ãŒã ã®ããã©ãŒãã³ã¹ãžã®åœ±é¿ãåæããŸããã
ã²ãŒã éçºè ã®èŠ³ç¹ããUnityã®äœ¿çšãæ€èšããŸãã ããã©ãŒãã³ã¹ãäœäžããŠããé åãèŠã€ãã次ã«Unityã®çµã¿èŸŒã¿ããŒã«ã䜿çšããŠã¢ããªã±ãŒã·ã§ã³ã®ããã©ãŒãã³ã¹ãæ¹åããæ¹æ³ã決å®ããããšããŸããã Unityã®å©ç¹ã®1ã€ã¯ãã³ã³ãã³ãããã°ããäœæã§ããããšã§ãããç¹ã«ã¢ãã€ã«ããã€ã¹ãã¿ãã¬ããã§ããã©ãŒãã³ã¹ãå®çŸããã«ã¯ãéçºè ã¯çµã¿èŸŒã¿ã®ããã©ãŒãã³ã¹æé©åã¡ã«ããºã ã®äœ¿çšãæ éã«èšç»ããå¿ èŠããããŸãã ãã®èšäºã§ã¯ãæ°èŠããã³æ¢åã®UnityãŠãŒã¶ãŒã«ãã¬ãã«ãšã²ãŒã ãäœæããéã®ããã©ãŒãã³ã¹ãæ¹åããããã®ãã³ããæäŸããã³ã³ãã³ããäœæããæ°ããæ¹æ³ã«ã€ããŠèª¬æããŸãã
ã¯ããã«
Unityã䜿çšããã²ãŒã ã®äœæã¯æ¯èŒçç°¡åã§ãã Unityã«ã¯ãã¢ãã«ãæ¢è£œã®ã¹ã¯ãªããããã¢ãå®å šãªã²ãŒã ãªã©ãããŸããŸãªã¢ã€ãã ãè³Œå ¥ã§ããã¹ãã¢ããããŸãã ãã¹ãã®ããã«ãæ¢åã®ã²ãŒã ãšååããŠãããã©ãŒãã³ã¹ãæ¹åã§ããé åãšããã§ãªãé åãç¹å®ããŸããã Boot CampïŒãªãœãŒã¹ã¹ãã¢ããç¡æã§ããŠã³ããŒãå¯èœïŒãšåŒã°ããUnityæè¡ãã¢ã䜿çšããŠãåé¡ã®è€éããè©äŸ¡ããŸããã
ã²ãŒã ãã©ã¡ãŒã¿ãäœæãããã¹ãŠã®ã·ãŒã³ãå®è¡ããããã«ãUnity 3.0ã䜿çšããŸããã ãã¹ãã¯ãIntel HD Graphics 4000 GPUãæèŒãã第3äžä»£Intel Coreããã»ããµãæèŒããã³ã³ãã¥ãŒã¿ãŒã§å®æœãããŸãããããã¹ãçµæã¯ã¢ãã€ã«ããã€ã¹ã«ã¯é©çšãããŸããã
å質管çè
Unityã§ã¯ãã²ãŒã ã®è¿œå ã®ã¬ã³ããªã³ã°ãªãã·ã§ã³ãå©çšã§ããŸãïŒã¡ãã¥ãŒã®[ç·šé]-> [ãããžã§ã¯ãèšå®]-> [å質]ïŒå³1ïŒã ãããã¯ãåå¥ã«ã«ã¹ã¿ãã€ãºã§ããã«ã¹ã¿ã ã¬ã³ããªã³ã°ãªãã·ã§ã³ã§ãã Unityã«ã¯ãå質èšå®ãšãUnityã¹ã¯ãªããAPIã䜿çšããŠèšå®ããæ¹æ³ã説æããçµã¿èŸŒã¿ã®ããã¥ã¡ã³ããå«ãŸããŠããŸãã
å³1.ã¿ã°ãšã¬ã€ã€ãŒãžã®ã¢ã¯ã»ã¹ã¯ã[ç·šé]-> [ãããžã§ã¯ãèšå®]-> [ã¿ã°ã€ã³ã¹ãã¯ã¿ãŒ]ã¡ãã¥ãŒããè¡ããŸãã
Unityã§æé©åã®æ©äŒãèŠã€ããããã«ãå©çšå¯èœãªãã¹ãŠã®ãã©ã¡ãŒã¿ãŒããã¹ãããŸããã§ããããåã¡è² ããç解ããããã«å質èšå®ãå€æŽããŠã¿ãããšã«ããŸããã
ãã¯ã¹ãã£å質
å質èšå®ã€ã³ã¹ãã¯ã¿ãŒã«ã¯ããã¯ã¹ãã£ã®ã¬ã³ããªã³ã°è§£å床ãéžæã§ããããããããŠã³ã¡ãã¥ãŒããããŸãã 1 / 8ã1 / 4ã1 / 2ããŸãã¯ãã«è§£å床ã®è§£å床ãéžæã§ããŸãã ããŸããŸãªãã¯ã¹ãã£è§£å床ã§ããã©ãŒãã³ã¹ã®å¢æžãè©äŸ¡ããããã«ãUnityã§å©çšå¯èœãªãã¹ãŠã®ããã©ã«ãå質èšå®ïŒFastestãFastãGoodãªã©ïŒã§ãã¹ãã·ãŒã³ã®ãã¬ãŒã ã¬ãŒãã枬å®ããå枬å®ã®åã«ãã¯ã¹ãã£å質ã®ã¿ãå€æŽããŸããã
å³ å³2ãš3ã¯ã1/8ãã¯ã¹ãã£è§£å床ãšãã«ãã¯ã¹ãã£è§£å床ã®ã·ãŒã³ã®æ¯èŒã瀺ããŠããŸãã
å³2. Unity *解å床ã1/8ã®Boot Campã·ãŒã³
å³3. Unity * Boot Campã®ãã«è§£å床ã®ã·ãŒã³
ãã¯ã¹ãã£è§£å床ãå€æŽããåŸãIntel Graphics Performance AnalyzerïŒIntel GPAïŒã䜿çšããŠãã¬ãŒã ã¬ãŒãïŒãã¬ãŒã /ç§ïŒã枬å®ããŸããã Fantasticå質ã¬ãã«ïŒè¡š1ïŒã§ã¯ããã¯ã¹ãã£ãµã€ãºãå€æŽããŠãããã©ãŒãã³ã¹ã¯ããŸãå€åããªãã£ãããšãããããŸãã
è¡š1. Unityã§ç°ãªããã¯ã¹ãã£å質ãåãæ¿ããéã®ãã¬ãŒã ã¬ãŒãã®å€å
Intel GPUãæèŒããã³ã³ãã¥ãŒã¿ãŒã§ã¯ãçè«äžããã¯ã¹ãã£ã®ãµã€ãºã«å¿ããŠããã©ãŒãã³ã¹ã¯å€åããŸããããããã€ã¹ã¡ã¢ãªãã¢ããªã±ãŒã·ã§ã³ã¡ã¢ãªã®ç·äœ¿çšéãªã©ãä»ã®èŠå ãèæ ®ããå¿ èŠããããŸãã
圱ã®è·é¢
圱ã®è·é¢ã¯ãã²ãŒã ãªããžã§ã¯ãã®åœ±ã«äœ¿çšãããã«ãªã³ã°ã®æ·±ãã決å®ãããã©ã¡ãŒã¿ãŒã§ãã ã²ãŒã ãªããžã§ã¯ããã«ã¡ã©ããæå®ãããè·é¢å ã«ããå Žåããã®ãªããžã§ã¯ãã®åœ±ãæç»ãããŸããããªããžã§ã¯ãããã®è·é¢ããé ãå Žåããã®ãããªãªããžã§ã¯ãã®åœ±ã¯è¡šç€ºãããŸããïŒã¬ã³ããªã³ã°ããé€å€ãããŸãïŒã
䜿çšããããã©ã¡ãŒã¿ã«ãã£ãŠã¯ãã·ã£ããŠã®èšç®ãšã¬ã³ããªã³ã°ã¯ãªãœãŒã¹ã倧éã«æ¶è²»ããæäœã§ãããããããã©ãŒãã³ã¹ã«æªåœ±é¿ãäžããå¯èœæ§ããããŸãã 圱ã®è·é¢ãã©ã¡ãŒã¿ãŒã®å¹æã®ãã¹ã
- ãã¹ãã·ãŒã³ãäœæããŸãã
- ãã®ã·ãŒã³ã®ããã©ã«ãã®Unityå質èšå®ãèšå®ããŸãã
- ã·ã£ããŠè·é¢ãã©ã¡ãŒã¿ãŒã®å€ãåŸã ã«å¢ãããIntel GPAã䜿çšããŠãã¬ãŒã ã¬ãŒãã枬å®ããŸãã
- Unityã§å¥ã®ããã©ã«ãã®å質å€ãéžæãããã¬ãŒã ã¬ãŒãã®æž¬å®ãç¹°ãè¿ããŸãã
ãã®ãã¹ãã§ã¯ããããã®ã¢ãŒãã§ã¯ã·ã£ããŠãç¡å¹ã«ãªã£ãŠãããããFastestããã³Fastã®å質ã¬ãã«ã¯äœ¿çšãããŸããã§ããã
å³4.ãã®ãã©ã¡ãŒã¿ãŒã¯ãã€ã³ã¹ãã¯ã¿ãŒã¡ãã¥ãŒã§äœ¿çšã§ããŸãïŒç·šé->ãããžã§ã¯ãèšå®->å質
å³5. Unity * Boot Campãã¯ãã«ã«ãã¢
è¡š2. Unity * Boot Campãã¯ãã«ã«ãã¢ã§Shadow Distanceãã©ã¡ãŒã¿ãŒå€ãå€æŽããå Žåã®ãã¬ãŒã ã¬ãŒãã®å€æŽ
圱ã¯ããã©ãŒãã³ã¹ã«å€§ãã圱é¿ããŸãã ãã¹ãã§ã¯ãã·ã³ãã«ã¢ãŒãã§è·é¢ã0ãã50ã«åãæ¿ãããšããã¬ãŒã ã¬ãŒããã»ãŒ2åäœäžããããšã瀺ãããŸããã ã²ãŒã ãªããžã§ã¯ããå®éã«è¡šç€ºããããã©ãããæ€èšããäžèŠãªåœ±ãæç»ãããªãããã«ããããšãéèŠã§ãã ããŸããŸãªç¶æ³ã§Unityã¹ã¯ãªããã䜿çšããŠãã·ã£ããŠãã£ã¹ãã®æ·±ãã調æŽã§ããŸãã ã·ã£ããŠé€å»ã®æ·±ãã®å¹æã®ã¿ã確èªããŸããããä»ã®ã·ã£ããŠå質ãã©ã¡ãŒã¿ãŒãæ§æãããšãåæ§ã®ããã©ãŒãã³ã¹ã®å€æŽãçºçããå¯èœæ§ããããŸãã
ã¬ã€ã€ãŒ
Unityã®ãã¹ãŠã®ã²ãŒã ãªããžã§ã¯ãã«ã¯ãäœææã«ã¬ã€ã€ãŒãå²ãåœãŠãããŸãã å³ã«ç€ºãããã«ãæåã¯ãã¹ãŠã®ãªããžã§ã¯ãã«ããã©ã«ãã®ã¬ã€ã€ãŒãå²ãåœãŠãããŸãã 6ããã ããç¬èªã®ã¬ã€ã€ãŒãäœæã§ããŸãã ãããè¡ãã«ã¯2ã€ã®æ¹æ³ããããŸãã [ã¬ã€ã€ãŒ]ãã£ãŒã«ããã¯ãªãã¯ããŠã[æ°ããã¬ã€ã€ãŒãè¿œå ]ãéžæããã ãã§ãã ã¡ãã¥ãŒã®[ç·šé]-> [ãããžã§ã¯ãèšå®]-> [ã¿ã°]ã䜿çšããããšãã§ããŸãã
å³6.ã²ãŒã ãªããžã§ã¯ãã®ã€ã³ã¹ãã¯ã¿ãŒãŠã£ã³ããŠã®ã¬ã€ã€ãŒã¡ãã¥ãŒ
å³7.ã€ã³ã¹ãã¯ã¿ãŒãŠã£ã³ããŠã®ã¿ã°ãããŒãžã£ãŒ
[ã€ã³ã¹ãã¯ã¿ãŒ]ãŠã£ã³ããŠïŒå³7ïŒã§ãæ°ããã¬ã€ã€ãŒãäœæããã©ã®ã¬ã€ã€ãŒçªå·ã«å±ããããæå®ã§ããŸãã äž¡æ¹ã®æ¹æ³ã䜿çšãããšãåãã¿ã°ãããŒãžã£ãŒãŠã£ã³ããŠãéããŸãã ã¬ã€ã€ãŒãäœæããåŸã[ã¬ã€ã€ãŒ]ãã£ãŒã«ãã®ã²ãŒã ãªããžã§ã¯ãã®[ã€ã³ã¹ãã¯ã¿ãŒ]ãŠã£ã³ããŠã®ãã©ã¡ãŒã¿ãŒãŠã£ã³ããŠã§ç®çã®ã¬ã€ã€ãŒãéžæããããšã«ããããã®ã¬ã€ã€ãŒã«ã²ãŒã ãªããžã§ã¯ããå²ãåœãŠãããšãã§ããŸãã ãã®ããã«ããŠãåãã¬ã€ã€ãŒäžã®ãªããžã§ã¯ããã°ã«ãŒãåããããããäžç·ã«åŠçã§ããŸãã ãã®èšäºã§ä»ã®ã¬ã€ã€ãŒæ©èœã«ã€ããŠèª¬æãããšãã¯ãã¬ã€ã€ãŒãšã¯äœããããããäœæããã³ã«ã¹ã¿ãã€ãºããæ¹æ³ãèŠããŠãããŠãã ããã
å±€é€å»è·é¢
ã«ã¡ã©ã¯Unityã®ã¯ãªããã³ã°ãã¬ãŒã³ã®å€åŽã«ããã²ãŒã ãªããžã§ã¯ããæç»ããŸããã Unityã¹ã¯ãªããã䜿çšãããšãç¹å®ã®ã¬ã€ã€ãŒã®ã¯ãªããã³ã°ãã¬ãŒã³ã«çãè·é¢ãæå®ã§ããŸãã
å³8.ã¬ã€ã€ãŒé€å»è·é¢ãå€æŽããUnityããã¥ã¡ã³ãã®ãµã³ãã«ã¹ã¯ãªãã
ã²ãŒã ãªããžã§ã¯ãã®æåŠè·é¢ãçãèšå®ããã«ã¯ãããã€ãã®äœæ¥ãå¿ èŠã§ãã ãŸãããªããžã§ã¯ããã¬ã€ã€ãŒã«é 眮ããå¿ èŠããããŸãã 次ã«ããã®ç¹å®ã®ã¬ã€ã€ãŒã®ã«ãªã³ã°è·é¢ãå€æŽããã¹ã¯ãªãããäœæããã«ã¡ã©ã«ã¹ã¯ãªãããå²ãåœãŠãå¿ èŠããããŸãã å³ã®ãµã³ãã«ã¹ã¯ãªãã å³8ã¯ã䜿çšå¯èœãª32ã®ã¬ã€ã€ãŒã«å¯Ÿå¿ãã32ã®æµ®åå°æ°ç¹å€ã®é åãäœæããæ¹æ³ã瀺ããŠããŸããããã¯ã[ç·šé]-> [ãããžã§ã¯ãèšå®]-> [ã¿ã°]ã䜿çšããŠäœæã§ããŸãã ãã®é åã®ã€ã³ããã¯ã¹å€ãå€æŽããŠcamera.layerCullDistancesã«å²ãåœãŠããšã察å¿ããã¬ã€ã€ãŒã®æåŠè·é¢ãå€æŽãããŸãã ã€ã³ããã¯ã¹ã«çªå·ãå²ãåœãŠãªãå Žåã察å¿ããã¬ã€ã€ãŒã¯ã«ã¡ã©ã®ãã¡ãŒã¯ãªããã³ã°ãã¬ãŒã³ã䜿çšããŸãã
layerCullDistancesã®ããã©ãŒãã³ã¹ããã¹ãããããã«ãäœãäžãé«ã®è€éãã®ãªããžã§ã¯ãã§æºãããã3ã€ã®ã·ãŒã³ãäœæããŸããã ãããã®ã·ãŒã³ã§ã¯ãåäžã®ã²ãŒã ãªããžã§ã¯ããéããããã«ã¡ã©ããåŸã ã«é¢ããè¡ã«é 眮ãããŸãã Intel GPAã䜿çšããŠãã¬ãŒã ã¬ãŒãã枬å®ããã¬ã€ã€ãŒé€å»è·é¢ãåŸã ã«å¢ãããŠãå枬å®ã«ãªããžã§ã¯ãã®ã°ã«ãŒããè¿œå ããŸããïŒã€ãŸããæåã®æž¬å®ã§ãªããžã§ã¯ãã®1ã€ã®ã°ã«ãŒãã6çªç®ã®æž¬å®ã§ãªããžã§ã¯ãã®6ã€ã®ã°ã«ãŒãïŒã
å³9ã10ãããã³11ã¯ãããŸããŸãªã¿ã€ãã®ãªããžã§ã¯ãã§ãã¹ãããããã«äœ¿çšããã·ãŒã³ã瀺ããŠããŸãã
ããŒãïŒããªãŽã³-278ãããŒã¯-218
å³9.ããŒãã䜿çšãããã¹ãã·ãŒã³-ããªãŽã³ãšé ç¹ã®æ°ãå°ãªããªããžã§ã¯ã
æç«ïŒããªãŽã³-4398ãããŒã¯-4400
å³10.æç«ãå«ãã·ãŒã³ã®ãã¹ã-å¹³åæ°ã®ããªãŽã³ãšé ç¹ãæã€ãªããžã§ã¯ã
èªç©ºæ©ïŒããªãŽã³-112 074ãããŒã¯-65 946
å³11.é£è¡æ©ã§ã®ãã¹ãã·ãŒã³-å€æ°ã®ããªãŽã³ãšé ç¹ãæã€ãªããžã§ã¯ã
è¡š3ã4ãããã³5ã¯ããã¹ãŠã®ãã¹ãã·ãŒã³ã§ã®ãã¬ãŒã ã¬ãŒãã®å€åã瀺ããŠããŸãã
è¡š3.ããŒãã®ããã·ãŒã³ã§ååŸããããŒã¿ïŒå³9ïŒ
è¡š4.æç«ã®ããã·ãŒã³ã§åŸãããããŒã¿ïŒå³10ïŒ
è¡š5.èªç©ºæ©ã®ããã·ãŒã³ã§åŸãããããŒã¿ïŒå³11ïŒ
è¡š6.ãã¡ã³ã¿ã¹ãã£ãã¯ã¢ãŒãã§ã®ãã¹ãŠã®ãã¹ãã·ãŒã³ã®ããŒã¿
ãã®ããŒã¿ã¯ãUnityã®layerCullDistancesé¢æ°ã䜿çšããŠéæã§ããããã©ãŒãã³ã¹ã®æ¹åã瀺ããŠããŸãã
è¡š6ã¯ãç¹ã«è€éãªãªããžã§ã¯ãã®å Žåãç»é¢äžã®ãªããžã§ã¯ãã®æ°ãå¢ãããšããã©ãŒãã³ã¹ãã©ã®ããã«å€åãããã瀺ããŠããŸãã ã²ãŒã éçºè ã®èŠ³ç¹ããã layerCullDistancesãæ£ãã䜿çšãããšãããã©ãŒãã³ã¹ãå€§å¹ ã«åäžããŸãã ããšãã°ãã«ã¡ã©ããé¢ããå Žæã«ããè€éãªã¢ãã«ãæã€å°ããªãªããžã§ã¯ãã®å Žåããããã®ãªããžã§ã¯ãããã§ã«åºå¥ã§ããå Žåã«ã®ã¿ãååãªè¿äŒŒå€ã§ã¬ã³ããªã³ã°ã調æŽã§ããŸãã ã¬ãã«ãèšç»ããã³äœæãããšããéçºè ã¯ã¢ãã«ã®è€éããšã«ã¡ã©ããé ãé¢ããå Žæã«ãããªããžã§ã¯ãã®å¯èŠæ§ãèæ ®ããå¿ èŠããããŸãã åæèšç»ã§ã¯ã layerCullDistancesã䜿çšããŠããè¯ãçµæãéæã§ããŸãã
ã«ã¡ã©
Unityãšãã®èšå®ã§ã«ã¡ã©ãæäœããå¯èœæ§ãç 究ããŸããã ããŸããŸãªãã©ã¡ãŒã¿ãŒãéžæããŠãä»ã®ã³ã³ããŒãã³ããã¢ããªã³ã䜿çšããŠã¿ãŸããã
å³12.ã«ã¡ã©ãéžæããåŸã«éãã€ã³ã¹ãã¯ã¿ãŒã¡ãã¥ãŒ
æ°ããã·ãŒã³ãäœæãããšããããã©ã«ãã§ã¯ãã¡ã€ã³ã«ã¡ã©ãšåŒã°ããã«ã¡ã©ã®ã²ãŒã ãªããžã§ã¯ãã1ã€ã ã衚瀺ãããŸãã å¥ã®ã«ã¡ã©ãè¿œå ããã«ã¯ããŸã空ã®ã²ãŒã ãªããžã§ã¯ããäœæããŸãïŒã²ãŒã ãªããžã§ã¯ã->空ãäœæããŸãã 次ã«ããã®ç©ºã®ãªããžã§ã¯ããéžæããã«ã¡ã©ã³ã³ããŒãã³ããè¿œå ããŸãïŒã³ã³ããŒãã³ã->ã¬ã³ããªã³ã°->ã«ã¡ã©ã
Unityã®ã«ã¡ã©ã¯ãå³ã«ç€ºãããã«ãåºç¯ãªã«ã¹ã¿ãã€ãºãªãã·ã§ã³ããµããŒãããŠããŸãã 12.ç§ãèŠãèšå®ã¯æ¬¡ã®ãšããã§ããã¬ã³ããªã³ã°ãã¹ãšHDRã
ã¬ã³ããªã³ã°ãã¹
Render Pathãã©ã¡ãŒã¿ãŒã䜿çšãããšãã²ãŒã å ã§ã©ã€ããšã·ã£ããŠã®ã¬ã³ããªã³ã°ãåŠçããæ¹æ³ãUnityã§æå®ã§ããŸãã Unityã¯3çš®é¡ã®ã¬ã³ããªã³ã°ããµããŒãããŸããããã§ã¯ãæããªãœãŒã¹ãæ¶è²»ãããã®ããæããªãœãŒã¹ãæ¶è²»ããªããã®ãžãšé çªã«äžŠãã§ããŸãã ãããã®å Žåããã·ã£ããŠãšã©ã€ãã®åŠçæ¹æ³ã¯å°ãç°ãªããããããåŠçããã«ã¯ãç°ãªãéã®CPUããã³GPãªãœãŒã¹ãå¿ èŠã§ãã é©åãªã¬ã³ãã©ãŒãéžæããã«ã¯ãã©ã®ãã©ãããã©ãŒã ããã³ã©ã®æ©åšéçºãé²è¡äžã§ããããç解ããããšãéèŠã§ãã ã°ã©ãã£ãã¯ã¢ããã¿ãŒã§ãµããŒããããŠããªãã¬ã³ãã©ãŒãéžæãããšãUnityã¯èªåçã«ãªãœãŒã¹ãããŸã䜿çšããªãã¬ã³ããªã³ã°æ¹æ³ã«åãæ¿ãããŸãã
å³13. Player Settings InspectorãŠã£ã³ããŠ
ã¬ã³ããªã³ã°ãã¹ã®å€ãèšå®ããã«ã¯ã2ã€ã®æ¹æ³ããããŸãã æåã®æ¹æ³ïŒ
ç·šé->ãããžã§ã¯ãèšå®->ãã¬ãŒã€ãŒïŒå³13ïŒã [ã¬ã³ããªã³ã°ãã¹]ããããããŠã³ãªã¹ãã¯ã[ãã®ä»ã®èšå®]ã¿ãã«ãããŸãã 2çªç®ã®æ¹æ³ïŒCamera InspectorãŠãŒã¶ãŒã€ã³ã¿ãŒãã§ã€ã¹ãŠã£ã³ããŠã䜿çšããïŒå³14ïŒã [ãã¬ãŒã€ãŒã®èšå®ã䜿çš]以å€ã®ãªãã·ã§ã³ãéžæãããšãããã©ã«ãã®èšå®ã眮ãæããããŸããããã®ã«ã¡ã©ã®å Žåã®ã¿ã§ãã ãããã£ãŠãå ãšåœ±ã®ã¬ã³ããŒãããã¡èšå®ãç°ãªãã«ã¡ã©ã䜿çšã§ããŸãã
å³14. [ã«ã¡ã©]ãŠã£ã³ããŠã§[ã¬ã³ããªã³ã°ãã¹]ãªãã·ã§ã³ãéžæãããšãã®ããããããŠã³ãªã¹ã
éçºè ã¯ãUnityãæ§æããããŸããŸãªç §æã¬ã³ããªã³ã°ã¢ãŒããã©ã®ããã«æ©èœããããç¥ãå¿ èŠããããŸãã ãã®ããã¥ã¡ã³ãã®æåŸã«ããåç §ã»ã¯ã·ã§ã³ã«ã¯ãUnityããã¥ã¡ã³ããžã®ãªã³ã¯ãèšèŒãããŠããŸãã ã²ãŒã ã®å¯Ÿè±¡ãŠãŒã¶ãŒãšãæœåšçãªãŠãŒã¶ãŒããã®ã²ãŒã ããã¬ã€ãããã©ãããã©ãŒã ãæ£ç¢ºã«ææ¡ããŠãã ããã ããã¯ããã®ãã©ãããã©ãŒã ã«é©ããã¬ã³ããªã³ã°æ¹æ³ãéžæããã®ã«åœ¹ç«ã¡ãŸãã ããšãã°ãã²ãŒã ã«é 延ã¬ã³ããªã³ã°ã䜿çšããè€æ°ã®å æºãšã°ã©ãã£ãã¯ãšãã§ã¯ããå«ãŸããŠããå Žåãäœé»åã°ã©ãã£ãã¯ã¢ããã¿ãŒãæèŒããã³ã³ãã¥ãŒã¿ãŒã§ã¯ããã®ãããªã²ãŒã ããã¬ã€ããããšã¯äžå¯èœã«ãªããŸãã ã¿ãŒã²ãããªãŒãã£ãšã³ã¹ã«ãé«ãèšç®èœåãæããªãããã€ã¹ãæã€ã«ãžã¥ã¢ã«ãªã²ãŒããŒãå«ãŸããŠããå Žåãåé¡ãçºçããå¯èœæ§ããããŸãã éçºè ã¯ãã²ãŒã ã®å¯Ÿè±¡ãšãªãã¿ãŒã²ãããã©ãããã©ãŒã ãææ¡ããã²ãŒã ã§ç §æãã¬ã³ããªã³ã°ããã³åŠçããé©åãªæ¹æ³ãéžæããå¿ èŠããããŸãã
HDRïŒãã€ãã€ãããã¯ã¬ã³ãžïŒ
éåžžã®ã¬ã³ããªã³ã°ã§ã¯ãåãã¯ã»ã«ã®èµ€ãç·ïŒGïŒããã³éïŒBïŒã®è²ã®å€ã¯10é²æ°ã§è¡šããããã®å€ã¯0ã1ã§ãããããã®è²ã®å€ã®ç¯å²ãå¶éãããšãç §æã¯éçŸå®çã«èŠããŸãã ããèªç¶ãªå ãå®çŸããã«ã¯ãUnityã§æ¡åŒµãã€ãããã¯ã¬ã³ãžïŒHDRïŒãæå¹ã«ããŸãã ãã®å Žåãåãã¯ã»ã«ã®RãGãBã®å€ãæ£åžžç¯å²å€ã«ãªãå¯èœæ§ããããŸãã HDRã¯ã0ã1ã®ç¯å²å€ã®å€ããµããŒãããã€ã¡ãŒãžãããã¡ãŒãäœæãããŒãããã°ã¬ã¢ãªã©ã®ã°ã©ãã£ãã¯å¹æã®åŸåŠçãå®è¡ããŸãã åŸåŠçã®å¹æãèšç®ããåŸãç»åãããã¡ãŒå ã®RãGãBã®å€ã¯ãUnityè²çžãããã³ã°ãã¯ãããžãŒã«ãã£ãŠ0ã1ã®ç¯å²å ã®å€ã«ãªã»ãããããŸãã è²çžãããã®æ§ç¯ãHDRã䜿çšããŠå®è¡ãããªãå Žåããã¯ã»ã«ã¯èš±å®¹ç¯å²å€ã«ãªãå¯èœæ§ããããŸããããããã·ãŒã³ã®äžéšã®è²ãä»ã®è²ãšæ¯ã¹ãŠæ£ããèŠããªãçç±ã§ãã
HDRã䜿çšããå Žåãããã©ãŒãã³ã¹ã«åœ±é¿ãããã©ã¡ãŒã¿ãŒã«æ³šæããŠãã ããã é«åºŠãªã·ãŒã³ã¬ã³ããªã³ã°ã䜿çšããå ŽåãHDRã¯ã°ã©ãã£ãã¯å¹æãããå Žåã«ã®ã¿æ©èœããŸãã ãã以å€ã®å ŽåãHDRãæå¹ã«ããŠãäœã«ã圱é¿ããŸããã é 延ã¬ã³ããªã³ã°ã§ã¯ãHDRãåžžã«äœ¿çšãããŸãã
ã·ãŒã³ãé 延ã¬ã³ããªã³ã°ã䜿çšããŠåŠçãããã«ã¡ã©ã«ã°ã©ãã£ãã¯å¹æãå²ãåœãŠãããŠããå ŽåãHDRãæå¹ã«ããå¿ èŠããããŸãã å³ 15ã¯ãã·ãŒã³ã®ã¬ã³ããªã³ã°åŒã³åºãã®æ°ãšãHDRããªã³ããã³ãªãã®å Žåã®ãšãã§ã¯ãããã³é 延ã¬ã³ããªã³ã°ãæ¯èŒããŠããŸãã HDRã䜿çšããªãå Žåãã·ãŒã³ã«ãšãã§ã¯ããå«ãŸããŠããå ŽåãHDRã䜿çšããå Žåãããã¬ã³ããªã³ã°åŒã³åºãã®æ°ãå€§å¹ ã«å€ããªããŸãã å³ å³15ã§ã¯ãã¬ã³ããªã³ã°åŒã³åºãã®æ°ã¯å¥ã ã®éãããŒã§è¡šãããåããŒã®é«ãã¯GPã®ååŒã³åºãã®è² è·ã«å¯Ÿå¿ããŸãã
å³15. Intel Graphics Performance Analyzerã䜿çšãã枬å®ã§ã¯ãHDRããªãã«ãããš2000åãè¶ ããã¬ã³ããªã³ã°åŒã³åºããè¡ãããHDRããªã³ã«ãããš900åãè¶ ããã¬ã³ããªã³ã°åŒã³åºããè¡ãããããšã瀺ãããŠããŸãã
Unityã®HDRããã¥ã¡ã³ãããã§ãã¯ããŠããã®æ©èœãã©ã®ããã«æ©èœãããã確èªããŠãã ããã ãŸããããã«ããããã©ãŒãã³ã¹ã®åäžãåŸãããã«ãã©ã®å Žåã«æ¡åŒµãã€ãããã¯ã¬ã³ãžã䜿çšããå¿ èŠããããã©ã®å Žåã«ãããæå³ããªããªãããç¥ãå¿ èŠããããŸãã
ã°ã©ãã£ãã¯å¹æ
Unity Proã«ã¯ãã·ãŒã³ã®å€èŠ³ãåäžãããå€ãã®ã°ã©ãã£ãã¯å¹æãå«ãŸããŠããŸãã ãããžã§ã¯ãã®äœæåŸã«ç»åå¹æã³ã³ããŒãã³ããè¿œå ããã«ã¯ãã¢ã»ãã->ããã±ãŒãžã®ã€ã³ããŒã->ç»åå¹æã¡ãã¥ãŒã䜿çšããŸãã ã€ã³ããŒãåŸã2ã€ã®æ¹æ³ã§ã«ã¡ã©ã«ãšãã§ã¯ããè¿œå ã§ããŸãã ã«ã¡ã©ã²ãŒã ãªããžã§ã¯ããã¯ãªãã¯ããã«ã¡ã©ãŠã£ã³ããŠã§[ã³ã³ããŒãã³ãã®è¿œå ]ã[ç»åå¹æ]ã®é ã«éžæããŸãã [ã³ã³ããŒãã³ã]-> [ç»åå¹æ]ãéžæããŠãã¡ãã¥ãŒã®ã«ã¡ã©ãªããžã§ã¯ããã¯ãªãã¯ããããšãã§ããŸãã
ã¹ã¯ãªãŒã³ç©ºéã®æ£ä¹±ã·ã§ãŒãã£ã³ã°-SSAO
Screen SpaceïŒSSAOïŒã®æ£åžã·ã§ãŒãã£ã³ã°ã¯ãUnity Proã®Image Effectããã±ãŒãžã«å«ãŸããã°ã©ãã£ãã¯å¹æã§ãã å³ å³16ã¯ãSSAOã®æå¹åãšç¡å¹åã®éãã瀺ããŠããŸãã ç»åã¯äŒŒãŠããŸãããããã©ãŒãã³ã¹ã¯å€§ããç°ãªããŸãã SSAOã䜿çšããªãã·ãŒã³ã§ã¯ããã¬ãŒã ã¬ãŒãã¯32ãã¬ãŒã /ç§ã§ãSSAOã䜿çšãããšã24ãã¬ãŒã /ç§ãã€ãŸã25ïŒ äœäžããŸããã
å³16. SSAOãç¡å¹ïŒäžïŒãšSSAOãæå¹ïŒäžïŒã®åãã¬ãã«ã®æ¯èŒ
ã°ã©ãã£ãã¯å¹æãè¿œå ãããšãã¯ãããã©ãŒãã³ã¹ã«æªåœ±é¿ãäžããå¯èœæ§ããããã泚æããŠãã ããã ãã®ããã¥ã¡ã³ãã®æºåã§ã¯ãSSAOã®ã¿ããã¹ãããŸããããä»ã®å¹æã䜿çšããå Žåãåæ§ã®çµæãæåŸ ã§ããŸãã
劚害ããããªããžã§ã¯ãã®é€å€
é ããããªããžã§ã¯ãã®é€å€ã¯ãã«ã¡ã©ã®ã¯ãªããã³ã°ãã¬ãŒã³ãè¶ ãããªããžã§ã¯ãã ãã§ãªããä»ã®ãªããžã§ã¯ãã®åŸãã«é ããŠãããªããžã§ã¯ãã®ã¬ã³ããªã³ã°ãç¡å¹ã«ããããšã§ãã ããã¯ãåŠçããå¿ èŠãããæ å ±ã®éãå€§å¹ ã«åæžããããããããã©ãŒãã³ã¹ã®ç¹ã§éåžžã«æçã§ãã ãã ããäžæçãªãªããžã§ã¯ãã®é€å€ãèšå®ããã®ã¯ç°¡åã§ã¯ãããŸããã é®ããããªããžã§ã¯ããé€å€ããããã«ã·ãŒã³ãèšå®ããåã«ã䜿çšãããçšèªãç解ããå¿ èŠããããŸãã
劚害ãªããžã§ã¯ã-劚害ãšããŠããŒã¯ããããªããžã§ã¯ãã¯é害ç©ãšããŠæ©èœããŸãïŒåŠšå®³ãšããŠããŒã¯ããããªããžã§ã¯ãã«å²ãŸãããã¹ãŠã®ãªããžã§ã¯ãã¯æç»ãããŸããã
ãã£ã¹ããããªããžã§ã¯ã-ãã®æ¹æ³ã§ãªããžã§ã¯ãã«ããŒã¯ãä»ããå Žåãããããã³ã°ãªããžã§ã¯ãã«ãã£ãŠé ãããŠããå ŽåãUnityã§ã¯æç»ãããŸããã
ããšãã°ã家ã®äžã«ãããã¹ãŠã®ãªããžã§ã¯ããèŠãé ãããã«ããŒã¯ãããšã家èªäœãéªéã«ãªãããã«ããŒã¯ã§ããŸãã ã²ãŒã ãã£ã©ã¯ã¿ãŒããã®å®¶ã®å€ã«ããå Žåã家ã®äžã§äžæçãšããŒã¯ãããŠãããã¹ãŠã®ãªããžã§ã¯ãã¯æç»ãããŸããã åæã«ãCPUããã³GPUã§ã®åŠçãé«éåãããŸãã
é ããããªããžã§ã¯ãã®é€å€ã®äœ¿çšãšèšå®ã¯Unityã«ææžåãããŠããŸãã æ§ææ å ±ãžã®ãªã³ã¯ã«ã€ããŠã¯ãåç §ã»ã¯ã·ã§ã³ãåç §ããŠãã ããã
ããã©ãŒãã³ã¹ã®å€åïŒåŠšå®³ããããªããžã§ã¯ãã®é€å€ã«äŸåïŒã瀺ãããã«ãåæ¯ã«å£ããããèåŸã«è€éãªã¢ãã«ãæã€ãªããžã§ã¯ããããã·ãŒã³ãäœæããŸããã ã·ãŒã³ã®ãã¬ãŒã ã¬ãŒãããäžæçãªãªããžã§ã¯ããé€ãã枬å®ããŠãã枬å®ããŸããã å³ å³17ã¯ãç°ãªããã¬ãŒã ã¬ãŒãã®ã·ãŒã³ã瀺ããŠããŸãã
å³17.å·ŠåŽã®ç»åã§ã¯ãé®ããããªããžã§ã¯ãã®é€å€ãç¡å¹ã«ãªã£ãŠãããå£ã®åŸãã«ãããã¹ãŠã®ãªããžã§ã¯ããæç»ãããŠããããããã¬ãŒã ã¬ãŒãã¯æ¯ç§31ãã¬ãŒã ã§ãã å³åŽã®ç»åã§ã¯ã劚害ããããªããžã§ã¯ãã®é€å€ããªã³ã«ãªããå£ã«åŠšå®³ããããªããžã§ã¯ãã¯æç»ãããªããããé床ã¯æ¯ç§126ãã¬ãŒã ã«å¢å ããŸããã
劚害ããããªããžã§ã¯ãã®é€å€ã¯ãéçºè ãæåã§æ§æããå¿ èŠããããŸãã ã²ãŒã ã®èšèšæã«é害ç©ãé€å€ããããšãå¿ããªãã§ãã ãããããã«ãããæ©åšã®èŠä»¶ãæžããçç£æ§ãåäžããŸãã
詳现ã¬ãã«ïŒLODïŒ
詳现ã¬ãã«ïŒLODïŒã䜿çšããŠã1ã€ã®ã²ãŒã ãªããžã§ã¯ãã«ããŸããŸãªè€éãã®è€æ°ã®ã¢ãã«ãå²ãåœãŠããªããžã§ã¯ããšã«ã¡ã©éã®è·é¢ã«å¿ããŠããããåãæ¿ããããšãã§ããŸãã ããã¯ãã«ã¡ã©ããé ãé¢ããè€éãªã²ãŒã ãªããžã§ã¯ãã®ããã©ãŒãã³ã¹ã®ç¹ã§æçã§ãã 詳现ã¬ãã«ã䜿çšãããšãã¢ãã«ãèªåçã«ç°¡çŽ åã§ããŸãã 詳现ã¬ãã«ã®äœ¿çšãšèšå®ã®è©³çŽ°ã«ã€ããŠã¯ãUnityã®ããã¥ã¡ã³ããåç §ããŠãã ããã ãªã³ã¯ã¯åç §ã»ã¯ã·ã§ã³ã«ãããŸãã
詳现ã¬ãã«ãå€æŽãããšãã«ããã©ãŒãã³ã¹ã®åäžããã¹ãããããã«ã3ã€ã®ç°ãªãã¢ãã«ãå²ãåœãŠããã家ã®ã°ã«ãŒãã§ã·ãŒã³ãäœæããŸããã ã«ã¡ã©ãåãå Žæã«é 眮ããåŸãæãè€éãªã¢ãã«ã䜿çšããŠå®¶ã§ã·ãŒã³ã®ãã¬ãŒã ã¬ãŒãã枬å®ããŸããã 次ã«ã詳现è·é¢ãå€æŽããŠè©³çŽ°åºŠã®äœãã¢ãã«ã䜿çšããå床枬å®ãè¡ããŸããã 3ã€ã®ã¬ãã«ã®ã¢ãã«ã«å¯ŸããŠãã®æé ãå®è¡ããåŸãããããŒã¿ãè¡š5ã«èšé²ããŸããã
å³ å³18ã19ã20ã§ã¯ãã¢ãã«ã®è€éãã®3ã€ã®ç°ãªãã¬ãã«ããåã¢ãã«ã®ããªãŽã³ãšé ç¹ã®æ°ãšãšãã«ç€ºãããŠããŸãã
ããŸããŸãªè©³çŽ°ã¬ãã«ãåãæ¿ããŠãæ¯èŒã®ããã«ãã¬ãŒã ã¬ãŒãã枬å®ããŸããïŒè¡š7ïŒã
è¡š7.ããŸããŸãªè©³çŽ°ã¬ãã«ã§ã®ãã¬ãŒã ã¬ãŒãã®æ¯èŒ
è¡š7ã¯ãããŸããŸãªè©³çŽ°ã¬ãã«ãèšå®ããŠäœ¿çšããå Žåã®ããã©ãŒãã³ã¹ã®åäžã瀺ããŠããŸãã è€é床ã®äœãã¢ãã«ã«åãæ¿ãããšããã¬ãŒã ã¬ãŒããå€§å¹ ã«å¢å ããŸãã ãã ããããã«ãããåãªããžã§ã¯ãã®è€æ°ã®ã¢ãã«ãäœæããå¿ èŠãããã¢ãŒãã£ã¹ãã®äœæ¥éãå¢å ããŸãã ã²ãŒã ã®èšèšè ã¯ãããã©ãŒãã³ã¹ãåäžãããããã«ãè¿œå ã®ã¢ãã«ã®æç»ã«è¿œå ã®æéãè²»ããå¿ èŠããããã©ãããèªåã§æ±ºå®ããå¿ èŠããããŸãã
ãããåŠç
é床ã®ã¬ã³ããªã³ã°åŒã³åºãã¯ãéå°ãªCPU䜿çšçãšããã©ãŒãã³ã¹äœäžã«ã€ãªããå¯èœæ§ããããŸãã ç»é¢äžã®ãªããžã§ã¯ããå€ãã»ã©ãããå€ãã®ã¬ã³ããªã³ã°åŒã³åºããå¿ èŠã«ãªããŸãã Unityã¯ããããããããåŠçããµããŒãããŠããŸããããã«ããã1åã®ã¬ã³ããªã³ã°åŒã³åºãã§è€æ°ã®ã²ãŒã ãªããžã§ã¯ããé 眮ã§ããŸãã éçãããåŠçã¯éçãªããžã§ã¯ãã察象ãšããŠãããåç-移åãªããžã§ã¯ãã察象ãšããŠããŸãã ãã¹ãŠã®èŠä»¶ãæºãããããšåçãããåŠçãèªåçã«å®è¡ããïŒãããåŠçã«é¢ããããã¥ã¡ã³ããåç §ïŒãéçãããåŠçã¯æåã§èšå®ããå¿ èŠããããŸãã
åçãããåŠçãšéçãããåŠçã®äž¡æ¹ã®ãªããžã§ã¯ãã®å ±åã¬ã³ããªã³ã°ã«ã¯ãç¹å®ã®èŠä»¶ããããŸãã ãããã®èŠä»¶ã¯ãã¹ãŠãåç §ã»ã¯ã·ã§ã³ã§åç §ãããŠãããããåŠçããã¥ã¡ã³ãã«ãªã¹ããããŠããŸãã
éçãããåŠçäžã®ããã©ãŒãã³ã¹ã²ã€ã³ããã¹ãããããã«ãé£è¡æ©ã®åœ¢ãããè€éãªã²ãŒã ãªããžã§ã¯ããå«ãã·ãŒã³ãäœæãïŒå³21ïŒããããåŠçã®ããå Žåãšãªãå Žåã®ãã¬ãŒã ã¬ãŒãã枬å®ããŸããïŒè¡š8ïŒã
å³21.éåžžã«è€éãªé£è¡æ©ã¢ãã«ã䜿çšãããã¹ãã·ãŒã³ã®éçãããåŠç
è¡š8.éçãããåŠçãæå¹ãªå Žåãšç¡å¹ãªå Žåã®äººå¡ã®é床ãšã¬ã³ããªã³ã°åŒã³åºãã®æ°ã®éãïŒå³21ïŒ
Unityã¯ãåçãšéçã®2çš®é¡ã®ãããåŠçããµããŒãããŠããŸãã ãããåŠçãæ倧éã«æŽ»çšããã«ã¯ãã§ããã ãå€ãã®ãªããžã§ã¯ãã1ã€ã®ã¬ã³ããŒåŒã³åºãã®ãããã«çµåããŠã¿ãŠãã ããã ã©ã®ãªããžã§ã¯ããåçãŸãã¯éçãããåŠçã«é©ããŠãããã«ã€ããŠã¯ãUnityã®ããã¥ã¡ã³ããåç §ããŠãã ããã
ãããã«
Unityã§ã¯ããããžã§ã¯ãã®äœæ¥ãç°¡åã«éå§ã§ããŸãããããã§ãç°¡åã«ãã¢ããªã±ãŒã·ã§ã³ã®ããã©ãŒãã³ã¹ãäžååã«ãªãå¯èœæ§ããããŸãã Unityã¯ãã²ãŒã ã§ã¹ã ãŒãºãªã°ã©ãã£ãã¯ã¹ãå®çŸããããã®å€ãã®èšå®ãšããŒã«ããµããŒãããŠããŸããããããã®ããŒã«ã®ãã¹ãŠã䟿å©ã«æ§æãããçŽæçã§ã¯ãããŸããã ããã«ãUnityã®äžéšã®èšå®ã¯ãæå¹ã«ããã誀ã£ãŠäœ¿çšããããããšãã²ãŒã ã®ããã©ãŒãã³ã¹ã«æªåœ±é¿ãäžããå¯èœæ§ããããŸãã Unityã䜿çšããŠéçºããå Žåãäºåã«èšç»ãæºåããããšãéèŠã§ããäžéšã®ããã©ãŒãã³ã¹é¢é£æ©èœã¯æåæ§æãå¿ èŠãšãããããäºåã«èšç»ããªããšïŒãããžã§ã¯ãã®äœææïŒã¯ããã«å°é£ã«ãªãå¯èœæ§ãããããã§ãã
ãããã¯ã«é¢ããè¿œå è³æ
å ã®èšäºïŒUnityã§æé©åãèšç»ããæ¹æ³*
å質ææž
å質èšå®çšã®ã¹ã¯ãªããã£ã³ã°API
Boot Campãã¯ãã«ã«ãã¢
詳现ã¬ãã«ã®ããã¥ã¡ã³ã
é衚瀺ã®ããŒãé€å€ããã¥ã¡ã³ã
ãããåŠçããã¥ã¡ã³ã
ã¬ã³ããªã³ã°ãã¹ã®ããã¥ã¡ã³ã
Intel GPA
Unityãžã®ãã«ãã¿ããå ¥åãµããŒãã®è¿œå * Microsoft Windowsçšã²ãŒã * 7ããã³ã¯ã©ã·ãã¯Windows * 8ã€ã³ã¿ãŒãã§ã€ã¹
TouchScriptã©ã€ãã©ãªã䜿çšããŠUnity * 3Dã§ãžã§ã¹ãã£ã·ãŒã±ã³ã¹ãå®è£ ãã
ã¿ãããžã§ã¹ãã£ã䜿çšããŠUnity * 3Dã®ç©çèšå®ãTouchScriptã§å¶åŸ¡ãã
æšæºã®Unity * 3D GUIãTouchScriptãªãœãŒã¹ãšçµã¿åãããŠäœ¿çšââãã