{"id":403512,"date":"2024-06-29T17:10:17","date_gmt":"2024-06-29T17:10:17","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=403512"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=403512","title":{"rendered":"<span>\u041f\u0440\u043e\u0441\u0442\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043c\u0438\u0440\u0430, \u0438\u043b\u0438 \u0428\u0443\u043c\u044b \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u043d\u0430 Python<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/u7\/s6\/qh\/u7s6qhmzvtliomcs7_jnrbxoxyy.png\" data-src=\"https:\/\/habrastorage.org\/webt\/u7\/s6\/qh\/u7s6qhmzvtliomcs7_jnrbxoxyy.png\"\/><\/div>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b <a href=\"https:\/\/habr.com\/ru\/companies\/selectel\/articles\/704040\/\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 Ursina Engine \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043b, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0442\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u0443\u044e \u0438\u0433\u0440\u0443 \u043d\u0430 Python. \u041c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c\u0438 \u0432\u0441\u043a\u043e\u043b\u044c\u0437\u044c \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b \u043f\u0440\u043e \u0448\u0443\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430. \u042d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0445 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043c\u0438\u0440\u043e\u0432. \u0425\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043d\u0435\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c perlin-noise.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0435 \u0442\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u044b\u0435 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u044b \u043d\u0430 Python, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442!<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<blockquote><p>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u0434\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0430\u0432\u043e\u043a \u2014 \u043d\u0435\u043e\u0442\u044a\u0435\u043c\u043b\u0435\u043c\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438. \u041e\u0431\u0440\u0430\u0449\u0430\u0439\u0442\u0435\u0441\u044c \u043a \u043d\u0438\u043c, \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u041d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u043c\u043e\u0433\u0443 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/p><\/blockquote>\n<p>  <font color=\"#EB4247\"><\/p>\n<h2>\u041d\u0435\u0443\u0434\u0430\u0447\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442<\/h2>\n<p><\/font><br \/>  <i>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f.<\/i> \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0432\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0448\u0443\u043c\u044b \u041f\u0435\u0440\u043b\u0438\u043d\u0430, \u044f \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430.<\/p>\n<p>  \u0418\u0434\u0435\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0439: \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>y<\/code>, \u0432\u044b\u0441\u043e\u0442\u0443. \u041f\u043e\u0441\u043b\u0435 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043d\u043e\u0432\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <code>y<\/code> \u0438\u043b\u0438 <code>y-1<\/code> \u0432\u043e\u043a\u0440\u0443\u0433 \u044d\u0442\u0438\u0445 \u0432\u043e\u0437\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439. \u0422\u0430\u043a \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043b\u0430\u0432\u043d\u044b\u0439 \u0433\u043e\u0440\u043d\u044b\u0439 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442. \u041d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0431\u044b\u043b\u043e \u043f\u0430\u0440\u0443 \u043d\u044e\u0430\u043d\u0441\u043e\u0432:<\/p>\n<ol>\n<li>\u0418\u043d\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043d\u0435 \u0433\u043e\u0440\u044b, \u0430 \u043a\u0440\u0438\u0432\u044b\u0435 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u0438 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0438\u0435 \u0441\u0442\u0435\u043d\u044b. <\/li>\n<li>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043c\u0438\u0440\u043e\u0432. \u041d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430.<\/li>\n<\/ol>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u043f\u044f\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0438\u0433\u0440\u044b: \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043c\u0438\u0440\u0430 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430. \u0422\u0430\u043a\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0447\u0430\u043d\u043a\u043e\u0432. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0445\u043e\u0434\u0430 \u0432 \u0438\u0433\u0440\u0443 \u0432\u0441\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443, \u0430 \u043d\u0435 \u043f\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u043c\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u041a\u0430\u043a \u0440\u0430\u0437 \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0440\u0435\u0448\u0430\u0435\u0442 \u0448\u0443\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430.<\/p>\n<p>  <a href=\"https:\/\/selectel.ru\/services\/dedicated\/?utm_source=habr.com&amp;utm_medium=referral&amp;utm_campaign=dedicated_article_perlin_250423_banner_023_ord\"><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/dx\/j2\/q_\/dxj2q_mfpu5axghsdyw8u_pdetg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/dx\/j2\/q_\/dxj2q_mfpu5axghsdyw8u_pdetg.png\"\/><\/div>\n<p><\/a><br \/>  <font color=\"#EB4247\"><\/p>\n<h2>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0448\u0443\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430<\/h2>\n<p><\/font>  <\/p>\n<blockquote><p>\u0428\u0443\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u2014 \u044d\u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0441\u0435\u0432\u0434\u043e\u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c. \u041c\u0435\u0445\u0430\u043d\u0438\u043a\u0430 \u0442\u0430\u043a\u0430\u044f: \u0432\u044b \u043f\u043e\u0434\u0430\u0435\u0442\u0435 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0447\u0438\u0441\u043b\u043e <code>seed<\/code>, \u043d\u0430 \u0431\u0430\u0437\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430.<\/p><\/blockquote>\n<p>  <i>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0442\u0435\u043e\u0440\u0438\u0438.<\/i> \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0431\u0435\u043b\u043e\u0433\u043e \u0448\u0443\u043c\u0430, \u0443 \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0432\u043d\u044b\u0435 \u00ab\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b\u00bb \u043c\u0435\u0436\u0434\u0443 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u0430\u043c\u0438 \u0438 \u043c\u0438\u043d\u0438\u043c\u0443\u043c\u0430\u043c\u0438. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0441\u0430\u043c\u0438:<\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<td><b>\u0411\u0435\u043b\u044b\u0439 \u0448\u0443\u043c<\/b>  <\/td>\n<td><b>\u0428\u0443\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430<\/b>  <\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/h1\/gi\/gr\/h1gigrbp8pxfb1bjfihbwpzw0om.png\" data-src=\"https:\/\/habrastorage.org\/webt\/h1\/gi\/gr\/h1gigrbp8pxfb1bjfihbwpzw0om.png\"\/><\/div>\n<p>  <\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/g9\/4k\/z-\/g94kz-4cprq_fc3opx7qujqrgls.png\" data-src=\"https:\/\/habrastorage.org\/webt\/g9\/4k\/z-\/g94kz-4cprq_fc3opx7qujqrgls.png\"\/><\/div>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><i>\u0412 \u0431\u043e\u043b\u044c\u0448\u0435\u043c \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0435 \u0448\u0443\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u0431\u0435\u043b\u044b\u0439 \u0448\u0443\u043c.<\/i><\/p>\n<p>  \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043d\u0430\u043a\u043b\u043e\u043d\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u044b\u0435 (\u043e\u043d\u0438 \u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0442 \u0432\u043e\u0437\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u043f\u0438\u043a\u0438), \u043b\u0438\u043d\u0435\u0439\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u0438\u0440\u0443\u0435\u0442 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u0435\u0442 \u0438\u0437\u043b\u043e\u043c\u044b \u0432 \u0438\u0445 \u043e\u043a\u0440\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044f\u0445.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ps\/xj\/rc\/psxjrcmxkdldei4s6df_uh7u2s4.gif\" data-src=\"https:\/\/habrastorage.org\/webt\/ps\/xj\/rc\/psxjrcmxkdldei4s6df_uh7u2s4.gif\"\/><\/div>\n<p>  <i>\u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0448\u0443\u043c\u0430 \u041f\u0435\u0440\u043b\u0438\u043d\u0430. \u0421\u0438\u043d\u0438\u0435 \u043f\u0440\u044f\u043c\u044b\u0435 \u2014 \u043d\u0430\u043a\u043b\u043e\u043d\u043d\u044b\u0435; \u043a\u0440\u0430\u0441\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f \u2014 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438, \u043a\u0440\u0438\u0432\u0430\u044f \u0411\u0435\u0437\u044c\u0435; \u0447\u0435\u0440\u043d\u0430\u044f \u0442\u043e\u0447\u0435\u0447\u043d\u0430\u044f \u2014 \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u00ab\u0438\u0437\u043b\u043e\u043c\u043e\u0432\u00bb \u043f\u043e\u0441\u043b\u0435 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438.<\/i><\/p>\n<p>  \u0421\u0430\u043c\u0430 \u043f\u043e \u0441\u0435\u0431\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0448\u0443\u043c\u044b (\u043a\u0440\u0438\u0432\u044b\u0435) \u2014 \u044d\u0442\u043e \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0432\u044b\u0448\u0435. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u00ab\u043d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u044b\u0435\u00bb \u043a\u0440\u0438\u0432\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0442\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e\u0442 \u0433\u043e\u0440\u044b, \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u0443\u043c\u043c\u0438\u0440\u0443\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0448\u0443\u043c\u043e\u0432. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u0443 \u043d\u0438\u0445 \u043e\u0442\u043b\u0438\u0447\u0430\u043b\u0438\u0441\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0435\u0440\u0438\u043e\u0434\u044b \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>x<\/code> \u0438 <code>2x<\/code>. \u041e\u0431\u044b\u0447\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u0440\u0430\u0442\u043d\u044b \u0434\u0432\u0443\u043c \u0438 \u043a\u0440\u0438\u0432\u044b\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043e\u043a\u0442\u0430\u0432\u0430\u043c\u0438: \u0447\u0435\u043c \u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u0435\u043c \u043d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u0435\u0439 \u0438 \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u0435\u0439 \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u044c.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/zf\/hz\/6l\/zfhz6ltev_a6edqtioah2mf76-q.png\" data-src=\"https:\/\/habrastorage.org\/webt\/zf\/hz\/6l\/zfhz6ltev_a6edqtioah2mf76-q.png\"\/><\/div>\n<p>  <i>\u041e\u0434\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0448\u0443\u043c\u0430 \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 4 \u043e\u043a\u0442\u0430\u0432.<\/i><\/p>\n<blockquote><p>\u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043c\u0430\u0442\u0430\u043f\u043f\u0430\u0440\u0430\u0442 \u041a\u0435\u043d\u0430 \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/eev.ee\/blog\/2016\/05\/29\/perlin-noise\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a> \u041b\u0435\u043a\u0441\u0438 \u041c\u043e\u043d\u0440\u043e. \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043d\u044f\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043a \u043f\u0440\u043e\u0447\u0442\u0435\u043d\u0438\u044e.<\/p><\/blockquote>\n<p>  <\/p>\n<h3>\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0448\u0443\u043c\u0430 \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u0438 \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c perlin-noise<\/h3>\n<p>  \u0412 \u0441\u0435\u0442\u0438 \u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0439\u0442\u0438 \u0440\u0430\u0431\u043e\u0447\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0448\u0443\u043c\u0430 \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u043d\u0430 Python. \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u044c \u0432\u0438\u0434\u043e\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0441\u043a\u0440\u0438\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 <a href=\"https:\/\/mrl.cs.nyu.edu\/~perlin\/doc\/oscar.html%23noise\">\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u043d\u0430 C<\/a>.<\/p>\n<pre><code class=\"python\">import numpy as np import matplotlib.pyplot as plot  def perlin(x, y, seed=0):    # \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0434\u043b\u044f \u0448\u0443\u043c\u0430 \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f seed    np.random.seed(seed)    ptable = np.arange(256, dtype=int)     # \u0440\u0430\u0437\u0431\u0440\u043e\u0441 \u043f\u0438\u043a\u043e\u0432 \u043f\u043e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c \u044f\u0447\u0435\u0439\u043a\u0430\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u044b    np.random.shuffle(ptable)     # \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u0435\u0440\u0442\u043a\u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0434\u043b\u044f \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438    ptable = np.stack([ptable, ptable]).flatten()     # \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0441\u0435\u0442\u043a\u0438    xi, yi = x.astype(int), y.astype(int)     # \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0439    xg, yg = x - xi, y - yi     # \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0437\u0430\u0442\u0443\u0445\u0430\u043d\u0438\u044f \u043a \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u043c \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0439    xf, yf = fade(xg), fade(yg)     # \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u043e\u0432 \u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u0445    n00 = gradient(ptable[ptable[xi] + yi], xg, yg)    n01 = gradient(ptable[ptable[xi] + yi + 1], xg, yg - 1)    n11 = gradient(ptable[ptable[xi + 1] + yi + 1], xg - 1, yg - 1)    n10 = gradient(ptable[ptable[xi + 1] + yi], xg - 1, yg)     # \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044f \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u043e\u0432 n00, n01, n11, n10    x1 = lerp(n00, n10, xf)    x2 = lerp(n01, n11, xf)    return lerp(x1, x2, yf)  def lerp(a, b, x):    \"\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438\"    return a + x * (b - a)  # \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u044f def fade(f):    return 6 * f ** 5 - 15 * f ** 4 + 10 * f ** 3  # \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u0430  def gradient(c, x, y):    vectors = np.array([[0, 1], [0, -1], [1, 0], [-1, 0]])    gradient_co = vectors[c % 4]    return gradient_co[:, :, 0] * x + gradient_co[:, :, 1] * y  # \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0440\u0430\u0432\u043d\u043e\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 perlin lin_array = np.linspace(1, 10, 500, endpoint=False) x, y = np.meshgrid(lin_array, lin_array)  # \u0432\u044b\u0432\u043e\u0434 \u0433\u0440\u0430\u0444\u0438\u043a\u0430 pyplot plot.imshow(perlin(x, y, seed=2), origin='upper') plot.show() <\/code><\/pre>\n<p>  <i>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u0443\u043c\u0430 \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u043f\u043e \u0432\u0435\u0440\u0441\u0438\u0438 <\/i><i><a href=\"https:\/\/iq.opengenus.org\/perlin-noise\/\">OpenGenus<\/a><\/i><i>.<\/i><\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u043c\u0438 \u0448\u0443\u043c\u0430 \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u0438 \u0438\u0445 \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u0435\u043c, \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u043c \u0433\u0440\u0430\u0434\u0438\u0435\u043d\u0442\u043e\u0432 \u0438 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044f\u043c\u0438, \u043f\u0440\u043e\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c <a href=\"https:\/\/pypi.org\/project\/perlin-noise\/\">perlin-noise<\/a>. \u041e\u043d \u043a\u043e\u043d\u0441\u043e\u043b\u0438\u0434\u0438\u0440\u0443\u0435\u0442 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0443: \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c \u0438 \u00ab\u043f\u043e\u0448\u0430\u043c\u0430\u043d\u0438\u0442\u044c\u00bb \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430:<\/p>\n<pre><code class=\"python\">from numpy import floor from perlin_noise import PerlinNoise import matplotlib.pyplot as plt  # \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0448\u0443\u043c\u0430 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438\u0437\u0430\u0446\u0438\u044f noise = PerlinNoise(octaves=2, seed=4522) amp = 6 period = 24 terrain_width = 300  #\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430  landscale = [[0 for i in range(terrain_width)] for i in range(terrain_width)]  for position in range(terrain_width**2):    # \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0432\u044b\u0441\u043e\u0442\u044b y \u0432 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0430\u0445 (x, z)    x = floor(position \/ terrain_width)    z = floor(position % terrain_width)    y = floor(noise([x\/period, z\/period])*amp)    landscale[int(x)][int(z)] = int(y)  plt.imshow(landscale) plt.show() <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0438 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u0441 \u0448\u0443\u043c\u043e\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430 \u0432 Matplotlib, \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/wx\/mb\/nc\/wxmbnc0z4qlqqp0glzfo2ntdn3s.png\" data-src=\"https:\/\/habrastorage.org\/webt\/wx\/mb\/nc\/wxmbnc0z4qlqqp0glzfo2ntdn3s.png\"\/><\/div>\n<p>  \u0413\u043e\u0442\u043e\u0432\u043e \u2014 \u0442\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u0430 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430, \u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0432 \u0438\u0433\u0440\u0443. \u0412\u043e\u0437\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0438 \u0433\u043e\u0440\u044b \u2014 \u044d\u0442\u043e \u044f\u0440\u043a\u043e \u0436\u0435\u043b\u0442\u044b\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u043d\u0438\u0437\u0448\u0438\u0435 \u0443\u0440\u043e\u0432\u043d\u0438 \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0431\u043e\u043b\u0435\u0435 \u0445\u043e\u043b\u043e\u0434\u043d\u044b\u043c\u0438 \u0446\u0432\u0435\u0442\u0430\u043c\u0438.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/cx\/is\/xo\/cxisxom4tdu3jkpgkrcv1-bdpyc.png\" data-src=\"https:\/\/habrastorage.org\/webt\/cx\/is\/xo\/cxisxom4tdu3jkpgkrcv1-bdpyc.png\"\/><\/div>\n<p>  <font color=\"#EB4247\"><\/p>\n<h2>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b perlin-noise<\/h2>\n<p><\/font><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c\u0441\u044f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432 perlin-noise. \u0418 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u043f\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445.<\/p>\n<p>  <b>octaves<\/b> \u2014 \u044d\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0440\u0438\u0432\u044b\u0445 \u041f\u0435\u0440\u043b\u0438\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0437\u0430 \u043d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u043e\u0441\u0442\u044c \u0448\u0443\u043c\u0430. \u0427\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u0442\u0435\u043c \u00ab\u043d\u0435\u043e\u0431\u044b\u0447\u043d\u0435\u0439\u00bb \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442 \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u0444\u043e\u0440\u043c\u0435.<\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<td>octaves = 1  <\/td>\n<td>octaves = 3  <\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/np\/sh\/v5\/npshv5vdrs9v-ig4pdz-w1r9vsg.png\" data-src=\"https:\/\/habrastorage.org\/webt\/np\/sh\/v5\/npshv5vdrs9v-ig4pdz-w1r9vsg.png\"\/><\/div>\n<p>  <\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/aw\/40\/u9\/aw40u942pwa8xsml7rk8lvpqrzc.png\" data-src=\"https:\/\/habrastorage.org\/webt\/aw\/40\/u9\/aw40u942pwa8xsml7rk8lvpqrzc.png\"\/><\/div>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><b>a<\/b><b>mp<\/b> \u2014 \u044d\u0442\u043e \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0438\u0442\u043e\u0433\u043e\u0432\u0443\u044e \u0432\u044b\u0441\u043e\u0442\u0443 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u044b y.<\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<td>amp = 6  <\/td>\n<td>amp = 10  <\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/aw\/40\/u9\/aw40u942pwa8xsml7rk8lvpqrzc.png\" data-src=\"https:\/\/habrastorage.org\/webt\/aw\/40\/u9\/aw40u942pwa8xsml7rk8lvpqrzc.png\"\/><\/div>\n<p>  <\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qi\/ov\/5b\/qiov5bkpuew6ltzdeyw1p2yo3ka.png\" data-src=\"https:\/\/habrastorage.org\/webt\/qi\/ov\/5b\/qiov5bkpuew6ltzdeyw1p2yo3ka.png\"\/><\/div>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><b>period<\/b> \u2014 \u044d\u0442\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u043f\u0438\u043a\u043e\u0432 \u043a\u0440\u0438\u0432\u043e\u0439 \u041f\u0435\u0440\u043b\u0438\u043d\u0430. \u041f\u0440\u0438 \u0435\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0438 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0430\u0434\u043a\u043e\u0439.<\/p>\n<div class=\"scrollable-table\">\n<table>\n<tr>\n<td>period = 10  <\/td>\n<td>period = 24  <\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/7z\/ns\/yu\/7znsyucravjapjlihrfuwex0qt4.png\" data-src=\"https:\/\/habrastorage.org\/webt\/7z\/ns\/yu\/7znsyucravjapjlihrfuwex0qt4.png\"\/><\/div>\n<p>  <\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/qi\/ov\/5b\/qiov5bkpuew6ltzdeyw1p2yo3ka.png\" data-src=\"https:\/\/habrastorage.org\/webt\/qi\/ov\/5b\/qiov5bkpuew6ltzdeyw1p2yo3ka.png\"\/><\/div>\n<p>  <\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p><b>seed<\/b> \u2014 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0430\u0448\u0443 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e. \u0412 \u0438\u0433\u0440\u0430\u0445 \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0432\u043e\u0434\u0438\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c. \u041e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u2014 octaves, amp \u0438 period \u2014 \u043a\u043e\u043d\u0441\u043e\u043b\u0438\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u00ab\u0438\u0437\u0432\u043d\u0435\u00bb.<\/p>\n<hr\/>\n<p>  perlin-noise \u2014 \u043d\u0435\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0434\u0430\u0436\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u044d\u0442\u0438\u043c \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0432 \u0442\u0430\u043d\u0435\u0446 \u0441 \u0431\u0443\u0431\u043d\u043e\u043c, \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043c\u0438\u0440 \u0438\u0437 The Legend of Zelda.<\/p>\n<p>  \u0413\u043b\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e\u0431\u044b \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0435 \u0443\u043f\u0438\u0440\u0430\u043b\u0438\u0441\u044c \u0432 \u043f\u043e\u0442\u043e\u043b\u043e\u043a. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 period \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435, \u0430 \u0440\u0430\u0437\u043c\u0430\u0445 amp \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0432\u0435\u043b\u0438\u043a, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0431\u0435\u043b\u044b\u0439 \u0448\u0443\u043c. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u0430\u043c\u0438, \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <a href=\"https:\/\/github.com\/VladDoctor\/perlin-landscale\">\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043d\u0430 GitHub<\/a>. \u0414\u0435\u043b\u0430\u0439\u0442\u0435 \u0444\u043e\u0440\u043a \u0438 \u0434\u0435\u043b\u0438\u0442\u0435\u0441\u044c \u0441\u0432\u043e\u0438\u043c\u0438 \u043c\u0438\u0440\u0430\u043c\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445!<\/p>\n<blockquote><p><b>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u0438 \u0442\u0435\u043a\u0441\u0442\u044b \u0442\u043e\u0436\u0435 \u0432\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442:<\/b><\/p>\n<p>  \u2192 <a href=\"https:\/\/habr.com\/ru\/company\/selectel\/blog\/727888\">\u0420\u0435\u043c\u043e\u043d\u0442 \u0438\u0433\u0440\u043e\u0432\u043e\u0433\u043e \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430 \u0441 \u043f\u0440\u043e\u0433\u0430\u0440\u043e\u043c \u0432 \u043f\u043b\u0430\u0442\u0435 \u0431\u0435\u0437 \u0441\u0445\u0435\u043c\u044b: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043a \u0436\u0438\u0437\u043d\u0438 \u00ab\u043f\u043e\u0445\u043e\u0440\u043e\u043d\u0435\u043d\u043d\u044b\u0439\u00bb \u0441\u0435\u0440\u0432\u0438\u0441\u043d\u044b\u043c\u0438 \u0446\u0435\u043d\u0442\u0440\u0430\u043c\u0438 CLEVO P970<\/a><br \/>  \u2192 <a href=\"https:\/\/habr.com\/ru\/company\/selectel\/blog\/726488\">\u0410 \u043f\u043e\u0442\u043e\u043c \u0441\u043d\u0438\u0437\u0443 \u043f\u043e\u0441\u0442\u0443\u0447\u0430\u043b\u0438: \u043f\u0440\u043e\u0434\u0430\u0436\u0438 \u0436\u0435\u0441\u0442\u043a\u0438\u0445 \u0434\u0438\u0441\u043a\u043e\u0432 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e\u0442 \u043e\u0431\u0432\u0430\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f. \u041f\u0430\u0434\u0430\u044e\u0442 \u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u0438 \u041f\u041a \u0441 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430\u043c\u0438<\/a><br \/>  \u2192 <a href=\"https:\/\/habr.com\/ru\/company\/selectel\/blog\/729856\">\u041a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0441 Payments \u043a Telegram<\/a><\/p><\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/731506\/\"> https:\/\/habr.com\/ru\/articles\/731506\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/u7\/s6\/qh\/u7s6qhmzvtliomcs7_jnrbxoxyy.png\" data-src=\"https:\/\/habrastorage.org\/webt\/u7\/s6\/qh\/u7s6qhmzvtliomcs7_jnrbxoxyy.png\"\/><\/div>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u0432\u044b\u043f\u0443\u0441\u0442\u0438\u043b <a href=\"https:\/\/habr.com\/ru\/companies\/selectel\/articles\/704040\/\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 Ursina Engine \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043b, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0442\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u0443\u044e \u0438\u0433\u0440\u0443 \u043d\u0430 Python. \u041c\u0435\u0436\u0434\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c\u0438 \u0432\u0441\u043a\u043e\u043b\u044c\u0437\u044c \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u043b \u043f\u0440\u043e \u0448\u0443\u043c \u041f\u0435\u0440\u043b\u0438\u043d\u0430. \u042d\u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u043d\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0445 \u0438\u0433\u0440\u043e\u0432\u044b\u0445 \u043c\u0438\u0440\u043e\u0432. \u0425\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u043d\u0435\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c perlin-noise.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043a\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0435 \u0442\u0440\u0435\u0445\u043c\u0435\u0440\u043d\u044b\u0435 \u043b\u0430\u043d\u0434\u0448\u0430\u0444\u0442\u044b \u043d\u0430 Python, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442!  <\/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-403512","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/403512","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=403512"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/403512\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=403512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=403512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=403512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}