{"id":1289,"date":"2015-02-21T11:28:11","date_gmt":"2015-02-21T11:28:11","guid":{"rendered":"http:\/\/www.clonefactor.com\/wordpress\/?p=1289"},"modified":"2015-02-22T17:03:23","modified_gmt":"2015-02-22T17:03:23","slug":"mmd-in-unity3d-export-file-size","status":"publish","type":"post","link":"https:\/\/www.clonefactor.com\/wordpress\/public\/1289\/","title":{"rendered":"Test case : import file from MMD to Unity3D"},"content":{"rendered":"<h1>Import MMD pmx &amp; vmd to unity3d<\/h1>\n<p>Just import the MMD character(pmx) into unity3d with the dance animation.<\/p>\n<p>export into humanoid rigging with\u00a0mecanim.<\/p>\n<ul>\n<li>Space = dance<\/li>\n<li>Tab = toggle browser fullscreen<\/li>\n<li>View control key list on the left-top of the screen.<\/li>\n<\/ul>\n<unitydog width=\"\"\"\" height=\"\"\"\" src=\"https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/MMD2Unity.unity3d.zip\"><\/unitydog>\n<p>Oops&#8230; Just before I submit the\u00a0web play version test scene on this blog, I found some problem, a big one.<\/p>\n<p>the file size of scene are too big.. too Fxxking BIG. it take me almost one day to optimization the project,<\/p>\n<p>the original web play version nearly <strong>98mb<\/strong>.<\/p>\n<p>and the final version of this post only <strong>9.68mb<\/strong>.<\/p>\n<p>why cause it so big?<\/p>\n<p>after several\u00a0hours try and error, finially\u00a0sort out some problems.<\/p>\n<h2>Too manay unnecessary information<\/h2>\n<p>as you can see, after convert from pmx to fbx, the imported vmd include ALL nodes of the charactar, thats a huge amount of data if we want to animate it<\/p>\n<p><a href=\"http:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"187\" height=\"300\" class=\"alignnone size-medium wp-image-1292\" src=\"http:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_01-187x300.jpg\" alt=\"mmd_unity3d_01\" srcset=\"https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_01-187x300.jpg 187w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_01.jpg 582w\" sizes=\"auto, (max-width: 187px) 100vw, 187px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>all you need to do is remove all unnecessary node at Animations&gt;Mask&gt;Transform&gt;*<\/p>\n<p>in fact the hairs, tail things already have rigging in model, you guys can append the real time phyical method on it without using the anime data.<\/p>\n<p><a href=\"http:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_00.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"163\" class=\"alignnone size-medium wp-image-1290\" src=\"http:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_00-300x163.jpg\" alt=\"mmd_unity3d_00\" srcset=\"https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_00-300x163.jpg 300w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_00-1024x555.jpg 1024w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_00.jpg 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>Avatar information, sharing?<\/h2>\n<p>The fbx include the avatar information such as textures linkage, if you want to share the motion set to other avatar in your games, the fbx needed to include the avatar information. otherwise the rig mapping will fail.<\/p>\n<p>and the avatar information did occupied some memmory, if you design not to share the avatar information better to remove\u00a0all setting in &#8220;Model&#8221; tab.<\/p>\n<p><a href=\"http:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_02.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"182\" height=\"300\" class=\"alignnone size-medium wp-image-1293\" src=\"http:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_02-182x300.jpg\" alt=\"mmd_unity3d_02\" srcset=\"https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_02-182x300.jpg 182w, https:\/\/www.clonefactor.com\/wordpress\/wp-content\/uploads\/2015\/02\/mmd_unity3d_02.jpg 585w\" sizes=\"auto, (max-width: 182px) 100vw, 182px\" \/><\/a><\/p>\n<h2>Don&#8217;t import everything into one single files.<\/h2>\n<p>The original file of fbx which include model(pmx) &amp; animation(vmd) are nearly 46mb<\/p>\n<p>its because the avatar data &amp; all information of the asset position, rotation, scale, etc, are included in that file.<\/p>\n<p>export the avatar texture &amp; mesh into one single file\u00a0can be very small, in this case, 10mb for avatar data.<\/p>\n<p>and the final export animation data only 16mb.<\/p>\n<p>without avatar information can reduct to 9mb<\/p>\n<h2>Looking for the other way to convert VMD into FBX format<\/h2>\n<p>all this modification will harm the data integrity. and also the original VMD file are only 2.8mb, but after convert into fbx it growth to 9mb. which is unacceptable. looking for the other way to convert VMD into FBX format.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Import MMD pmx &amp; vmd to unity3d Just import th &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3],"tags":[63,66,65,64,43],"class_list":["post-1289","post","type-post","status-publish","format-standard","hentry","category-unity3d","category-public","tag-export","tag-mecanim","tag-mmd","tag-optimization","tag-unity3d-2"],"_links":{"self":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts\/1289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1289"}],"version-history":[{"count":0,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/posts\/1289\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clonefactor.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}