{"id":1675,"date":"2013-02-27T23:15:39","date_gmt":"2013-02-27T20:15:39","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=1675"},"modified":"2013-03-02T01:49:30","modified_gmt":"2013-03-01T22:49:30","slug":"rusted-metal-shader-from-blender-to-unity","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2013\/02\/27\/rusted-metal-shader-from-blender-to-unity\/","title":{"rendered":"Rusted Metal Shader From Blender"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1676\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2013\/02\/27\/rusted-metal-shader-from-blender-to-unity\/rust_texture_unity3d_blender_metal\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_texture_unity3d_blender_metal.jpg?fit=680%2C466&amp;ssl=1\" data-orig-size=\"680,466\" data-comments-opened=\"1\" data-image-title=\"rust_texture_unity3d_blender_metal\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_texture_unity3d_blender_metal.jpg?fit=680%2C466&amp;ssl=1\" class=\"alignnone size-full wp-image-1676\" alt=\"rust_texture_unity3d_blender_metal\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_texture_unity3d_blender_metal.jpg?resize=680%2C466\" width=\"680\" height=\"466\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_texture_unity3d_blender_metal.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_texture_unity3d_blender_metal.jpg?resize=300%2C205&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p>Converted this <a title=\"http:\/\/www.blenderguru.com\/videos\/create-realistic-materials-with-cycles\/\" href=\"http:\/\/www.blenderguru.com\/videos\/create-realistic-materials-with-cycles\/\" target=\"_blank\">Blender rust material shader<\/a> to Unity surface shader, looks ok..<\/p>\n<p>Created the bumpmap in unity editor (copy rust texture, convert to normal map from grayscale),<br \/>\nhad problems trying to do it inside shader (from diffuse texture to o.Normal)..<\/p>\n<p><strong>Progress:<\/strong><br \/>\n&#8211; Founded some info about generating normal maps: <a title=\"http:\/\/forum.unity3d.com\/threads\/5714-bumpmap-%28grayscale%29-to-normalmap-%28rgb%29?p=43006#post43006\" href=\"http:\/\/forum.unity3d.com\/threads\/5714-bumpmap-%28grayscale%29-to-normalmap-%28rgb%29?p=43006#post43006\" target=\"_blank\">http:\/\/forum.unity3d.com\/threads\/5714-bumpmap-%28grayscale%29-to-normalmap-%28rgb%29?p=43006#post43006<\/a><\/p>\n<p><strong>Webplayer:<\/strong><br \/>\ncoming later<\/p>\n<p><strong>Download source:<\/strong><br \/>\ncoming later..<\/p>\n<p>&#8212;<\/p>\n<p><strong>image#2<\/strong>: Added 2nd small bumpmap for the plain metal part. (and testing bluish painted metal texture)<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_material_shader_unity_blender_2.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1679\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2013\/02\/27\/rusted-metal-shader-from-blender-to-unity\/rust_material_shader_unity_blender_2\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_material_shader_unity_blender_2.jpg?fit=1300%2C729&amp;ssl=1\" data-orig-size=\"1300,729\" data-comments-opened=\"1\" data-image-title=\"rust_material_shader_unity_blender_2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_material_shader_unity_blender_2.jpg?fit=1024%2C574&amp;ssl=1\" class=\"alignnone size-medium wp-image-1679\" alt=\"rust_material_shader_unity_blender_2\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_material_shader_unity_blender_2-300x168.jpg?resize=300%2C168\" width=\"300\" height=\"168\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_material_shader_unity_blender_2.jpg?resize=300%2C168&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_material_shader_unity_blender_2.jpg?resize=1024%2C574&amp;ssl=1 1024w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_material_shader_unity_blender_2.jpg?w=1300&amp;ssl=1 1300w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>(click to view fullsize)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converted this Blender rust material shader to Unity surface shader, looks ok.. Created the bumpmap in unity editor (copy rust texture, convert to normal map from grayscale), had problems trying to do it inside shader (from diffuse texture to o.Normal).. Progress: &#8211; Founded some info [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1676,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13,3],"tags":[425,163,162,426,424,14,142],"class_list":["post-1675","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shaders","category-unity3d","tag-blender","tag-bump","tag-displacement","tag-material","tag-rust","tag-shader","tag-texture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-r1","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/rust_texture_unity3d_blender_metal.jpg?fit=680%2C466&ssl=1","_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=1675"}],"version-history":[{"count":7,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1675\/revisions"}],"predecessor-version":[{"id":1685,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1675\/revisions\/1685"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/1676"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=1675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=1675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=1675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}