{"id":1712,"date":"2015-12-11T10:50:01","date_gmt":"2015-12-11T02:50:01","guid":{"rendered":"http:\/\/blog.1vr.cn\/?p=1712"},"modified":"2015-12-11T10:50:01","modified_gmt":"2015-12-11T02:50:01","slug":"unity%e5%bc%80%e5%8f%91vr%e7%9c%bc%e9%95%9c%e4%b8%ad%e6%96%87%e5%85%a5%e9%97%a8%e6%95%99%e7%a8%8b7","status":"publish","type":"post","link":"https:\/\/1vr.cn\/?p=1712","title":{"rendered":"UNITY\u5f00\u53d1VR\u773c\u955c\u4e2d\u6587\u5165\u95e8\u6559\u7a0b(7)"},"content":{"rendered":"<h1>\u4f18\u5316Unity\u4e2d\u7684VR<\/h1>\n<p>&nbsp;<\/p>\n<h2>\u7b80\u4ecb<\/h2>\n<p>&nbsp;<\/p>\n<p>\u4e3a\u786e\u4fdd\u7528\u6237\u6709\u6781\u68d2,\u65e0\u6076\u5fc3\u7684\u865a\u62df\u73b0\u5b9e\u4f53\u9a8c,\u800c\u8fbe\u5230\u63a8\u8350\u5e27\u7387,\u4f18\u5316\u662f\u5f88\u5173\u952e\u7684\u4e00\u4e2a\u90e8\u5206.\u56e0\u4e3a\u73b0\u5728VR\u786c\u4ef6\u521a\u521a\u8d77\u6b65,\u6240\u4ee5\u8981\u5c3d\u53ef\u80fd\u591a\u7684\u5728\u786c\u4ef6\u8bbe\u5907\u4e0a\u8fdb\u884c\u6d4b\u8bd5.<\/p>\n<p>VR\u76f8\u5bf9\u4e8e\u975eVR\u9879\u76ee\u7684\u4e3b\u8981\u4e0d\u540c\u70b9\u5c31\u662f\u5b83\u8981\u4e3a\u6bcf\u53ea\u773c\u775b\u6e32\u67d3\u4e00\u6b21\u56fe\u50cf,\u5f53\u4f60\u4e86\u89e3\u8fd9\u4e00\u70b9,\u521b\u5efa\u9879\u76ee\u65f6\u56f4\u7ed5\u5b83\u8fdb\u884c\u76f8\u5173\u4f18\u5316\u5c06\u8282\u7701\u5927\u91cf\u7684\u5f00\u53d1\u65f6\u95f4.<\/p>\n<p>\u624b\u673a\u4e0a\u7684\u914d\u7f6e\u8fdc\u6bd4\u4e0d\u4e0a\u684c\u9762\u7ea7\u7535\u8111\u786c\u4ef6,\u6240\u4ee5\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u7684VR\u505a\u4f18\u5316\u662f\u81f3\u5173\u91cd\u8981\u7684.<\/p>\n<p>\u5f53\u7136\u4e0d\u8981\u5fd8\u8bb0\u8981\u5c3d\u53ef\u80fd\u7684\u4f18\u5316\u7a0b\u5e8f\u4ee3\u7801,\u67e5\u770b\u6709\u5173\u4ee3\u7801\u4f18\u5316\u66f4\u8be6\u7ec6\u7684\u6307\u5bfc:\u201ddocs.unity3d.com\/Manual\/MobileOptimizationPracticalScriptingOptimizations.html\u201d.<\/p>\n<h2>OCULUS \u8d44\u6e90<\/h2>\n<p>&nbsp;<\/p>\n<p>\u5728Oculus\u7f51\u7ad9\u4e0a\u6709\u5927\u91cf\u7684\u8d44\u6e90\u6587\u6863,\u975e\u5e38\u503c\u5f97\u4f60\u53bb\u770b:<\/p>\n<p><a href=\"https:\/\/developer.oculus.com\/documentation\/\">https:\/\/developer.oculus.com\/documentation\/<\/a><\/p>\n<p><a href=\"http:\/\/static.oculus.com\/sdk-downloads\/documents\/Oculus_Best_Practices_Guide.pdf\">http:\/\/static.oculus.com\/sdk-downloads\/documents\/Oculus_Best_Practices_Guide.pdf<\/a><\/p>\n<p><a href=\"https:\/\/developer.oculus.com\/blog\/squeezing-performance-out-of-your-unity-gear-vr-game\/\">https:\/\/developer.oculus.com\/blog\/squeezing-performance-out-of-your-unity-gear-vr-game\/<\/a><\/p>\n<p><a href=\"https:\/\/developer.oculus.com\/blog\/squeezing-performance-out-of-your-unity-gear-vr-game-continued\/\">https:\/\/developer.oculus.com\/blog\/squeezing-performance-out-of-your-unity-gear-vr-game-continued\/<\/a><\/p>\n<h2>UNITY \u7f16\u8f91\u5668\u4f18\u5316\u5de5\u5177<\/h2>\n<p>&nbsp;<\/p>\n<p>\u5728Unity\u4e2d\u6709\u4e00\u4e9b\u5f88\u6709\u7528\u7684\u5de5\u5177\u548c\u6280\u672f,\u6709\u52a9\u4e8e\u60a8\u4f18\u5316VR\u6e38\u620f\u5185\u5bb9.<\/p>\n<h3>Profiler<\/h3>\n<p>&nbsp;<\/p>\n<p>Profiler\u53ef\u4ee5\u5e2e\u4f60\u4e86\u89e3\u6bcf\u4e00\u5e27\u6e32\u67d3\u7684\u65f6\u95f4,\u5e76\u4e14\u5c06\u5176\u62c6\u5206\u4e3aCPU,\u6e32\u67d3,\u5185\u5b58,\u97f3\u9891,\u7269\u7406\u548c\u7f51\u683c.\u901a\u8fc7\u4f7f\u7528Profiler\u68c0\u67e5\u6027\u80fd\u6d88\u8017\u4ece\u800c\u9488\u5bf9\u6027\u7684\u4f18\u5316.\u66f4\u591a\u5173\u4e8eProfiler\u7684\u4f7f\u7528\u8bf7\u53c2\u9605\u8fd9\u4e9b\u94fe\u63a5:<\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/Manual\/Profiler.html\">http:\/\/docs.unity3d.com\/Manual\/Profiler.html<\/a><\/p>\n<p><a href=\"http:\/\/unity3d.com\/es\/learn\/tutorials\/modules\/beginner\/live-training-archive\/profiler-overview\">https:\/\/unity3d.com\/learn\/tutorials\/modules\/beginner\/live-training-archive\/profiler-overview<\/a><\/p>\n<p><a href=\"http:\/\/unity3d.com\/es\/learn\/tutorials\/modules\/intermediate\/editor\/intro-to-profiler\">https:\/\/unity3d.com\/learn\/tutorials\/modules\/intermediate\/editor\/intro-to-profiler<\/a><\/p>\n<h3>Frame \u8c03\u8bd5\u5668<\/h3>\n<p>&nbsp;<\/p>\n<p>Frame\u8c03\u8bd5\u5668\u6b65\u8fdb\u5f0f\u7684\u67e5\u770b\u6bcf\u5e27Draw Call,\u770b\u6bcf\u5e27\u662f\u5982\u4f55\u6784\u9020\u51fa\u773c\u524d\u7684\u573a\u666f\u7684,\u786e\u5b9a\u54ea\u4e9b\u53ef\u4ee5\u4f18\u5316,\u54ea\u4e9b\u662f\u4e0d\u9700\u8981\u7684\u4e1c\u897f,\u8fd9\u5c06\u5927\u5927\u6709\u52a9\u4e8e\u51cf\u5c11Draw Call.<\/p>\n<p>\u66f4\u591aFrame \u8c03\u8bd5\u5668\u7684\u4fe1\u606f\u8bf7\u53c2\u9605\u4e0b\u5217\u94fe\u63a5:<\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/Manual\/FrameDebugger.html\">http:\/\/docs.unity3d.com\/Manual\/FrameDebugger.html<\/a><\/p>\n<p><a href=\"http:\/\/unity3d.com\/es\/learn\/tutorials\/modules\/intermediate\/graphics\/frame-debugger\">https:\/\/unity3d.com\/learn\/tutorials\/modules\/intermediate\/graphics\/frame-debugger<\/a><\/p>\n<h3>VR\u4f18\u5316\u539f\u7406<\/h3>\n<p>&nbsp;<\/p>\n<p>\u867d\u7136\u4f18\u5316\u662f\u4e2a\u5de8\u5927\u7684\u95e8\u7c7b,\u6bcf\u4e2a\u5e73\u53f0,\u6bcf\u4e2a\u9700\u6c42\u90fd\u4f1a\u6709\u4e0d\u540c\u7684\u4f18\u5316\u65b9\u6cd5.<\/p>\n<p>\u73b0\u6709\u7684\u4f18\u5316\u6280\u672f\u53ef\u4ee5\u5f88\u597d\u7684\u7528\u4e8eVR\u9879\u76ee\u5f00\u53d1\u4f18\u5316<\/p>\n<p><strong>Geometry<\/strong><\/p>\n<p>\u79fb\u9664VR\u4e2d\u4efb\u4f55\u770b\u4e0d\u5230\u7684\u4e09\u89d2\u5f62,\u6bd4\u5982\u5982\u679c\u7528\u6237\u770b\u4e0d\u5230\u540e\u80cc,\u7eb3\u95f7\u6211\u4eec\u5b8c\u5168\u53ef\u4ee5\u628a\u89d2\u8272\u6a21\u578b\u540e\u80cc\u7684\u4e09\u89d2\u9762\u548c\u8d34\u56fe\u5220\u9664\u4f18\u5316\u6389.\u53e6\u5916\u6839\u636e\u76ee\u6807\u5e73\u53f0,\u8bd5\u7740\u6dfb\u52a0\u4e00\u4e9b\u7ec6\u8282\u7eb9\u7406,\u6bd4\u5982\u89c6\u5dee\u8d34\u56fe\u7b49,\u867d\u7136\u8fd9\u4f1a\u5f71\u54cd\u5230\u6027\u80fd,\u4f46\u662f\u4e5f\u8bb8\u5b83\u975e\u5e38\u9002\u5408\u5728\u7279\u5b9a\u7684\u76ee\u6807\u5e73\u53f0.<\/p>\n<p><strong>Overdraw<\/strong><\/p>\n<p>Overdraw\u89c6\u56fe\u8ba9\u4f60\u53ef\u4ee5\u4e86\u89e3\u4ec0\u4e48\u5bf9\u8c61\u88ab\u7ed8\u5236\u5728\u4e86\u53e6\u4e00\u4e2a\u5bf9\u8c61\u4e0a\u9762,\u8fd9\u79cd\u65e0\u8c13\u7684\u6e32\u67d3\u4f1a\u6d6a\u8d39GPU\u6e32\u67d3\u65f6\u95f4,\u901a\u8fc7\u573a\u666f\u89c6\u56fe\u4e2d(docs.unity3d.com\/Manual\/ViewModes.html)\u5f00\u542fOverdraw\u6a21\u5f0f\u67e5\u770b\u573a\u666f\u4e2d\u7684\u8986\u76d6\u60c5\u51b5.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1670\" src=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/1_overdraw-menu.png\" alt=\"1_overdraw-menu\" width=\"211\" height=\"468\" srcset=\"\/wp-content\/uploads\/2015\/12\/1_overdraw-menu.png 211w, \/wp-content\/uploads\/2015\/12\/1_overdraw-menu-135x300.png 135w\" sizes=\"auto, (max-width: 211px) 100vw, 211px\" \/><\/p>\n<p>\u666e\u901a\u89c6\u56fe\u6a21\u5f0f:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1671\" src=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/2_normal-shaded.png\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/2_normal-shaded-300x176.png 300x, http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/2_normal-shaded.png 700x\" alt=\"2_normal-shaded\" width=\"700\" height=\"410\" \/><\/p>\n<p>Overdraw \u6a21\u5f0f:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1674\" src=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/3_overdraw.png\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/3_overdraw-300x176.png 300x, http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/3_overdraw.png 700x\" alt=\"3_overdraw\" width=\"700\" height=\"411\" \/><\/p>\n<p><strong>Level of Detail<\/strong><\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/Manual\/LevelOfDetail.html\">Level Of Detail (LOD)<\/a>\u00a0\u53ef\u4ee5\u8ba9\u4f60\u6839\u636e\u6a21\u578b\u7269\u4f53\u4e0e\u76f8\u673a\u7684\u8ddd\u79bb\u52a8\u6001\u7684\u5207\u6362\u7269\u4f53\u4e09\u89d2\u5f62\u9762\u6570,\u53ea\u8981\u4f60\u7684\u6a21\u578b\u8ddd\u79bb\u76f8\u673a\u6709\u4e00\u5b9a\u8ddd\u79bb,LOD\u4f1a\u663e\u793a\u4e00\u4e2a\u4f4e\u9762\u6570\u7684\u6a21\u578b\u6765\u51cf\u5c11\u5bf9\u786c\u4ef6\u7684\u8d1f\u8f7d,\u63d0\u5347\u6e32\u67d3\u6027\u80fd.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1673\" src=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/4_lod0.png\" sizes=\"auto, (max-width: 312px) 100vw, 312px\" srcset=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/4_lod0-300x250.png 300x, http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/4_lod0.png 312x\" alt=\"4_lod0\" width=\"312\" height=\"260\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u7528<a href=\"https:\/\/www.assetstore.unity3d.com\/en\/#!\/content\/10144\">Simplygon<\/a>(https:\/\/www.assetstore.unity3d.com\/en\/#!\/content\/10144) \u63d2\u4ef6\u53ef\u4ee5\u81ea\u52a8\u5316\u5904\u7406\u6a21\u578b\u7684LOD.<\/p>\n<p><strong>Draw Call batching<\/strong><\/p>\n<p>\u5c3d\u53ef\u80fd\u7684\u5c06Batch Draw Call,\u4f7f\u7528<\/p>\n<p>Static Batching \u548c Dynamic Batching\u4f1a\u5927\u5927\u63d0\u9ad8\u6027\u80fd.\u8be6\u89c1Unity\u624b\u518c<\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/Manual\/DrawCallBatching.html\">Draw Call Batching<\/a>(<a href=\"http:\/\/docs.unity3d.com\/Manual\/DrawCallBatching.html\">docs.unity3d.com\/Manual\/DrawCallBatching.html<\/a>).<\/p>\n<p><strong>Lightmapping<\/strong><\/p>\n<p>\u51cf\u5c11\u52a8\u6001\u5149\u7167\u4f7f\u7528,\u589e\u52a0\u70d8\u7119\u7167\u660e,\u907f\u514d\u5b9e\u65f6\u5149\u5f71,\u8be6\u89c1<\/p>\n<p><a href=\"https:\/\/twitter.com\/ID_AA_Carmack\/status\/592385473894461441\">avoid realtime shadows<\/a>(https:\/\/twitter.com\/ID_AA_Carmack\/status\/592385473894461441)\u548c\u00a0\u00a0<a href=\"http:\/\/unity3d.com\/es\/learn\/tutorials\/modules\/beginner\/graphics\/lighting-and-rendering\">Lighting and Rendering<\/a>(unity3d.com\/es\/learn\/tutorials\/modules\/beginner\/graphics\/lighting-and-rendering) .<\/p>\n<p><strong>Light Probes<\/strong><\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/Manual\/LightProbes.html\">Light probes<\/a>\u00a0(<a href=\"http:\/\/docs.unity3d.com\/Manual\/LightProbes.html\">docs.unity3d.com\/Manual\/LightProbes.html<\/a>) \u53ef\u4ee5\u8ba9\u70d8\u7119\u5149\u7167\u7684\u573a\u666f\u4e2d\u52a8\u6001\u5bf9\u8c61\u7684\u52a8\u6001\u5149\u7167\u5b9e\u73b0\u51fa\u6765,\u8fd9\u4e2a\u8fd0\u7b97\u5f88\u5feb,\u4f46\u662f\u7ecf\u5e38\u4f1a\u6709\u5f88\u5927\u89c6\u89c9\u6548\u679c\u63d0\u5347.<\/p>\n<p><strong>Reflection Probes<\/strong><\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/Manual\/class-ReflectionProbe.html\">Reflection probes<\/a>\u00a0(<a href=\"http:\/\/docs.unity3d.com\/Manual\/class-ReflectionProbe.html\">docs.unity3d.com\/Manual\/class-ReflectionProbe.html<\/a>) \u4f1a\u6839\u636e\u573a\u666f\u4f4d\u7f6e\u5c06\u73af\u5883\u8d34\u56fe\u5b58\u50a8\u4e8eCubemaps\u4e2d,\u6765\u589e\u52a0\u73af\u5883\u53cd\u5c04\u8d34\u56fe\u7684\u771f\u5b9e\u6027,\u4f46\u662f\u5b9e\u65f6\u53cd\u5c04\u5728VR\u4e2d\u4f1a\u5f88\u6162.<\/p>\n<p><strong>Occlusion Culling<\/strong><\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/Manual\/OcclusionCulling.html\">Occlusion Culling<\/a>\u00a0(<a href=\"http:\/\/docs.unity3d.com\/Manual\/OcclusionCulling.html\">docs.unity3d.com\/Manual\/OcclusionCulling.html<\/a>)\u80fd\u7981\u6b62\u5bf9\u770b\u4e0d\u5230\u7684\u573a\u666f\u6e32\u67d3,\u4f8b\u5982\u4e00\u6247\u95e8\u5173\u95ed\u65f6,\u6211\u4eec\u4e0d\u60f3\u8ba9\u95e8\u90a3\u8fb9\u7684\u53e6\u5916\u623f\u95f4\u6e32\u67d3,\u5c31\u53ef\u4ee5\u4f7f\u7528\u5b83.\u4f7f\u7528\u5b83\u53ef\u4ee5\u663e\u8457\u63d0\u5347\u6027\u80fd.<\/p>\n<p>\u6ca1\u6709\u8fdb\u884c\u906e\u6321\u88c1\u5207\u7684\u793a\u4f8b:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1672\" src=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/6_occlusionfrustumculling.png\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" srcset=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/6_occlusionfrustumculling-300x182.png 300x, http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/6_occlusionfrustumculling.png 650x\" alt=\"6_occlusionfrustumculling\" width=\"650\" height=\"395\" \/><\/p>\n<p>\u4f7f\u7528\u4e86\u906e\u6321\u88c1\u5207\u7684\u793a\u4f8b:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1675\" src=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/7_occlusionfullculling.png\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" srcset=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/7_occlusionfullculling-300x182.png 300x, http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/7_occlusionfullculling.png 650x\" alt=\"7_occlusionfullculling\" width=\"650\" height=\"395\" \/><\/p>\n<p><strong>Anti-Aliasing<\/strong><\/p>\n<p>Anti-Aliasing \u6297\u952f\u9f7f\u5728VR\u4e2d\u662f\u5f88\u6709\u7528\u7684,\u56e0\u4e3a\u5b83\u6709\u52a9\u4e8e\u5e73\u6ed1\u56fe\u50cf,\u51cf\u5c11\u952f\u9f7f\u72b6\u8fb9\u7f18.\u5982\u679c\u4f60\u662f\u7528\u4e86 Forward Rendering, \u4f60\u53ef\u4ee5\u5728\u753b\u8d28\u8bbe\u7f6e\u4e2d\u8d77\u542f\u7528MSAA(<a href=\"http:\/\/docs.unity3d.com\/Manual\/class-QualitySettings.html\">docs.unity3d.com\/Manual\/class-QualitySettings.html<\/a>),\u4f60\u4e5f\u5e94\u8be5\u5728Gear VR\u4e2d\u542f\u7528\u5b83\u6765\u63d0\u5347\u6548\u679c.<\/p>\n<p>\u5728Deferred Rendering\u65f6,\u4f60\u53ef\u4ee5\u7528\u56fe\u50cf\u811a\u672c(<a href=\"http:\/\/docs.unity3d.com\/420\/Documentation\/Components\/script-AntialiasingAsPostEffect.html\">docs.unity3d.com\/420\/Documentation\/Components\/script-AntialiasingAsPostEffect.html<\/a>)\u6216\u770b\u8bba\u575b\u4e0a\u542f\u7528SMAA\u7684\u4f8b\u5b50:\u201dhttps:\/\/github.com\/Chman\/SMAA-Unity\u201d.<\/p>\n<p><strong>Textures<\/strong><\/p>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b,\u53ef\u4ee5\u7528\u00a0\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Texture_atlas\">Texture Atlasing<\/a>\u00a0(<a href=\"https:\/\/en.wikipedia.org\/wiki\/Texture_atlas\">https:\/\/en.wikipedia.org\/wiki\/Texture_atlas<\/a>)\u628a\u573a\u666f\u4e2d\u7684\u8d34\u56fe\u6574\u5408\u8d77\u6765\u4ee5\u5c3d\u53ef\u80fd\u7684\u51cf\u5c11\u6750\u8d28\u7403\u6570\u91cf.<\/p>\n<p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u7528<a href=\"https:\/\/www.assetstore.unity3d.com\/en\/#!\/content\/5017\">MeshBaker<\/a>\u00a0(<a href=\"https:\/\/www.assetstore.unity3d.com\/en\/#!\/content\/5017\">https:\/\/www.assetstore.unity3d.com\/en\/#!\/content\/5017<\/a>)\u7b80\u5316\u52a0\u5feb\u8fd9\u4e00\u4f18\u5316\u8fc7\u7a0b.Meshbaker\u53ef\u4ee5\u7528\u6765\u70d8\u7119\u7eb9\u7406,\u7f51\u683c,\u6750\u8d28\u6765\u4f18\u5316\u6e38\u620f\u6027\u80fd.<\/p>\n<p>\u8be6\u89c1\u4e0b\u9762\u94fe\u63a5:<\/p>\n<p>\u7528MeshBaker\u7684\u89c6\u9891\u6559\u7a0b(<a href=\"https:\/\/www.youtube.com\/watch?v=9vZ8SfXOlpI\">https:\/\/www.youtube.com\/watch?v=9vZ8SfXOlpI<\/a>)<\/p>\n<p>Oculus\u6e32\u67d3\u6587\u6863:(<a href=\"https:\/\/developer.oculus.com\/documentation\/intro-vr\/latest\/concepts\/bp_app_rendering\/\">https:\/\/developer.oculus.com\/documentation\/intro-vr\/latest\/concepts\/bp_app_rendering\/<\/a>)<\/p>\n<p><strong>Shaders<\/strong><\/p>\n<p>\u5c3d\u91cf\u4f7f\u7528Basic\u7740\u8272\u5668,\u5728Gear VR\u4e2d,\u63a8\u8350\u4f7f\u7528\u201d<i>Mobile &gt; Unlit (Supports Lightmap)<\/i>\u00a0shader\u201d.<\/p>\n<p>Fullscreen Effects<\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/Manual\/comp-ImageEffects.html\">Fullscreen effects<\/a>(<a href=\"http:\/\/docs.unity3d.com\/Manual\/comp-ImageEffects.html\">docs.unity3d.com\/Manual\/comp-ImageEffects.html<\/a>)\u662f\u975e\u5e38\u6d88\u8017\u8d44\u6e90\u7684,\u5728GearVR\u4e0a\u8981\u5c3d\u53ef\u80fd\u907f\u514d\u4f7f\u7528.<\/p>\n<p><strong>Quality Settings<\/strong><\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/Manual\/class-QualitySettings.html\">Quality Settings<\/a>(<a href=\"http:\/\/docs.unity3d.com\/Manual\/class-QualitySettings.html\">docs.unity3d.com\/Manual\/class-QualitySettings.html<\/a>)\u51b3\u5b9a\u9879\u76ee\u4e2d\u753b\u8d28\u7684\u5404\u4e2a\u65b9\u9762,\u6539\u53d8\u8fd9\u4e9b\u5c5e\u6027\u53ef\u4ee5\u63d0\u9ad8\u6e38\u620f\u6027\u80fd,\u4f46\u662f\u4f1a\u727a\u7272\u89c6\u89c9\u6548\u679c.<\/p>\n<p><strong>RenderScale<\/strong><\/p>\n<p><a href=\"http:\/\/docs.unity3d.com\/ScriptReference\/VR.VRSettings-renderScale.html\">VRSettings.renderScale<\/a>(<a href=\"http:\/\/docs.unity3d.com\/ScriptReference\/VR.VRSettings-renderScale.html\">docs.unity3d.com\/ScriptReference\/VR.VRSettings-renderScale.html<\/a>)\u6e32\u67d3\u6bd4\u5c06\u6539\u53d8\u56fe\u50cf\u9510\u5ea6,\u53ef\u4ee5\u7528\u6765\u63d0\u9ad8\u753b\u8d28\u6216\u8005\u964d\u4f4e\u753b\u8d28\u63d0\u5347\u5e27\u7387.<\/p>\n<p><strong>Asynchronous Loading<\/strong><\/p>\n<p>\u5982\u679c\u628a\u6e38\u620f\u62c6\u5206\u6210\u82e5\u5e72\u4e2a\u5355\u72ec\u7684\u573a\u666f,\u5728\u52a0\u8f7d\u65f6,\u4e3a\u4e86\u907f\u514d\u753b\u9762\u51bb\u7ed3\u5bfc\u81f4\u6076\u5fc3\u4e0d\u9002\u611f,\u5efa\u8bae\u4f7f\u7528\u5f02\u6b65\u52a0\u8f7d\u6765\u8f7d\u5165\u4e0b\u4e00\u4e2a\u573a\u666f\u6570\u636e:<a href=\"http:\/\/docs.unity3d.com\/ScriptReference\/SceneManagement.SceneManager.LoadSceneAsync.html\">SceneManager.LoadSceneAsync<\/a>(<a href=\"http:\/\/docs.unity3d.com\/ScriptReference\/SceneManagement.SceneManager.LoadSceneAsync.html\">docs.unity3d.com\/ScriptReference\/SceneManagement.SceneManager.LoadSceneAsync.html<\/a>)<\/p>\n<h2>VR\u793a\u4f8b\u4e2d\u7684\u4f18\u5316\u6280\u672f<\/h2>\n<p>&nbsp;<\/p>\n<p>\u6211\u4eec\u5728\u793a\u4f8b\u9879\u76ee\u4e2d\u505a\u4e86\u4e00\u4e9b\u5217\u4f18\u5316\u786e\u4fdd\u793a\u4f8b\u9879\u76ee\u5728GearVR\u548cDK2\u4e0a\u90fd\u80fd\u6709\u5f88\u597d\u7684\u6027\u80fd.\u6211\u4eec\u9009\u7528\u4e86\u4e00\u79cd\u4f4e\u9762\u827a\u672f\u98ce\u683c,\u5e76\u53ea\u4f7f\u7528\u4e86\u51e0\u4e2a\u57fa\u672c\u989c\u8272,\u4f7f\u5f97\u9879\u76ee\u80fd\u5f88\u6d41\u7545\u6709\u5f88\u7f8e\u4e3d.<\/p>\n<p>\u6211\u4eec\u4f7f\u7528\u4e86Forward Rendering,\u5e76\u5728<i>Edit &gt; Project Settings &gt;\u00a0<\/i><a href=\"http:\/\/docs.unity3d.com\/Manual\/class-QualitySettings.html\"><i>Quality Settings<\/i><\/a>\u00a0\u542f\u7528\u4e864x MSAA.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1676\" src=\"http:\/\/blog.1vr.cn\/wp-content\/uploads\/2015\/12\/8_msaa-qualitysettings.png\" alt=\"8_msaa-qualitysettings\" width=\"488\" height=\"745\" srcset=\"\/wp-content\/uploads\/2015\/12\/8_msaa-qualitysettings.png 488w, \/wp-content\/uploads\/2015\/12\/8_msaa-qualitysettings-197x300.png 197w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/p>\n<p>\u8ba9\u6211\u4eec\u5feb\u901f\u7684\u770b\u4e00\u4e0b\u573a\u666f\u4e2d\u7528\u5230\u7684\u4f18\u5316\u6280\u672f:<\/p>\n<p><strong>Menu \u573a\u666f\u4f18\u5316<\/strong><\/p>\n<p>\u573a\u666f\u4e2d\u6211\u4eec\u4f7f\u7528\u4f4e\u6a21\u8d44\u6e90,\u6ca1\u6709\u7528\u5b9e\u65f6\u5149\u7167,\u7ed9\u83dc\u5355\u9762\u677f\u7528\u4e86\u540d\u4e3a<i>SeparableAlpha<\/i>\u7684\u81ea\u5b9a\u4e49\u7740\u8272\u5668,\u5b83\u5141\u8bb8\u5355\u72ec\u8bbe\u7f6e\u900f\u660e\u901a\u9053,\u907f\u514d\u6bcf\u4e00\u5e27\u90fd\u7528\u8fd9\u4e2a\u83dc\u5355\u81ea\u5df1\u7684\u900f\u660e\u901a\u9053,\u51cf\u5c11\u4e86\u8d34\u56fe\u6587\u4ef6\u5927\u5c0f.<\/p>\n<p><strong>Flyer\u573a\u666f\u4f18\u5316<\/strong><\/p>\n<p>\u6211\u4eec\u4f7f\u7528\u4e86\u96fe\u6548\u786e\u4fdd\u5c0f\u884c\u661f\u7b49\u7269\u4f53\u5f88\u878d\u5408\u7684\u8fdb\u5165\u5230\u573a\u666f,\u5e76\u7f29\u77ed\u4e86\u89c6\u8ddd,\u51cf\u5c11\u4e86\u6e32\u67d3\u7269\u4f53\u6570\u91cf.\u5c0f\u884c\u661f\u7528\u4e86\u5f88\u5c11\u7684\u9762,\u6240\u4ee5\u5b83\u53ef\u4ee5\u7528\u00a0<a href=\"http:\/\/docs.unity3d.com\/Manual\/DrawCallBatching.html\">Dynamic Batching<\/a>,\u540c\u6837\u4e5f\u521b\u5efa\u4e86\u4e00\u4e2a\u5bf9\u8c61\u6c60(<a href=\"http:\/\/unity3d.com\/es\/learn\/tutorials\/modules\/beginner\/live-training-archive\/object-pooling\">unity3d.com\/es\/learn\/tutorials\/modules\/beginner\/live-training-archive\/object-pooling<\/a>)\u5904\u7406\u6fc0\u5149,\u5c0f\u884c\u661f\u7269\u4f53\u548c\u5706\u73af,\u51cf\u5c11\u8f83\u8017\u8d39\u8d44\u6e90\u7684\u5b9e\u4f8b\u5316(<a href=\"http:\/\/docs.unity3d.com\/ScriptReference\/Object.Instantiate.html\">docs.unity3d.com\/ScriptReference\/Object.Instantiate.html<\/a>)\u7684\u4f7f\u7528.<\/p>\n<p>\u5728\u98de\u8239\u4e0a\u7528\u4e86\u4e00\u4e2a\u5f88\u5c0f\u7684\u989c\u8272\u7eb9\u7406\u7528\u7b2c\u4e8cUV\u901a\u9053\u7ed9Detail Map.\u8fd9\u4f1a\u8282\u7701\u8d34\u56fe\u5c3a\u5bf8.<\/p>\n<p><strong>Maze \u573a\u666f\u4f18\u5316<\/strong><\/p>\n<p>\u8ff7\u5bab\u573a\u666f\u4f7f\u7528\u4e86\u70d8\u7119\u5149\u7167\u8d34\u56fe,\u7279\u522b\u662f\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u8fd0\u884c\u5b83\u4f1a\u6709\u5f88\u6d41\u7545\u7684\u6548\u679c,\u5426\u5219\u5b83\u5c06\u662f\u4e00\u4e2a\u5f88\u7b80\u5355\u7684\u6ca1\u6709\u5b9e\u65f6\u5149\u7167\u6ca1\u6709\u4ec0\u4e48\u6548\u679c\u7684\u573a\u666f.<\/p>\n<p><strong>Shooter180\u548cShooter360\u573a\u666f\u4f18\u5316<\/strong><\/p>\n<p>\u548c\u5176\u5b83\u6e38\u620f\u4e00\u6837,\u6211\u4eec\u7528\u4e86\u4f4e\u6a21\u98ce\u683c\u4ee5\u53ca\u5bf9\u8c61\u6c60(<a href=\"http:\/\/unity3d.com\/es\/learn\/tutorials\/modules\/beginner\/live-training-archive\/object-pooling\">unity3d.com\/es\/learn\/tutorials\/modules\/beginner\/live-training-archive\/object-pooling<\/a>),\u540c\u65f6\u5bf9\u4f4e\u9876\u70b9\u6570\u7684\u6a21\u578b\u4f7f\u7528<a href=\"http:\/\/docs.unity3d.com\/Manual\/DrawCallBatching.html\">Dynamic Batching<\/a>(<a href=\"http:\/\/docs.unity3d.com\/Manual\/DrawCallBatching.html\">docs.unity3d.com\/Manual\/DrawCallBatching.html<\/a>).<\/p>\n<p>\u66f4\u591a\u4f18\u5316\u7ec6\u8282\u53ef\u4ee5\u5230Oculus\u7f51\u7ad9\u67e5\u770b:<\/p>\n<p><a href=\"https:\/\/developer.oculus.com\/documentation\/\">https:\/\/developer.oculus.com\/documentation\/<\/a><\/p>\n<p><a href=\"http:\/\/static.oculus.com\/sdk-downloads\/documents\/Oculus_Best_Practices_Guide.pdf\">http:\/\/static.oculus.com\/sdk-downloads\/documents\/Oculus_Best_Practices_Guide.pdf<\/a><\/p>\n<p><a href=\"https:\/\/developer.oculus.com\/blog\/squeezing-performance-out-of-your-unity-gear-vr-game\/\">https:\/\/developer.oculus.com\/blog\/squeezing-performance-out-of-your-unity-gear-vr-game\/<\/a><\/p>\n<p><a href=\"https:\/\/developer.oculus.com\/blog\/squeezing-performance-out-of-your-unity-gear-vr-game-continued\/\">https:\/\/developer.oculus.com\/blog\/squeezing-performance-out-of-your-unity-gear-vr-game-continued\/<\/a><\/p>\n<hr \/>\n<p><strong>\u539f\u6587:<a href=\"http:\/\/unity3d.com\/learn\/tutorials\/topics\/virtual-reality\">http:\/\/unity3d.com\/learn\/tutorials\/topics\/virtual-reality<\/a><\/strong><\/p>\n<p><strong>\u7531 \u56db\u89d2\u94b1 (XK) \u7ffb\u8bd1,\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u6765\u81ea http:\/\/blog.1vr.cn<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f18\u5316Unity\u4e2d\u7684VR &nbsp; \u7b80\u4ecb &nbsp; \u4e3a\u786e\u4fdd\u7528\u6237\u6709\u6781\u68d2,\u65e0\u6076\u5fc3\u7684\u865a\u62df\u73b0\u5b9e\u4f53\u9a8c,\u800c\u8fbe\u5230\u63a8\u8350\u5e27 &hellip; <a href=\"https:\/\/1vr.cn\/?p=1712\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">UNITY\u5f00\u53d1VR\u773c\u955c\u4e2d\u6587\u5165\u95e8\u6559\u7a0b(7)<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1712","post","type-post","status-publish","format-standard","hentry","category-5","without-featured-image"],"_links":{"self":[{"href":"https:\/\/1vr.cn\/index.php?rest_route=\/wp\/v2\/posts\/1712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/1vr.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/1vr.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/1vr.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/1vr.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1712"}],"version-history":[{"count":1,"href":"https:\/\/1vr.cn\/index.php?rest_route=\/wp\/v2\/posts\/1712\/revisions"}],"predecessor-version":[{"id":1713,"href":"https:\/\/1vr.cn\/index.php?rest_route=\/wp\/v2\/posts\/1712\/revisions\/1713"}],"wp:attachment":[{"href":"https:\/\/1vr.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/1vr.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/1vr.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}