{"id":893,"date":"2020-01-09T10:46:08","date_gmt":"2020-01-09T02:46:08","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=893"},"modified":"2020-09-26T22:47:11","modified_gmt":"2020-09-26T14:47:11","slug":"model%e5%af%bc%e5%85%a5%e5%88%87%e9%a1%b5","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=893","title":{"rendered":"[Unity]FBX-Model\u5bfc\u5165\u5207\u9875\u9009\u9879"},"content":{"rendered":"\n<p class=\"has-text-color has-large-font-size has-vivid-red-color\"><strong> Scene <\/strong><\/p>\n\n\n\n<p><strong>Import BlendShapes<\/strong> \u5bfc\u5165\u53d8\u5f62\u5668<br>\u5bfc\u5165\u53d8\u5f62\u5668\u6cd5\u7ebf\uff0cFBX\u9700\u8981\u6709\u5149\u6ed1\u7ec4<\/p>\n\n\n\n<p><strong>Importing visiblity <\/strong>\u5bfc\u5165\u53ef\u89c1\u5c5e\u6027<br>\u8fd9\u6837\u5728\u52a8\u753b\u66f2\u7ebf\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u52a8\u753b\u63a7\u5236MeshRender\u7684enable\u5c5e\u6027<br>\u6b64\u5c5e\u6027\u5e76\u4e14\u662f\u5177\u6709\u5c42\u7ea7\u7ee7\u627f\u6027<\/p>\n\n\n\n<p><strong>Preserve Hierarchy<\/strong> \u4fdd\u6301\u5c42\u7ea7\u7ed3\u6784<br>*\u4e25\u683c\u6839\u636eFBX\u7684\u5c42\u7ea7\u7ed3\u6784\u521b\u5efaPrefab\u7684\u5c42\u7ea7\u7ed3\u6784\uff1b<br>*\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u7a7a\u7684\u8282\u70b9\u4f1a\u88ab\u4f18\u5316\u5265\u79bb\uff0c \u591a\u4e2aFBX\u7684\u8bdd\uff0c\u53ef\u4ee5\u7528\u6b64\u9009\u9879\u8ba9\u4ed6\u4eec\u7684\u5c42\u7ea7\u4fdd\u7559<br>\uff08 \u5f53\u6709\u591a\u4e2afbx\u6587\u4ef6\uff0c\u6bcf\u4e2a\u6587\u4ef6\u53ef\u80fd\u53ea\u9700\u8981\u90e8\u5206\u9aa8\u9abc\u8282\u70b9\uff0c\u5982\u679c\u4e0d\u52fe\u9009\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9aa8\u9abc\u5bf9\u4e0d\u4e0a \uff09<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-color has-large-font-size has-vivid-red-color\"><strong>Mesh<\/strong><\/p>\n\n\n\n<p><strong>Read\/Write Enable<\/strong><br>\u542f\u7528\u6b64\u9879\uff0c\u5c31\u4fdd\u7559\u4e00\u4efd\u6570\u636e\u5230CPU\u5185\u5b58\u4e2d\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u5b58\u53d6\u7f51\u7edc\u6570\u636e\uff0c\u5173\u95ed\u6b64\u9879\uff0cUnity\u4f1a\u628aCPU\u4e2d\u7684\u5185\u5b58\u6570\u636e\u5220\u9664<\/p>\n\n\n\n<p><strong>Optimize Mesh<\/strong><br>\u4f18\u5316\u7f51\u7edc<br>1\u3001\u4e0d\u4f18\u5316<br>2\u3001\u6240\u6709\uff1aUnity\u91cd\u65b0\u6392\u5217\u9876\u70b9\u548c\u7d22\u5f15\uff08\u9ed8\u8ba4\uff09<br>3\u3001\u591a\u8fb9\u5f62\u6b21\u5e8f\uff1a\u91cd\u65b0\u6309\u591a\u8fb9\u5f62\u6392\u5e8f<br>4\u3001\u9876\u70b9\u6b21\u5e8f\uff1a\u91cd\u65b0\u6309\u9876\u70b9\u6392\u5e8f<\/p>\n\n\n\n<p><strong>Generate Collider <\/strong><br>\u6839\u636eMesh\u81ea\u52a8\u751f\u4ea7\u78b0\u649e<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-text-color has-large-font-size has-vivid-red-color\"><strong>Geometry<\/strong><\/p>\n\n\n\n<p><strong>Keep Quads<\/strong><br>\u5f00\u542f\u65f6\uff0cunity\u4f1a\u4fdd\u7559Mesh\u4e0a\u7684\u591a\u8fb9\u5f62\uff0c\u5982\u679c\u5173\u95edunity\u4f1a\u628a\u591a\u8fb9\u5f62\u8f6c\u5316\u4e3a\u4e09\u89d2\u5f62<\/p>\n\n\n\n<p><strong>Weld Vertices<\/strong><br>\u5408\u5e76\u5904\u4e8e\u540c\u4e00\u4f4d\u7f6e\u7684\u9876\u70b9\uff0c\u8fd9\u6837\u53ef\u4ee5\u6574\u4f53\u51cf\u5c11mesh\u7684\u9876\u70b9\u6570\u3002  <\/p>\n\n\n\n<p><strong>Legacy Blend Shape Normals<\/strong><br>\u4ece\u5149\u6ed1\u7ec4\u4e2d\u5bfc\u5165\u53d8\u5f62\u5668\u6cd5\u7ebf<\/p>\n\n\n\n<p><strong>Swap UVs<\/strong><br>\u4ea4\u6362UV\uff08\u7b2c1\u5957\u548c\u7b2c2\u5957\u6709\u53ef\u80fd\u53cd\u4e86\uff0c\u4ea4\u6362\u4e00\u4e0b\uff09<\/p>\n\n\n\n<p><strong>Normals &amp; Tangents<\/strong><br>\u5bfc\u5165\u6a21\u578b\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u76f4\u63a5\u5bfc\u5165\u6a21\u578b\u4e2d\u7684\u6cd5\u7ebf\u548c\u5207\u7ebf\u3001\u4e5f\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528unity\u81ea\u52a8\u8ba1\u7b97\u6cd5\u7ebf\u548c\u5207\u7ebf\u3001\u4e5f\u53ef\u4ee5\u4e0d\u5bfc\u5165\u6cd5\u7ebf\u548c\u5207\u7ebf\u3002 <\/p>\n\n\n\n<p><strong>Generate LightMap Uvs <\/strong><br>\u4e3a\u5149\u7167\u8d34\u56fe\u4ea7\u751f\u7b2c\u4e8c\u5957UV\uff0c\u5982\u679c\u8981\u70d8\u7119lightmap\uff0c\u5219\u9700\u8981\u5728\u6a21\u578b\u4e0a\u52fe\u9009\u6b64\u9879<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scene Import BlendShapes \u5bfc\u5165\u53d8\u5f62\u5668\u5bfc\u5165\u53d8\u5f62\u5668\u6cd5\u7ebf\uff0cFBX\u9700\u8981\u6709\u5149\u6ed1\u7ec4 Importi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/893"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=893"}],"version-history":[{"count":12,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/893\/revisions"}],"predecessor-version":[{"id":911,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/893\/revisions\/911"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}