2017-02-01ãã1ã¶æéã®è¨äºä¸è¦§
æå·åå¯¾å¿ ãã¤ããªä¿åå¯¾å¿ PlayerPrefsã¨åããããªä½¿ãæ¹ã§ç¬èªã¯ã©ã¹ãã»ã¼ãã§ããæ©è½å®è£ ãUnityããã»ã¼ãããJsonã | UnityéçºTips ä¸è¨ã®ã©ã¤ãã©ãªããã¹ãä¸ãã¹ãç¨ã®ãµã³ãã«ã«ãã¼ã¿ã®åé¤ã追å ãã¦åé¤ããããç¢ºèª //ã»ã¼ããã¼ã¿ // Sâ¦
qiita.comä¸è¨ã§å ¬éããã¦ããUnityTexturePaintã試ãã¦ã¿ãã SDã¦ããã£ã¡ããã«ãã¤ã³ããã¦ããç»åããã£ããã§ãSkinnedMeshã«ã対å¿ãã¦ãã®ããªï¼ã¨æã£ããã§ããã DynamicCanvasã®ä»æ§ã¯meshåæã®æ¨¡æ§ï¼ã¨ããããmeshã§è©¦ãã¦ã¿ã¾ããããmesâ¦
å è£ ããããã¹ã®3Dãã¼ã¿ãç¡æã§ãã¦ã³ãã¼ãã§ããã®ã§ãèµ°ããã¦ã¿ã¾ããã ãã ãå ãobjãã¡ã¤ã«ã§ãUnityã«ã¯importã¯ã§ãããã§ããããããªã¢ã«ãç¡ãç¶æ ããã¯ã¹ãã£ã¯ããã®ã§è²¼ãã°ãã¹ã®çµµã«ã¯ãªããã§ããã çªãå¥ãããªã¢ã«ã«ãªã£ã¦ãªãã®â¦
å ¬éä¸ã®å¤§å¯è±ªã²ã¼ã ã§é£ç¶ã§å¤§å¯è±ªã«ãªãã¨ã³ã³ãæ°ãæ´æ°ãã¦ãã¾ããããã®æ å ±ã¯ãµã¼ãã¼ã«éä¿¡ãã¦ãã¾ãã ãã°ããä½ããã£ã¦ãªãã®ã§ãé£ç¶ã³ã³ãæ°ã©ã³ãã³ã°ããã£ã¦ãã³å ¥ãããããã¨æãã¾ããæ常çãªã©ã³ãã³ã°ã«ããã¨ãä¸ä½ãã¾ã£ããåãâ¦
ã·ã¥ã¼ãºããã«ã¼ã1ãããã¯ï¼ã¤ã¾ã§ã ã£ãã®ã§ãï¼ã¯ã©ã¹8人ã«ãã¾ããã æ ¡èã®é½åã§æ室ã¯ï¼ã¤ãããªãã®ã§ã6çµã¾ã§ã é¨æ´»ã®çæ¿ãç¨ã«ããã«ã¼å®¤ãä½ããããã©ã48åãããã«ã¼ã並ã¹ãä½æ¥ã¯ãããããªãã®ã§ã editoræ¡å¼µã§ä¸¦ã¹ã¾ãããããããâ¦
ããã¹é¨ã®é¨å¡ãçæ¿ãã¦ããã¨ãã«ãããã«ã¼ã®ä¸ã«å ¥ã£ã¦éãã§ãããã ãã®ã¾ã¾ããã«ã¼ã®æãéãããã¦åºãããªããªã£ãä¼è¤ã¨ããï¼ä¸»äººå ¬ï¼ ãã®ã¾ã¾ã ã¨ç©ºè ¹ã¨å°¿æã®ãã©ã¡ã¼ã¿ã¼ãä¸æãã¦ããé¨æ´»ãçµãã£ããã¾ãããã«ã¼ã«çæ¿ãã«æ»ã£ã¦ããâ¦
Buy ColdDrinkãé¸ã¶ã¨ã³ã¼ã©ã¼ããããã転ããã®ã§ PickUpã§ã¤ããã¨å³æã«ã³ã¼ã©ãæã¦ãã³ã¼ã©ã¯Dropãããæãããã¨ãã§ããããã¾ã 飲ããã¨ã¯ã§ããªã(´・Ïï½¥ï½) Swingãã§ããããæ»æç¨ã®ã¹ã¯ãªãããaddãã¦ãªãã®ã§å½ãã£ã¦ããã¼ãã¡ã¼ã¸ã ã³ã¼â¦
ã¸ã£ã³ãã¨ããããé£è¡ã¢ã¼ã( ï¾Ðï¾) ãã«ã®ä¸ã«è¡ããããã«ãªã£ãã é£ã°ãæã«å½¹ã«ç«ã¤ã®ãQueryã¡ããã®é£è¡ã¢ã¼ã·ã§ã³( ï¾Ðï¾) æ©è¡æã¯ãã¬ã¤ã¤ã¼ãNavMeshAgentãªã®ã§ãæ®éã«transform.positonãæ´æ°ããã ãNavMeshã®é害ç©ãçªãæããªãã§ç§»åã§ãâ¦
ãã¢ã®èªåéé å身çæ ãã©ãã°ä¸ã®æ»ä½ãæããå¦ç ã«ã¡ã©ç¨ã®ããªã¬ã¼ãæ ¡èå ã§ãã¡ãã¡è¨å® å£ã®ä¸å ·åãèª¿æ´ ç¾å¨ãã¸ã£ã³ãæ©è½ãä½ã£ã¦ã¾ãããããããªããªãæãããã navMeshãåãã¤ã¤ãçå°å¤å®ããã¤ã¤ãé£ã°ãã¤ã¤ããã¿ã³æ¼ãã¦ãªããªãâ¦
KUMAGAMESããã®Tweetããçå¾ã¯å ¨ã¦å ±éã§ï¼¡ï¼©ã¯ãããªæãã¤ã³ãã¬ã·ãã¥ã¬ã¼ã¿ã¯åå¥ã«ä½ã£ã¦ããããããããã°ãæããããã¨ã«ãªã pic.twitter.com/4i1mpkyOPBâ SUGIKAMI@KUMAGAMES (@sugikami1982) 2017å¹´2æ17æ¥YandereSimulatorã®AIã¯ãã¹ãã¼ããâ¦
ã¨ããã³ãåãåºãã¦meshã¨ãã¦ä¿åãã段éã§ããã¨ãã¨æã£ã¦ãããã¼ã³ã¨ã®éã¿ã¥ãã¯å¤±ããã¦ããã ãªãã°ãã¨ããã³ã®åé ç¹ããä¸çªè¿ãéã¿ã¥ãããã£ã¦ããé ç¹ãæ¢ãã¦ããã®éã¿ã¥ããã³ãã¼ããã° ã¨ããã³ã¯ã身ä½ã®åãã«å¿ãã¦æ²ããããã«â¦
ã¤ã³ãã¬ã¡ããã«ã¨ããã³ãåæãããã¨ã®ãã¼ã³éã¿ã¥ãã®ç¶æ ã調ã¹ã¦ã¿ããã¨ããã³åæåã¯é ç¹æ°6085ã®meshï¼é«ªã®æ¯ãåé¤ãã¦ããã®ã§ãã®åãæ¨æºHã¢ãã«ããå°ãªãï¼ã¨ããã³åæå¾ã¯ã6327é ç¹ã«å¢ãã ã¨ããã³meshèªä½ã¯241é ç¹ãªã®ã§ãä¸åº¦ã¨ãâ¦
ãã¯ã¹ãã£ãã¾ã¨ãã使ãæ¹ããã£ã¨ããã£ããmenuããbake atlasãé¸ãã ããã¾ã¨ããããããªã¢ã«ãç»åã§ã¯ãªããå·¦å´ã®å¤§ããªæ ãD&Dãã¦ããã°ããããåé層ã«ãªã£ã¦ãããããã£ã¯ã¯è¦ªã«æºããç¶æ ã«ãªã£ã¦ãããªã¢ã«ãï¼ããï¼ã«ã¾ã¨ã¾ãã ããã«â¦
ã¤ã³ãã¬ã¡ããã»ã¼ã©ã¼æã«ãã¨ããã³ã ãã®ã¡ãã·ã¥ãé ç½®ãã¦ãSimpleLODã§ãã¼ã¸ã¦ã¿ã¾ãããããããã«ä¸ã¤ã®meshã«ãªãã¾ããããAnimatorã§åããã¨ãã¨ããã³ã¯ãã¼ã³ã¨éã¿ã¥ããããªãã®ã§ã ã¨ããã³ã ãåãæ®ãããå½¢ã§åãã¾ããã æåéããâ¦
ã¢ã»ããã®ãã¼ã«ã¯ã¾ã è²·ã£ã¦ãªãã®ã§èªä½ãã¼ã«ï¼ãã¥ã¼ãã¨é常é段ã¨å¦æ ¡å»ä¸ã¢ã»ããã®ã¿ã¤ã«ãã¯ã¹ãã£ï¼ ãã¼ã«ã¨ãªã¢ã«å ¥ãã¨èªåçã«ã¹ã¯æ°´ã«åãæ¿ããï¼LODããã£ã¦ããï¼ NavMeshã®OffLinkã§é£ã³éããããã¨ãè²ã ã¨æ¹æ³ã¯ããã¨æãã¾ãããæ°´â¦
SimpleLODã§1éå£ã2éå£ãåæ室ãå±ä¸å£ã¿ãããªåä½ã§ã¡ãã·ã¥ãã¾ã¨ãã¦ãã¾ãã ãããã§SetPassCallãDrawCallãæ¸å°ãã¾ããï¼é ç¹æ°ã¯å¢ãã¾ãããï¼ åæã«OcculusionCullingãè¨å®ãã¦ã¾ãã®ã§ãæ室ã«å ¥ã£ã¦ããã¨ãä»ã®æ室ã¯ãã£ããã¬ã³ããªã³â¦
åããã¨ã StatusText2.text = "ããªãã®è©å¤" + TotalEval.ToString("0.0") + "(å¹³å" + AVGEval.ToString("0.0") + ")";ã¨æ¸ãã¨DeepProfilerã§è¦ãã¨ãGCãUpdate()æ¯ã«ã§0.9KBãããçãã¦ããã© StatusText2.text = String.Format("ããªãã®è©å¤{0:f1}â¦
Hã¢ãã«ã¯ããã¼ã³ä»ãã®ç¼çãå ¥ã£ã¦ããã®ã§ãç³ã®é¨åã®ãã¯ã¹ãã£ã ããå¥éç¨æãã¦ãé¡ã®ãã¯ã¹ãã£ã¨Shaderã§åæã§ããããã«ããã ç³è²ã®åºæ¬è²ãç°è²ã«ããã®ã§ãShaderã§ç³è²ãæå®ããã°ãçè²ãã¦è¡¨ç¤ºãã¦ãããã髪ã®æ¯ããã¯ã¹ãã£ãç°è²ã«â¦
ã¤ã³ãã¬ã¡ããHã¢ãã«100ä½è¡¨ç¤ºã1ä½ãããBaches1 ãã®ã¸ããéçãªã®ããªãSkinnedMeshã§ãã以ä¸ã¯ã¾ã¨ããããªãã¯ãã ãããã¨ãã¨Face Hair Cloth Skinã¨subMeshã4ã¤ããã®ã§ãdrawCallã¯1ä½ããã4çºçãã submeshãçµ±åãã¦ããã¯ã¹ãã£ãã¾ã¨ãâ¦
SimpleLODã£ã¦ããªã´ã³ã¡ãã·ã¥ãåæ¸ãããã¾ã¨ãããã§ããã¢ã»ãããè²·ãã¾ããããã¯ã¹ãã£ã¢ãã©ã¹ã«ã対å¿ãã¦ã¾ãã MeshBakerFreeã§ãã¾ã¨ããã®ã¯ã§ãããã©ãããªã´ã³åæ¸ã¯ã§ããªãã®ã§ã Simplygenã£ã¦å人ã¯ããªã¼ã§ä½¿ããã½ãããããã®ã§è©¦ãâ¦
meshBakeãªã+Occlusionãªã meshBakeãªã+Occlusionãã meshBakeãã+Occlusionãªã meshBakeãã+Occlusionãã SkyBoxãåã£ããSetPassCall1ã« éãããã«ã¯ãããMeshãã¾ã¨ãããããªãã ã¨ãããã¨ã§ãMeshBakerã®ããªã¼çã試ãã¦ã¿ããææçã¯$5â¦
ç»åã¯ä¸ååã¯ãã¹ããã§åä½ã®ãªã¢ã¼ããããã¡ã¤ãªã³ã°ãä¸ååã¯ãPCã§å®è¡ããã¨ãã®ã²ã¼ã ç»é¢ã PCã ã¨XGA解å度ã§70FPSãããã¯åºã¦ããã ä¸æ¹ãAndroidã¹ããã§ã¯13fpsãããã解å度ã800x600ç¨åº¦ã®SVGAã¾ã§è½ã¨ãã¦ã ãã¨å¦æ ¡ã®å¨ãã®çºã¯ç¡ãâ¦
å¦æ ¡ã·ãã¥ã¬ã¼ã¿ã¼ãã ãããã§ãã¦ããã®ã§ãå ¬éã®ããã«é度ãã¥ã¼ãã³ã°ä¸ã§ãã DeepProfilerã§ã¹ã¯ãªããã®é度ãã¥ã¼ãã³ã°ããã£ã¦ãã¾ããã¾ããã£ãã®ã¯1fpsæ¯ã«ããå¿ è¦ã®ãªãå¦çã0.3ç§æ¯ã¨ããå®è¡åæ°èªä½ãæ¸ãããã¨ã§ããã åæç¶æ ã§ã¯â¦
ä»å¾ããã¼ã³ã·ã§ã¼ãã¼ãä¸å¿ã«ä½¿ã£ã¦ããããã®ã§åå¼·ä¸ãªãã§ããã 漫ç»ã«ã¯ãã³å ¥ãã¨ããæåããã£ã¦ããã¸ã¿ã«ã®ä¸çã®ã§ããã³ã®å ¥ãã¨æãã¨ãã§ãçµµã®é°å²æ°ãããã¶ãéãã ãã ãã3DCGã®ä¸çã§ãã³å ¥ããèããã¨ã©ããªãã ããï¼ æ¢åã®Toonâ¦
ã¡ã¬ããªãã·ã§ã³å¯¾å¿ å髪ã®å·¦å³å転ã«å¯¾å¿ ãã¨å çä½ãã¾ãããã«ã¸ã¥ã¢ã«010ã®è¡£è£ ã§ããµã¤ãé»ç®ã»è¶è²é«ªã»ã¡ã¬ãããã æ¬å®¶ã®YandereSimulatorã ã¨ãå çã¯å¾ãã«ãå£åã§é«ªãçµãã¦ã¾ãããBoneæ§é ã®å¤åã«ã対å¿ãã¦RagDollåãã§ããããã«ãªã£ãâ¦
ã¤ã³ãã¬ã¡ããä»å±ã®ToonShaderã®Toon/Cutoffãæ¹é ãã¦ãã«ã¼ã«ç»åã¨åæã§ããããã«ãã¦ã¿ã¾ããããã³ãã³ã³ã¢ã³ãºã®è¡ãã¶ãã¨åæããçµæ ã«ã©ã¼ããã«ã¼ç»åã¨åæããçµæ UV空éã§ãããã³ã°ãã¦åæãã¦ããã®ã§ããã¨ãã¨ã®æã®ãã¯ã¹ãã£ã®UVâ¦
髪åã®ã©ã³ãã è¨å®ã¨ã髪è²ã®ã©ã³ãã è¨å®ã¨ãç³è²ã®ã©ã³ãã è¨å®ã§ããï¼ ããmaterialä½ãã¾ãã(´・Ïï½¥ï½) æ¢åã®ãã¤ãè¤è£½ã§ããããã«ãã¦ã»ããã ä»ã®ã¨ããã髪åã¯ãå髪ãäºç¨®é¡ãå¾ã髪ã¯ï¼ç¨®ããããã¼ã«ã¯ããã³ã°ãããã«ãããã§ãããããå¾â¦
ã¯ããã¦Blenderã§ãã¼ã³å ¥ããã£ã¦ã¿ã¾ããã ããã¦ãã¯ããã¦UVå±éã§ãã¯ã¹ãã£ä½ã£ã¦ã¿ã¾ãã( ï¾Ðï¾)ããã¼ãã¼ã«ã®ã¡ãã·ã¥èªä½ã¯ã¢ãåããã®ãã£ã©ããã®æµç¨ã ã¹ããªã³ã°ãã¼ã³å ¥ããããã¼ãã¼ã«ãå¯çç£ã¿ãããªåãã«ãªã£ã¦ãã。・ï¾ï½¥(ï¾â`)ï½¥ï¾ï½¥ï½¡ ã¡â¦
ããç®ã§ãå£å ã®å£è§ãä¸ãã£ã¦ãããã¯ã¹ãã£ãä½æã ãã¨ã髪ã®ãã¯ã¹ãã£ã¯ã¢ãã¯ãå¤æãã¦ãç°è²ã«ãã¾ããã ãã®æ¹ããshaderã§ã¡ã¤ã³è²ãæå®ãã¦å¤åãããããã æ¬å½ã¯ç³ã®è²ãåºæ¬ãç°è²ã«ãã¦ãshaderã§è²æå®ããããã©ã ç¾ç¶ãèã¨ç³ãåâ¦
ä¸éã·ã¹ã¿ã¼ãºã®é·ºå®®ãªãã®é«ªãæã£ã¦ããã å髪ã¨å¾ã髪ã§ãªãã¸ã§ã¯ããåããã®ã§ãããããå¥ã®é«ªã¨çµã¿åããã§ããããã«ãããã¨æãã ã¤ã³ãã¬ã¡ããã®é«ªãåã¨å¾ãã«åããããBlenderã§ãã³ã³ããã¼ã«ï¼ãã©ãã°ã§ã髪ã®ä¸é¨ãé ç¹é¸æãã¦ãã³â¦