{"id":301633,"date":"2020-04-10T15:00:09","date_gmt":"2020-04-10T15:00:09","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=301633"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-04-10T15:00:09","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=301633","title":{"rendered":"\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u044b\u0445 \u043a\u0430\u0440\u0442 \u0448\u0443\u043c\u0430"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/496308\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b72\/cbf\/259\/b72cbf2592b2e142259d2cc3f7b13d6f.jpg\" alt=\"image\"><\/div>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 Photoshop \u043b\u0435\u0433\u043a\u043e: \u043e\u0431\u0440\u0435\u0437\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0432\u0437\u044f\u0442\u044c \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u043d\u0443\u044e \u043f\u0440\u0430\u0432\u0443\u044e \u0438 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u0438, \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u0438\u043a\u043b\u0435\u0438\u0442\u044c \u0438\u0445 \u0441\u043b\u0435\u0432\u0430 \u0438 \u0441\u0432\u0435\u0440\u0445\u0443 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u00ab\u041e\u0441\u043b\u0430\u0431\u0438\u0442\u044c\u00bb (Fade). \u041d\u043e \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u044b\u0445 \u043a\u0430\u0440\u0442 \u0448\u0443\u043c\u0430 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0435\u043d\u044c\u043a\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c <a href=\"http:\/\/freespace.virgin.net\/hugo.elias\/models\/m_perlin.htm\" title=\"Hugo Elias on Perlin noise\" rel=\"nofollow\">\u0431\u0430\u0437\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0448\u0443\u043c\u0435 \u041f\u0435\u0440\u043b\u0438\u043d\u0430<\/a>, \u0442\u043e \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u043e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0434\u0432\u0443\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445. \u041d\u043e \u0442\u0430\u043a\u0436\u0435 \u043e\u043d \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438), \u0432 \u0442\u0440\u0451\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445 (\u0446\u0438\u043b\u0438\u043d\u0434\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438 \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 3D-\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432), \u0438 \u0434\u0430\u0436\u0435 \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0438\u043b\u0438 \u043f\u044f\u0442\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445.<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u044b\u0439 \u0448\u0443\u043c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u043e\u0433\u043e 2D-\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u0414\u0443\u043c\u0430\u0442\u044c \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445 \u043d\u0430\u043c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0431\u0440\u0430\u0442\u044c \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044e \u0437\u0430 \u0440\u0430\u0437.<\/p>\n<p>  \u0412 <a href=\"http:\/\/test.ronvalstar.nl\/noiseTiling\" rel=\"nofollow\">\u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445<\/a> \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"http:\/\/en.wikipedia.org\/wiki\/Simplex_noise\" title=\"Simplex noise on Wikipedia\" rel=\"nofollow\">\u0441\u0438\u043c\u043f\u043b\u0435\u043a\u0441-\u0448\u0443\u043c<\/a> \u0441 \u0434\u0432\u0443\u043c\u044f \u043e\u043a\u0442\u0430\u0432\u0430\u043c\u0438. \u0421\u0438\u043c\u043f\u043b\u0435\u043a\u0441-\u0448\u0443\u043c \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044f\u0445, \u0430 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0432\u043e\u0435\u0439 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u0438\u0440\u043e\u0434\u0435 \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043b\u0443\u0447\u0448\u0435.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u042f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>drawNoise<\/code> \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0445\u043e\u043b\u0441\u0442\u0430 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432 \u0446\u0438\u043a\u043b\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043f\u0438\u043a\u0441\u0435\u043b\u0435\u0439.<\/p>\n<h2>\u041e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0439 \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u044b\u0439 \u0448\u0443\u043c<\/h2>\n<p>  \u0412 \u043e\u0434\u043d\u043e\u043c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0438 \u0448\u0443\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u043f\u043b\u0430\u0432\u043d\u043e\u0439 \u043b\u0438\u043d\u0438\u0435\u0439 (\u043c\u043e\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u0443\u043c\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0434\u0432\u0443\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443). \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430.<\/p>\n<pre><code class=\"javascript\">\/\/ one dimensional line fNoiseScale = .02; drawNoise(function(i,x,y){     var v = Simplex.noise(          123+x*fNoiseScale         ,137 \/\/ we just need one dimension so this parameter is a constant     );     return v*iSize&gt;y?255:0; }).img();<\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/fee\/37f\/7e1\/fee37f7e153a8615cbd8fd6930d61fec.jpg\"><\/div>\n<p>  <i>\u041e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u044b\u0439 \u0448\u0443\u043c<\/i><\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u043a\u0430\u0436\u0434\u0443\u044e \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0448\u0443\u043c\u0430, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u0440\u0430\u043d\u0435\u0435. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u0432\u044b\u0448\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043d\u0435 \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u043a\u0440\u0430\u044f\u043c. \u041d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c\u043e\u0441\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0435\u0449\u0451 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0442\u043b\u0438\u2026 \u0438\u043b\u0438 \u043a\u0440\u0443\u0433\u0430.<\/p>\n<h2>\u041e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u0430\u044f \u043f\u0435\u0442\u043b\u044f<\/h2>\n<p>  \u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0438\u0437 \u0432\u0430\u0441 \u0448\u0443\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043d\u0438\u0436\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/02b\/129\/aad\/02b129aadc25be9d0e74688ff1c702ff.jpg\"><\/div>\n<p>  \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b\u0438 \u0437\u0434\u0435\u0441\u044c \u043a\u0440\u0443\u0433 \u0438 \u0441\u0447\u0438\u0442\u0430\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0448\u0443\u043c\u0430 \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0440\u0443\u0433\u0435, \u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u0443\u044e \u043f\u0435\u0442\u043b\u044e.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/88a\/6d9\/247\/88a6d9247a7dd2a9cbab6cf9ee08463b.jpg\"><\/div>\n<p>  <i>\u0428\u0443\u043c \u0441 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0439 \u043f\u0435\u0442\u043b\u0438.<\/i><\/p>\n<p>  \u0412 \u043a\u043e\u0434\u0435 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">\/\/ one dimensional loop drawNoise(function(i,x,y){     var fNX = x\/iSize \/\/ we let the x-offset define the circle         ,fRdx = fNX*2*Math.PI \/\/ a full circle is two pi radians         ,a = fRdsSin*Math.sin(fRdx)         ,b = fRdsSin*Math.cos(fRdx)         ,v = Simplex.noise(              123+a*fNoiseScale             ,132+b*fNoiseScale         )     ;     return v*iSize&gt;y?255:0; }).img().div(2);<\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/3da\/43d\/f64\/3da43df64f677b0f55cfbcdc38a01c3e.jpg\"><\/div>\n<p>  \u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0432\u044b \u0443\u0436\u0435 \u043f\u043e\u043d\u044f\u043b\u0438, \u043a \u0447\u0435\u043c\u0443 \u043c\u044b \u0438\u0434\u0451\u043c. \u0414\u043b\u044f \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u044f \u0434\u0432\u0443\u0445\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0442\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u0430\u044f (\u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c) \u043a\u0430\u0440\u0442\u0430 \u0448\u0443\u043c\u0430.<\/p>\n<h2>\u0426\u0438\u043b\u0438\u043d\u0434\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0430<\/h2>\n<p>  \u0428\u0443\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u0434\u043b\u044f \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0433\u043e 3D-\u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u0444\u0438\u043b\u044c\u043c \u00ab\u0422\u0440\u043e\u043d\u00bb). \u041a\u0430\u0440\u0442\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438\u0441\u0442\u043e\u043c \u0431\u0443\u043c\u0430\u0433\u0438, \u043e\u0431\u0451\u0440\u043d\u0443\u0442\u044b\u043c \u0432\u043e\u043a\u0440\u0443\u0433 \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0432 \u0442\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u043e\u043c \u043f\u043e\u043b\u0435 \u0448\u0443\u043c\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438 \u0440\u0430\u0437\u0440\u0435\u0437\u0430\u043d\u0438\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u044b \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0441\u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0439 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0446\u0435\u043b\u0438 \u2014 \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u043c\u044b \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c\u043e\u0435 \u0441\u043b\u0435\u0432\u0430 \u0438 \u0441\u043f\u0440\u0430\u0432\u0430. \u042d\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0434\u0432\u0443\u0445\u043c\u0435\u0440\u043d\u0443\u044e \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0439 \u043f\u0435\u0442\u043b\u0438, \u043d\u043e \u0441 \u043e\u0434\u043d\u0438\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435\u043c: \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u043e\u043c.<\/p>\n<pre><code class=\"javascript\">\/\/ three dimensional cylindrical map drawNoise(function(i,x,y){     var fNX = x\/iSize         ,fRdx = fNX*2*Math.PI         ,a = fRdsSin*Math.sin(fRdx)         ,b = fRdsSin*Math.cos(fRdx)         ,v = Simplex.noise(              123+a*fNoiseScale             ,132+b*fNoiseScale             ,312+y*fNoiseScale \/\/ similar to the one dimensional loop but we add a third dimension defined by the image y-offset         )     ;     return v*255&lt;&lt;0; }).img().div(2);<\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/ddc\/f0b\/55b\/ddcf0b55bddba6cbc880300442a8b99e.jpg\"><\/div>\n<p>  <i>\u0426\u0438\u043b\u0438\u043d\u0434\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u0448\u0443\u043c\u0430<\/i><\/p>\n<h2>\u0421\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f<\/h2>\n<p>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0444\u0435\u0440\u0443, \u043d\u043e \u0432\u044b \u043e\u0448\u0438\u0431\u0430\u0435\u0442\u0435\u0441\u044c.<\/p>\n<p>  \u042f \u0441\u0434\u0435\u043b\u0430\u044e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u0438 \u043f\u043e\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u043d\u0430 \u0447\u0442\u043e \u043e\u043d\u0430 \u043f\u043e\u0445\u043e\u0436\u0430.<\/p>\n<pre><code class=\"javascript\">\/\/ three dimensional spherical map document.body.addChild('h2').innerText = 'three dimensional spherical map'; fNoiseScale = .1; var oSpherical = drawNoise(function(i,x,y){     var  fNX = (x+.5)\/iSize \/\/ added half a pixel to get the center of the pixel instead of the top-left         ,fNY = (y+.5)\/iSize         ,fRdx = fNX*2*Math.PI         ,fRdy = fNY*Math.PI \/\/ the vertical offset of a 3D sphere spans only half a circle, so that is one Pi radians         ,fYSin = Math.sin(fRdy+Math.PI) \/\/ a 3D sphere can be seen as a bunch of cicles stacked onto each other, the radius of each of these is defined by the vertical position (again one Pi radians)         ,a = fRdsSin*Math.sin(fRdx)*fYSin         ,b = fRdsSin*Math.cos(fRdx)*fYSin         ,c = fRdsSin*Math.cos(fRdy)         ,v = Simplex.noise(              123+a*fNoiseScale             ,132+b*fNoiseScale             ,312+c*fNoiseScale         )     ;     return v*255&lt;&lt;0; }).img();<\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a8f\/351\/5ec\/a8f3515eccdd052b51d6e76b530d96ba.jpg\"><\/div>\n<p>  <i>\u0421\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u0448\u0443\u043c\u0430<\/i><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/493\/7c2\/9e7\/4937c29e770cc3bcf0790d9ab03d18a7.jpg\"><\/div>\n<p>  <i>\u0421\u0444\u0435\u0440\u0430 \u0441 \u0448\u0443\u043c\u043e\u043c<\/i><\/p>\n<h2>\u041a\u0443\u0431\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0430\u043d\u043e\u0440\u0430\u043c\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0430<\/h2>\n<p>  \u0421\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043d\u0430\u043c\u0438 \u0441\u0444\u0435\u0440\u0443 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u0430\u043d\u043e\u0440\u0430\u043c\u0443, \u0435\u0441\u043b\u0438 \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432 \u0446\u0435\u043d\u0442\u0440\u0435 \u0441\u0444\u0435\u0440\u044b \u043a\u0430\u043c\u0435\u0440\u0443. \u041d\u043e \u043b\u0443\u0447\u0448\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u0443\u0431\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043d\u043e\u0440\u0430\u043c\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d\u0430 \u0438\u043c\u0435\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0433\u0440\u0430\u043d\u0435\u0439. \u0421\u0444\u0435\u0440\u0430 \u043f\u0440\u043e\u0435\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0448\u0435\u0441\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d \u043a\u0443\u0431\u0430, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u0441\u043a\u0438\u0437\u0435.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b23\/c53\/119\/b23c53119cd34d46d5643b7765a3db8d.jpg\"><\/div>\n<p>  <i>\u041d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u0444\u0435\u0440\u044b \u043d\u0430 \u043a\u0443\u0431<\/i><\/p>\n<p>  \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u043d\u0430 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438 \u043a\u0443\u0431\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0442\u043e\u0447\u043a\u043e\u0439 \u043e\u0431\u0437\u043e\u0440\u0430 C \u0432 \u0446\u0435\u043d\u0442\u0440\u0435 \u0438 \u0441\u0444\u0435\u0440\u043e\u0439. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u044b\u043c, \u043d\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432\u0441\u0451 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<p>  \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043b\u0438\u043d\u0438\u044e CA \u043a\u0430\u043a \u0432\u0435\u043a\u0442\u043e\u0440. \u0410 \u0432\u0435\u043a\u0442\u043e\u0440\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435 \u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c, \u043d\u043e \u0434\u043b\u0438\u043d\u0430 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043d\u0438\u0436\u0430\u043b\u0430\u0441\u044c \u0434\u043e 1. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043a\u0430\u043a \u0441\u0444\u0435\u0440\u0430.<\/p>\n<p>  \u041d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0442\u043e\u0436\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u043f\u043e xyz \u043d\u0430 \u043e\u0431\u0449\u0443\u044e \u0434\u043b\u0438\u043d\u0443 \u0432\u0435\u043a\u0442\u043e\u0440\u0430. \u0414\u043b\u0438\u043d\u0443 \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u0435\u043e\u0440\u0435\u043c\u044b \u041f\u0438\u0444\u0430\u0433\u043e\u0440\u0430.<\/p>\n<p>  \u0412 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c \u043d\u0438\u0436\u0435 \u043a\u043e\u0434\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u0433\u0440\u0430\u043d\u0438. \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0448\u0443\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0448\u0435\u0441\u0442\u0438 \u0440\u0451\u0431\u0435\u0440, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0433\u0440\u0430\u043d\u0438 \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e xyz.<\/p>\n<pre><code class=\"javascript\">\/\/ 3D panoramical cube map document.body.addChild('h2').innerText = '3D panoramical cube map'; \/\/ we're not using the drawNoise function because our canvas is rectangular var mCubemap = document.createElement('canvas')     ,iW = 6*iSize; mCubemap.width = iW; mCubemap.height = iSize; var  iHSize = iSize\/2 \/\/ half the size of the cube     ,oCtx = mCubemap.getContext('2d')     ,oImgData = oCtx.getImageData(0,0,iW,iSize)     ,aPixels = oImgData.data     ,aa = 123     ,bb = 231     ,cc = 321 ; for (var i=0,l=iSize*iSize;i&lt;l;i++) {     var  x = i%iSize        \/\/ x position in image         ,y = (i\/iSize)&lt;&lt;0    \/\/ y position in image         ,a = -iHSize + x+.5    \/\/ x position on the cube plane, the added .5 is to get the center of the pixel         ,b = -iHSize + y+.5 \/\/ y position on the cube plane         ,c = -iHSize        \/\/ z position of the cube plane         ,fDistanceAB = Math.sqrt(a*a+b*b) \/\/ to calculate the vectors length we use Pythagoras twice         ,fDistanceABC = Math.sqrt(fDistanceAB*fDistanceAB+c*c)         ,fDrds = .5*fDistanceABC \/\/ adjust the distance a bit to get a better radius in the noise field         ,v = 1     ;     a \/= fDrds; \/\/ normalize the vector     b \/= fDrds; \/\/ normalize the vector     c \/= fDrds; \/\/ normalize the vector     \/\/     \/\/ since we now know the spherical position for one plane we can derive the positions for the other five planes simply by switching the x, y and z values (the a, b and c variables)     var aNoisePositions = [          [a,b,c]    \/\/ back         ,[-c,b,a]    \/\/ right         ,[-a,b,-c]    \/\/ front         ,[c,b,-a]    \/\/ left         ,[a,c,-b]    \/\/ top         ,[a,-c,b]    \/\/ bottom     ];     for (var j=0;j&lt;6;j++) {         v = Simplex.noise(              aa + aNoisePositions[j][0]             ,bb + aNoisePositions[j][1]             ,cc + aNoisePositions[j][2]         );         var pos = 4*(y*iW+j*iSize+x); \/\/ the final position of the rgba pixel         aPixels[pos] = aPixels[pos+1] = aPixels[pos+2] = v*255&lt;&lt;0;         aPixels[pos+3] = 255;     } } oCtx.putImageData(oImgData,0,0); document.body.addChild('img',{src:mCubemap.toDataURL(&quot;image\/jpeg&quot;)});<\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0448\u0435\u0441\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u043e\u0434\u043d\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u043f\u043b\u044e\u0441 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438 \u0432\u0437\u0433\u043b\u044f\u0434\u0435 \u0438\u0437 \u043a\u0443\u0431\u0430. \u0412 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0435\u0441\u0442\u044c 3D-\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 <a href=\"https:\/\/github.com\/mrdoob\/three.js\/\" title=\"mr Doob&#39;s threejs on Github\" rel=\"nofollow\">threejs<\/a>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/34e\/e00\/0ad\/34ee000ada4ac534b92d51e92adaad8c.jpg\"><\/div>\n<p>  <i>\u041a\u0443\u0431\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u0430\u043d\u043e\u0440\u0430\u043c\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0430<\/i><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/eb3\/1a6\/c6f\/eb31a6c6ffbe85f0d62377d8997225f8.jpg\"><\/div>\n<p>  <\/p>\n<h2>\u0411\u0435\u0441\u0448\u043e\u0432\u043d\u043e\u0435 2D-\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u041c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u043e\u0435 2D-\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u0435\u0433\u043a\u043e, \u043d\u043e \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0435 \u0438\u0437 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u0441\u0442\u0430\u0442\u044c\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0434\u043b\u044f \u0435\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u0443\u043c\u0430\u0442\u044c \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445. \u0411\u043b\u0438\u0436\u0435 \u0432\u0441\u0435\u0433\u043e \u043a \u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b\u0430 \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0430\u0440\u0442\u0430 (\u0441 \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u0435\u0451 \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443. \u0412 \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0430\u0440\u0442\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0434\u043b\u044f \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f; \u0442\u043e \u0435\u0441\u0442\u044c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u0451\u0442 \u043d\u0430\u043c \u0434\u0432\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b x \u0438 y \u0432 \u043f\u043e\u043b\u0435 \u0448\u0443\u043c\u0430 xyz. \u0412\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 z \u0432 \u043f\u043e\u043b\u0435 \u0448\u0443\u043c\u0430.<\/p>\n<p>  \u041c\u044b \u0445\u043e\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u044b\u043c \u0438 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0449\u0451 \u043e\u0434\u043d\u043e \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435, \u0442\u043e \u0441\u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0442\u043e\u0440\u043e\u0439 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u0437\u0430\u043c\u0435\u043d\u044b \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f z \u043f\u043e\u043b\u044f. \u042d\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0432\u0443\u0445 \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u043e\u0432 \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u043e\u043c \u043f\u043e\u043b\u0435. \u042f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0430 \u044d\u0441\u043a\u0438\u0437\u0435, \u043e\u043d \u043d\u0435\u0442\u043e\u0447\u043d\u044b\u0439, \u043d\u043e \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u043f\u0440\u0438\u043d\u0446\u0438\u043f, \u0430 \u043d\u0435 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u044b\u0439 \u0446\u0438\u043b\u0438\u043d\u0434\u0440.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b72\/cbf\/259\/b72cbf2592b2e142259d2cc3f7b13d6f.jpg\"><\/div>\n<p>  <i>\u042d\u0441\u043a\u0438\u0437 \u0434\u0432\u0443\u0445 \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u043e\u0432 \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445<\/i><\/p>\n<p>  \u041a\u043e\u0434 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442: \u044d\u0442\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0434\u0432\u0435 \u043e\u043a\u0440\u0443\u0436\u043d\u043e\u0441\u0442\u0438 \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0448\u0443\u043c\u0430.<\/p>\n<pre><code class=\"javascript\">\/\/ four dimensional tile fNoiseScale = .003; drawNoise(function(i,x,y){     var  fNX = x\/iSize         ,fNY = y\/iSize         ,fRdx = fNX*2*Math.PI         ,fRdy = fNY*2*Math.PI         ,a = fRds*Math.sin(fRdx)         ,b = fRds*Math.cos(fRdx)         ,c = fRds*Math.sin(fRdy)         ,d = fRds*Math.cos(fRdy)         ,v = Simplex.noise(              123+a*fNoiseScale             ,231+b*fNoiseScale             ,312+c*fNoiseScale             ,273+d*fNoiseScale         )     ;     return (Math.min(Math.max(2*(v -.5)+.5,0),1)*255)&lt;&lt;0; }).img().div(2,2);<\/code><\/pre>\n<p>  \u0418 \u0432\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/421\/ea5\/5c4\/421ea55c40887a7d4fcb846d3ed35db1.jpg\" alt=\"image\"><\/div>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/496308\/\"> https:\/\/habr.com\/ru\/post\/496308\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/496308\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/b72\/cbf\/259\/b72cbf2592b2e142259d2cc3f7b13d6f.jpg\" alt=\"image\"><\/div>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 Photoshop \u043b\u0435\u0433\u043a\u043e: \u043e\u0431\u0440\u0435\u0437\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u0432\u0437\u044f\u0442\u044c \u043e\u0431\u0440\u0435\u0437\u0430\u043d\u043d\u0443\u044e \u043f\u0440\u0430\u0432\u0443\u044e \u0438 \u043d\u0438\u0436\u043d\u044e\u044e \u0447\u0430\u0441\u0442\u0438, \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u0440\u0438\u043a\u043b\u0435\u0438\u0442\u044c \u0438\u0445 \u0441\u043b\u0435\u0432\u0430 \u0438 \u0441\u0432\u0435\u0440\u0445\u0443 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u00ab\u041e\u0441\u043b\u0430\u0431\u0438\u0442\u044c\u00bb (Fade). \u041d\u043e \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u044b\u0445 \u043a\u0430\u0440\u0442 \u0448\u0443\u043c\u0430 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0435\u043d\u044c\u043a\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u0442\u044c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c <a href=\"http:\/\/freespace.virgin.net\/hugo.elias\/models\/m_perlin.htm\" title=\"Hugo Elias on Perlin noise\" rel=\"nofollow\">\u0431\u0430\u0437\u043e\u0432\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0448\u0443\u043c\u0435 \u041f\u0435\u0440\u043b\u0438\u043d\u0430<\/a>, \u0442\u043e \u0432\u044b \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u043e\u043d \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0412 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0434\u0432\u0443\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445. \u041d\u043e \u0442\u0430\u043a\u0436\u0435 \u043e\u043d \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0438), \u0432 \u0442\u0440\u0451\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445 (\u0446\u0438\u043b\u0438\u043d\u0434\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438 \u0441\u0444\u0435\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 3D-\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432), \u0438 \u0434\u0430\u0436\u0435 \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0438\u043b\u0438 \u043f\u044f\u0442\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445.<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u043c\u0435\u0440\u043d\u044b\u0439 \u0448\u0443\u043c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u0435\u0441\u0448\u043e\u0432\u043d\u043e\u0433\u043e 2D-\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u0414\u0443\u043c\u0430\u0442\u044c \u0432 \u0447\u0435\u0442\u044b\u0440\u0451\u0445 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u0445 \u043d\u0430\u043c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0431\u0440\u0430\u0442\u044c \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044e \u0437\u0430 \u0440\u0430\u0437.<\/p>\n<p>  \u0412 <a href=\"http:\/\/test.ronvalstar.nl\/noiseTiling\" rel=\"nofollow\">\u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445<\/a> \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"http:\/\/en.wikipedia.org\/wiki\/Simplex_noise\" title=\"Simplex noise on Wikipedia\" rel=\"nofollow\">\u0441\u0438\u043c\u043f\u043b\u0435\u043a\u0441-\u0448\u0443\u043c<\/a> \u0441 \u0434\u0432\u0443\u043c\u044f \u043e\u043a\u0442\u0430\u0432\u0430\u043c\u0438. \u0421\u0438\u043c\u043f\u043b\u0435\u043a\u0441-\u0448\u0443\u043c \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044f\u0445, \u0430 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0432\u043e\u0435\u0439 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u0438\u0440\u043e\u0434\u0435 \u043e\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043b\u0443\u0447\u0448\u0435.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-301633","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=301633"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/301633\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=301633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=301633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=301633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}