{"id":763,"date":"2013-07-01T18:42:30","date_gmt":"2013-07-01T16:42:30","guid":{"rendered":"http:\/\/www.edy.es\/dev\/?page_id=763"},"modified":"2024-02-12T16:15:21","modified_gmt":"2024-02-12T15:15:21","slug":"materials-and-textures-from-blender-to-unity-3d","status":"publish","type":"page","link":"https:\/\/www.edy.es\/dev\/docs\/materials-and-textures-from-blender-to-unity-3d\/","title":{"rendered":"Materials and textures from Blender to Unity 3D"},"content":{"rendered":"<h2>Requirements<\/h2>\n<ul>\n<li>Blender properly installed in the system.<\/li>\n<li>Place the <em>.blend<\/em> files inside the Unity project&#8217;s <strong>Assets<\/strong> folder (or a subfolder inside Assets).<br \/>\nYou can open them for editing by double-clicking the file in Unity. After saving the file in Blender it will be automatically reimported when switching back to Unity.<\/li>\n<li>Place all the texture files in a subfolder named <strong>Textures<\/strong> in the same folder as the<em> .blend<\/em> file. A subfolder named <strong>Materials<\/strong> will be automatically created by Unity.<br \/>\nWhen assigning textures in Blender ensure to select the files located in the Textures folder. Unity 3D will automatically assign them to the materials in the imported object.<\/li>\n<\/ul>\n<h2>Assign textures to objects<\/h2>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-764 aligncenter\" alt=\"Blender To Unity3D Material Texture 1\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-1-1024x680.jpg\" width=\"620\" height=\"411\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-1-1024x680.jpg 1024w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-1-300x199.jpg 300w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-1.jpg 1215w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<ol>\n<li>Choose the object and switch to Edit Mode (TAB).<\/li>\n<li>Mesh tab: Select the UV Map to asign the texture to. In Unity 3D the first UV Map is used for the texture and the second UV Map is used for lightmap.<\/li>\n<li>Select all faces in the UV Map (locate the cursor over the UV editor, then press A).<\/li>\n<li>Image &gt; Open Image (Alt O), then choose the image file.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-765 aligncenter\" alt=\"Blender To Unity3D Material Texture 2\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-2-1024x680.jpg\" width=\"620\" height=\"411\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-2-1024x680.jpg 1024w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-2-300x199.jpg 300w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-2.jpg 1217w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">The texture is assigned to the selected faces.\u00a0<\/span><\/li>\n<li>The\u00a0<em><strong>Textured Solid<\/strong><\/em>\u00a0setting displays the texture in the 3D View.<\/li>\n<li>Unity 3D will take the name for the material from the <em>Source<\/em> field (when <em>By Base Texture Name<\/em> is selected as <em>Material Naming<\/em> in Unity 3D).<\/li>\n<li>The object&#8217;s <em>Material<\/em>\u00a0name is ignored in Unity 3D\u00a0(when\u00a0<em>By Base Texture Name<\/em>\u00a0is selected as\u00a0<em>Material Naming<\/em>\u00a0in Unity 3D).<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-766 aligncenter\" alt=\"Blender To Unity3D Material Texture 3\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-3-1024x679.jpg\" width=\"620\" height=\"411\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-3-1024x679.jpg 1024w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-3-300x198.jpg 300w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-3.jpg 1217w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<ul>\n<li>The name of the object will be the same in Unity 3D.<\/li>\n<li>The name of the <em>mesh<\/em> in Blender is ignored in Unity 3D.<\/li>\n<li>A material with the name of the texture is created and the texture is assigned to it.<\/li>\n<li>Note: If the material in Unity 3D doesn&#8217;t receive a texture, then ensure there isn&#8217;t a Material in the Blender scene with the same name.<\/li>\n<\/ul>\n<h2>Multiple textures in the same object<\/h2>\n<p><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-767\" alt=\"Blender To Unity3D Material Texture 4\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-4-1024x680.jpg\" width=\"620\" height=\"411\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-4-1024x680.jpg 1024w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-4-300x199.jpg 300w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-4.jpg 1214w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<ol>\n<li>Choose the object and switch to Edit Mode (TAB).<\/li>\n<li>Mesh tab: Select the UV Map to asign the texture to. In Unity 3D the first UV Map is used for the texture and the second UV Map is used for lightmap.<\/li>\n<li>Select the face or faces you want to assign the texture to.<\/li>\n<li>Image &gt; Open Image (Alt O), then choose the image file.<\/li>\n<li>Repeat from 3. for each face or group of faces.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-768\" alt=\"Blender To Unity3D Material Texture 5\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-5-1024x681.jpg\" width=\"620\" height=\"412\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-5-1024x681.jpg 1024w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-5-300x199.jpg 300w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-5.jpg 1216w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">Only the faces selected in the UV Editor receive the texture.<\/span><\/li>\n<li>The\u00a0<em><strong>Textured Solid<\/strong><\/em>\u00a0setting displays the texture in the 3D View.<\/li>\n<li>The UV Editor shows the texture assigned to the <em>focused<\/em> face. The focused face is displayed with a different shading.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-769\" alt=\"Blender To Unity3D Material Texture 6\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-6-1024x679.jpg\" width=\"620\" height=\"411\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-6-1024x679.jpg 1024w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-6-300x198.jpg 300w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-6.jpg 1217w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">In Unity 3D a material is created for each texture that is assigned to the material. Each material takes the name of its texture.<\/span><\/li>\n<li>The faces without a texture assigned will receive an <em>unnamed<\/em> default material.<\/li>\n<\/ul>\n<h2>Texture management<\/h2>\n<p><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-770\" alt=\"Blender To Unity3D Material Texture 7\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-7.jpg\" width=\"543\" height=\"293\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-7.jpg 543w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-7-300x161.jpg 300w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">When a texture is loaded an\u00a0<em><strong>Image<\/strong> <\/em>data object is created for it. The available images are listed when clicking the <em>Image<\/em> icon.<\/span><\/li>\n<li>The <em><strong>Source <\/strong><\/em>field points to the image file assigned to the selected <em>Image<\/em> object.<\/li>\n<li>The textures can be quickly assigned to the selected faces by using the <em>Image<\/em> list.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-771\" alt=\"Blender To Unity3D Material Texture 8\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-8.jpg\" width=\"545\" height=\"293\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-8.jpg 545w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Material-Texture-8-300x161.jpg 300w\" sizes=\"auto, (max-width: 545px) 100vw, 545px\" \/><\/a><\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">The texture can be unassigned from the selected faces by clicking the <strong>X<\/strong> at the <em>Image<\/em> selector.\u00a0The faces without a texture assigned receive an\u00a0<em>unnamed<\/em>\u00a0default material in Unity 3D.<\/span><\/li>\n<li>The file the <em>Image<\/em> reads can be changed by editing the <em>Source<\/em> field, either directly or by selecting another file with the <em>Open File<\/em> icon.<\/li>\n<\/ul>\n<p>When\u00a0<em>By Base Texture Name<\/em>\u00a0is selected as\u00a0<em>Material Naming<\/em>\u00a0in Unity 3D:<\/p>\n<ul>\n<li>Unity 3D uses the\u00a0<em>Source<\/em>\u00a0field as name for creating the materials.<\/li>\n<li>The name of the\u00a0<em>Image<\/em>\u00a0object is not relevant to Unity 3D. It can be freely renamed in Blender.<\/li>\n<\/ul>\n<h2>Materials<\/h2>\n<p><a href=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Import-Settings.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-775\" alt=\"Blender To Unity3D Import Settings\" src=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Import-Settings-239x300.jpg\" width=\"239\" height=\"300\" srcset=\"https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Import-Settings-239x300.jpg 239w, https:\/\/www.edy.es\/dev\/wp-content\/uploads\/2013\/07\/Blender-To-Unity3D-Import-Settings.jpg 412w\" sizes=\"auto, (max-width: 239px) 100vw, 239px\" \/><\/a><\/p>\n<p>In all cases<em>\u00a0<strong>Materials<\/strong><\/em>\u00a0in Blender only export their diffuse color to the material in Unity 3D (gray 0.8 \/ 204 by default). Note: for the material color to be displayed in Blender&#8217;s 3D View the <em>Textured Solid<\/em> option must be disabled.<\/p>\n<p>When a <em>Material Name<\/em> is required below and the object has no materials assigned then a <em>default<\/em> material is created in Unity 3D:\u00a0<strong>unnamed<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>When\u00a0<strong><em>By Base Texture Name<\/em><\/strong>\u00a0is selected as\u00a0<em>Material Naming<\/em>\u00a0in Unity 3D:<\/p>\n<ul>\n<li>Unity 3D uses the\u00a0<em>Source<\/em>\u00a0field (the name of the image file) as name for creating the materials: <strong>File_Name<\/strong> (without extension)<\/li>\n<li>The name of the\u00a0<em>Image<\/em>\u00a0data object is ignored in Unity 3D. It can be freely renamed in Blender.<\/li>\n<li>If the object doesn&#8217;t have textures assigned or there are faces without texture then Unity 3D uses the name of the\u00a0<em>Material<\/em>\u00a0as name for creating the materials:\u00a0<strong>Material_Name<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>When <em><strong>Model&#8217;s Material<\/strong><\/em> is used in <em>Material Naming<\/em> in Unity 3D:<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"line-height: 13px;\">If the object has textures assigned:<\/span><\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">Unity 3D uses the name of the <em>Material<\/em> and the name of the <em>Image<\/em> data object as name for creating the materials: <strong>Material_Name__Image_Name<br \/>\n<\/strong><\/span><\/li>\n<li><span style=\"line-height: 13px;\">Note that the name of the <em>Image data object<\/em> is used, NOT the <em>Source<\/em> field (image file name) as previously.<\/span><\/li>\n<li>If the object has texture but no material assigned then <em>None<\/em> is used as material name.<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\">If the object does not have textures assigned:<\/p>\n<ul>\n<li><span style=\"line-height: 13px;\">Unity 3D uses the name of the <em>Material<\/em> as name for creating the materials: <strong>Material_Name<\/strong><\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Requirements Blender properly installed in the system. Place the .blend files inside the Unity project&#8217;s Assets folder (or a subfolder inside Assets). You can open them for editing by double-clicking the file in Unity. After saving the file in Blender it will be automatically reimported when switching back to Unity. Place all the texture files [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":784,"parent":228,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-c.php","meta":{"footnotes":""},"class_list":["post-763","page","type-page","status-publish","has-post-thumbnail","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/P1PjRF-cj","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/comments?post=763"}],"version-history":[{"count":17,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/763\/revisions"}],"predecessor-version":[{"id":973,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/763\/revisions\/973"}],"up":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/pages\/228"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/media\/784"}],"wp:attachment":[{"href":"https:\/\/www.edy.es\/dev\/wp-json\/wp\/v2\/media?parent=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}