{"id":232,"date":"2019-02-16T16:59:18","date_gmt":"2019-02-16T16:59:18","guid":{"rendered":"https:\/\/www.maxcanvas.org\/?page_id=232"},"modified":"2026-10-25T22:13:27","modified_gmt":"2026-10-25T22:13:27","slug":"three-js","status":"publish","type":"page","link":"https:\/\/www.maxcanvas.org\/?page_id=232","title":{"rendered":"THREE.JS"},"content":{"rendered":"\n<p>Year 2 Shader Project, using THREE.JS to both generate and texture a 3D terrain scene.  Available at <a target=\"_blank\" href=\"https:\/\/www.maxcanvas.org\/max609\/files\/THREE\/02%20-%20Mobile%20Plane\/K1628007.html\ufeff\"> THIS LINK (opens in new window) <\/a>   <b>CAUTION:<\/b> This is a WebGL project and requires your browser to have it enabled.  The textures are also rather large, so expect a loading delay.  Screen shots are provided below.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Technical Details<\/h4>\n\n\n\n<p> Utilising THREE.js, the creation of a responsive terrain mesh, the shape of which is modified by application of a Perlin noise generator (simplex) in the vertex shader.&nbsp; This terrain mesh is the result of a combination of 3 weighted noise values AND an offset reflecting the User\u2019s navigational input.&nbsp;&nbsp; The terrain is then textured by a complex blending of multiple (normal mapped) textures.&nbsp; The problem of \u201cheight layering\u201d of these textures has been solved by adding an additional noise value (\u201cmoisture\u201d) to effectively produce discrete biomes.   All variables are user controllable using a <a href=\"http:\/\/www.apache.org\/licenses\/LICENSE-2.0\">DAT-GUI.<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Screenshots<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1918\" height=\"886\" src=\"https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-2.png\" alt=\"\" class=\"wp-image-234\" srcset=\"https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-2.png 1918w, https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-2-500x231.png 500w, https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-2-1568x724.png 1568w\" sizes=\"auto, (max-width: 1918px) 100vw, 1918px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"884\" src=\"https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-1.png\" alt=\"\" class=\"wp-image-236\" srcset=\"https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-1.png 1919w, https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-1-500x230.png 500w, https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-1-1568x722.png 1568w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"888\" src=\"https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-3.png\" alt=\"\" class=\"wp-image-235\" srcset=\"https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-3.png 1919w, https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-3-500x231.png 500w, https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-3-1568x726.png 1568w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1105\" height=\"466\" src=\"https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-4.png\" alt=\"\" class=\"wp-image-246\" srcset=\"https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-4.png 1105w, https:\/\/www.maxcanvas.org\/wp-content\/uploads\/2019\/02\/CaptureThree-4-500x211.png 500w\" sizes=\"auto, (max-width: 1105px) 100vw, 1105px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Year 2 Shader Project, using THREE.JS to both generate and texture a 3D terrain scene. Available at THIS LINK (opens in new window) CAUTION: This is a WebGL project and requires your browser to have it enabled. The textures are also rather large, so expect a loading delay. Screen shots are provided below. Technical Details [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_oct_exclude_from_cache":false,"footnotes":""},"class_list":["post-232","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/www.maxcanvas.org\/index.php?rest_route=\/wp\/v2\/pages\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.maxcanvas.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.maxcanvas.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.maxcanvas.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.maxcanvas.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=232"}],"version-history":[{"count":9,"href":"https:\/\/www.maxcanvas.org\/index.php?rest_route=\/wp\/v2\/pages\/232\/revisions"}],"predecessor-version":[{"id":611,"href":"https:\/\/www.maxcanvas.org\/index.php?rest_route=\/wp\/v2\/pages\/232\/revisions\/611"}],"wp:attachment":[{"href":"https:\/\/www.maxcanvas.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}