{"id":1661,"date":"2013-02-21T01:46:49","date_gmt":"2013-02-20T22:46:49","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=1661"},"modified":"2013-04-03T17:51:02","modified_gmt":"2013-04-03T14:51:02","slug":"terrain-test-2","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2013\/02\/21\/terrain-test-2\/","title":{"rendered":"Terrain test (2)"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2_small.jpg\"><br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1662\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2013\/02\/21\/terrain-test-2\/terrain_unity3d_test2_small\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2_small.jpg?fit=680%2C412&amp;ssl=1\" data-orig-size=\"680,412\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"terrain_unity3d_test2_small\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2_small.jpg?fit=680%2C412&amp;ssl=1\" class=\"alignnone size-full wp-image-1662\" alt=\"terrain_unity3d_test2_small\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2_small.jpg?resize=680%2C412\" width=\"680\" height=\"412\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2_small.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2_small.jpg?resize=300%2C181&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>New terrain test (looks better than the<a title=\"http:\/\/unitycoder.com\/blog\/2012\/11\/24\/world-machine-terrain-test\/\" href=\"http:\/\/unitycoder.com\/blog\/2012\/11\/24\/world-machine-terrain-test\/\" target=\"_blank\"> old terrain test<\/a>).<\/p>\n<p>Still problems creating a splatmap in world machine (it becomes overbright &gt;1),<br \/>\nhavent found any tutorial how to do it automatically in wm2 &#8211; searched the whole internet (twice).<\/p>\n<p>This version almost works, some color errors if basemap distance is low..<br \/>\nHand copy-pasted separate R, G, B layers together and set alpha channel to black.<\/p>\n<p>Using unity4 normal mapped terrain shader and terrain textures from <a href=\"http:\/\/u3d.as\/content\/forst\/ats-colormap-terrain-shader\/3fr\" target=\"_blank\">ATS free colormap terrain shader<\/a>.<br \/>\n(Also SplatMap importer comes with that package)<\/p>\n<p><strong>Progress:<\/strong><br \/>\n&#8211; Partial success: Added code to clamp the RGBA values inside the SplatMap script..atleast no more &gt;1 values<br \/>\n&#8211; More success: Created custom editor script for better splatmap importing, works ok so far, mixing needs adjusting.. (see image#3)<\/p>\n<p><strong>TODO:<\/strong><br \/>\n&#8211; Add some rocks, trees, grass..<\/p>\n<p><strong>Webplayer:<\/strong><br \/>\ncoming later..<\/p>\n<p>&#8212;<\/p>\n<p><strong>image#2:<\/strong> bigger image (click for fullsize)<br \/>\n<a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2.jpg\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1663\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2013\/02\/21\/terrain-test-2\/terrain_unity3d_test2\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2.jpg?fit=1297%2C786&amp;ssl=1\" data-orig-size=\"1297,786\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"terrain_unity3d_test2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2.jpg?fit=1024%2C620&amp;ssl=1\" class=\"alignnone size-medium wp-image-1663\" alt=\"terrain_unity3d_test2\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2-300x181.jpg?resize=300%2C181\" width=\"300\" height=\"181\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2.jpg?resize=300%2C181&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2.jpg?resize=1024%2C620&amp;ssl=1 1024w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2.jpg?w=1297&amp;ssl=1 1297w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&#8212;<\/p>\n<p><strong>image#3:<\/strong> Custom Splat Map Helper in action! (assigned 4 textures to terrain) (click for fullsize)<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_splat_map_importer_world_machine_1.jpg\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1670\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2013\/02\/21\/terrain-test-2\/terrain_splat_map_importer_world_machine_1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_splat_map_importer_world_machine_1.jpg?fit=1255%2C891&amp;ssl=1\" data-orig-size=\"1255,891\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"terrain_splat_map_importer_world_machine_1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_splat_map_importer_world_machine_1.jpg?fit=1024%2C726&amp;ssl=1\" class=\"alignnone size-medium wp-image-1670\" alt=\"terrain_splat_map_importer_world_machine_1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_splat_map_importer_world_machine_1-300x212.jpg?resize=300%2C212\" width=\"300\" height=\"212\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_splat_map_importer_world_machine_1.jpg?resize=300%2C212&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_splat_map_importer_world_machine_1.jpg?resize=1024%2C726&amp;ssl=1 1024w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_splat_map_importer_world_machine_1.jpg?w=1255&amp;ssl=1 1255w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&#8212;<\/p>\n<p><strong>Image#4a:<\/strong> World Machine 2.3 Terrain<br \/>\n<a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_world_machine_1.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1813\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2013\/02\/21\/terrain-test-2\/terrain_world_machine_1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_world_machine_1.jpg?fit=1718%2C863&amp;ssl=1\" data-orig-size=\"1718,863\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"terrain_world_machine_1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_world_machine_1.jpg?fit=1024%2C514&amp;ssl=1\" class=\"alignnone size-medium wp-image-1813\" alt=\"terrain_world_machine_1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_world_machine_1-300x150.jpg?resize=300%2C150\" width=\"300\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_world_machine_1.jpg?resize=300%2C150&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_world_machine_1.jpg?resize=1024%2C514&amp;ssl=1 1024w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_world_machine_1.jpg?w=1718&amp;ssl=1 1718w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>(click to view full size)<\/p>\n<p><strong>Image#4b:<\/strong> Same terrain in Unity (seems to be mirrored..)<br \/>\n<a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity_world_machine_3.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1818\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2013\/02\/21\/terrain-test-2\/terrain_unity_world_machine_3\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity_world_machine_3.jpg?fit=1880%2C884&amp;ssl=1\" data-orig-size=\"1880,884\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"terrain_unity_world_machine_3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity_world_machine_3.jpg?fit=1024%2C481&amp;ssl=1\" class=\"alignnone size-medium wp-image-1818\" alt=\"terrain_unity_world_machine_3\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity_world_machine_3-300x141.jpg?resize=300%2C141\" width=\"300\" height=\"141\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity_world_machine_3.jpg?resize=300%2C141&amp;ssl=1 300w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity_world_machine_3.jpg?resize=1024%2C481&amp;ssl=1 1024w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity_world_machine_3.jpg?w=1880&amp;ssl=1 1880w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>(click to view full size)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>New terrain test (looks better than the old terrain test). Still problems creating a splatmap in world machine (it becomes overbright &gt;1), havent found any tutorial how to do it automatically in wm2 &#8211; searched the whole internet (twice). This version almost works, some color [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1662,"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_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":[4,3],"tags":[423,421,422,168,142,376],"class_list":["post-1661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-mountain","tag-splat-map","tag-splatmap","tag-terrain","tag-texture","tag-world-machine"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2013\/02\/terrain_unity3d_test2_small.jpg?fit=680%2C412&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-qN","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1661","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=1661"}],"version-history":[{"count":12,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1661\/revisions"}],"predecessor-version":[{"id":1819,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/1661\/revisions\/1819"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/1662"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=1661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=1661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=1661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}