{"id":227201,"date":"2014-06-23T12:49:02","date_gmt":"2014-06-23T08:49:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=227201"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=227201","title":{"rendered":"<span class=\"post_title\">\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0434\u0432\u0438\u0436\u043e\u043a WebGL. \u0421\u0442\u0430\u0442\u044c\u044f \u21161. \u0425\u043e\u043b\u0441\u0442<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0427\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0434\u0432\u0438\u0436\u043e\u043a \u043d\u0430 webgl. <\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412\u0435\u0434\u044c, \u0433\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0434\u0432\u0438\u0436\u043e\u043a \u2014 \u044d\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438. \u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c, \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u043e\u0441\u043d\u043e\u0432\u044b webgl \u0438 \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0422\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u044f. <\/p>\n<h5>\u041f\u0435\u0440\u0432\u043e\u0435. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 \u043f\u0430\u043b\u044c\u0446\u0430\u0445<\/h5>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 (\u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u044b), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043d\u0430\u0431\u043e\u0440 \u0442\u043e\u0447\u0435\u043a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430. \u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c, \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u043e\u043a\u0440\u0443\u0433 \u0446\u0435\u043d\u0442\u0440\u0430 \u0438\u043b\u0438 \u0432\u043e\u043a\u0440\u0443\u0433 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438.<br \/>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043e\u0431\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u044d\u0442\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. <br \/>  \u0418 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u0440\u0442\u044b \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430\u0448\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h5>\u0412\u0442\u043e\u0440\u043e\u0435. \u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043e\u0431\u0440\u0438\u0441\u043e\u0432\u043a\u0438<\/h5>\n<p>  \u041c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043e\u0431\u0440\u0438\u0441\u043e\u0432\u043a\u0438, \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u043b\u0441\u0442 \u0438 \u043a\u0440\u0430\u0441\u043a\u0438 \u0434\u043b\u044f \u0445\u0443\u0434\u043e\u0436\u043d\u0438\u043a\u0430. \u041a\u0430\u043a\u043e\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u0432\u0435\u0441\u0442\u0438 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0448\u0435\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u0443 \u043d\u0435\u0433\u043e \u0431\u044b\u043b \u0433\u043e\u0442\u043e\u0432 \u0445\u043e\u043b\u0441\u0442? \u041f\u043e \u043c\u043e\u0435\u043c\u0443, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0445\u043e\u043b\u0441\u0442 \u0432 DOM\u0435. \u0410 \u043f\u043e\u0442\u043e\u043c \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u0446\u0432\u0435\u0442, \u0438 \u0440\u0430\u0437\u043c\u0435\u0440.<\/p>\n<pre><code class=\"javascript\">var scene = new Scene(&quot;webglID&quot;); scene.setBackgroundColor([0.1,0.5,0.6,0.2]); scene.setViewPort(300, 300); <\/code><\/pre>\n<p>  \u0427\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u0435\u0433\u0447\u0435, \u0435\u0441\u043b\u0438 \u0443\u0447\u0435\u0441\u0442\u044c, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430? <br \/>  \u00abwebglID\u00bb \u2014 \u044d\u0442\u043e id \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 canvas \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435.<br \/>  \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u043f\u043e\u043a\u0430 \u0442\u043e\u0436\u0435 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e, \u0432\u0435\u0434\u044c \u043f\u043e\u043a\u0430 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<\/p>\n<pre><code class=\"javascript\">function Scene(canvasID) { \tthis.backgroundColor = {red:1.0, green:1.0, blue:1.0, alpha:1.0};         this.canvas = document.getElementById(canvasID);         this.getContext(); } Scene.prototype = {     setViewPort: function(width,height){         this.gl.viewportWidth = width;         this.gl.viewportHeight = height;     }, \tsetBackgroundColor: function(colorVec){ \t\tif (colorVec){ \t\t\tif (colorVec.length &gt; 0)  \t\t\t{ \t\t\t\tthis.backgroundColor.red = colorVec[0]; \t\t\t} \t\t\tif (colorVec.length &gt; 1)  \t\t\t{ \t\t\t\tthis.backgroundColor.green = colorVec[1]; \t\t\t} \t\t\tif (colorVec.length &gt; 2)  \t\t\t{ \t\t\t\tthis.backgroundColor.blue = colorVec[2]; \t\t\t} \t\t\tif (colorVec.alpha &gt; 3)  \t\t\t{ \t\t\t\tthis.backgroundColor.red = colorVec[3]; \t\t\t} \t\t\t \t\t} \t},\t \tgetContext:function(){ \t\tvar names = [&quot;webgl&quot;, &quot;experimental-webgl&quot;, &quot;webkit-3d&quot;, &quot;moz-webgl&quot;]; \t\tthis.gl = null; \t\tfor (var ii = 0; ii &lt; names.length; ++ii) { \t\t\ttry { \t\t\t\tthis.gl = this.canvas.getContext(names[ii]); \t\t\t} catch(e) {}         if (this.gl) {             break;         } \t\t}\t \t \t} } <\/code><\/pre>\n<p>  (\u041c\u0435\u0442\u043e\u0434 getContext \u0432\u0437\u044f\u0442 \u0438\u0437 <a href=\"http:\/\/habrahabr.ru\/post\/112430\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a>. (\u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u0441\u0430\u043b \u2014 this.gl = this.canvas.getContext(\u00abwebgl\u00bb);)<\/p>\n<h6>\u0425\u043e\u043b\u0441\u0442 \u0441\u043e\u0437\u0434\u0430\u043d, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0441\u0442\u0438 \u043a\u0438\u0441\u0442\u0438 \u0438 \u043a\u0440\u0430\u0441\u043a\u0438<\/h6>\n<p>  \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043d\u0430\u0448 \u0434\u0432\u0438\u0436\u043e\u043a \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f:  <\/p>\n<ol>\n<li> \u0411\u0443\u0434\u0435\u043c \u043c\u044b \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0432\u0435\u0440\u0448\u0438\u043d\u0430\u043c \u0438\u043b\u0438 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c.<\/li>\n<li> \u0418\u0437 \u043a\u0430\u043a\u0438\u0445 \u0444\u0438\u0433\u0443\u0440 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u043d\u0430\u0448\u0438 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u044b.<\/li>\n<\/ol>\n<p>  <\/p>\n<ul>\n<li> LINES<\/li>\n<li>LINE_STRIP<\/li>\n<li>LINE_LOOP<\/li>\n<li>TRIANGLES<\/li>\n<li>TRIANGLE_STRIP<\/li>\n<li>TRIANGLE_FAN<\/li>\n<li>POINTS<\/li>\n<\/ul>\n<p>  \u0414\u043b\u044f \u0434\u0432\u0438\u0436\u043a\u0430 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c, \u043a\u0430\u043a \u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u044d\u0442\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e. \u0410 \u0442\u0438\u043f \u0444\u0438\u0433\u0443\u0440\u044b \u2014 TRIANGLES. \u0417\u0434\u0435\u0441\u044c \u0443\u0436\u0435 \u043c\u0435\u043d\u0435\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c.<\/p>\n<p>  \u041c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0431\u0443\u0444\u0435\u0440 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u0441\u0435\u0445 \u0432\u0435\u0440\u0448\u0438\u043d \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432. \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c, \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u2014 \u0442\u0438\u043f \u0444\u0438\u0433\u0443\u0440\u044b \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u0430\u043c\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u0435 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u0430. (\u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u2014 \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.) \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443 \u043d\u0430\u0441 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432\u044b\u0431\u043e\u0440 \u0441\u0440\u0435\u0434\u0438 \u2014 LINES, TRIANGLES \u0438 POINTS. \u042f \u0432\u044b\u0431\u0440\u0430\u043b TRIANGLES, \u043a\u0430\u043a \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0430\u044f\u0441\u044f \u0438\u0437\u043d\u0443\u0442\u0440\u0438 \u0444\u0438\u0433\u0443\u0440\u0430.<\/p>\n<p>  \u0421\u0430\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u0434\u0432\u0443\u0445 \u044d\u0442\u0430\u043f\u043e\u0432 \u2014 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442(\u044b) \u043d\u0430 \u0441\u0446\u0435\u043d\u0443 \u0438 \u0440\u0438\u0441\u0443\u0435\u043c \u0432\u0441\u044e \u0441\u0446\u0435\u043d\u0443. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 3 \u044d\u0442\u0430\u043f\u0430 \u2014 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u0446\u0435\u043d\u0443, \u043d\u0443 \u0438 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0439 \u0441\u0446\u0435\u043d\u044b.<\/p>\n<pre><code class=\"javascript\">var vertex = [ -50,50,50,  50,50,50, 50,-50,50, -50,-50,50     ]; var indices = [0,1,3,1,2,3]; var obj = new botuObject(vertex,indices);  scene.AddObject(obj); scene.draw();  <\/code><\/pre>\n<p>  botuObject \u2014 \u044d\u0442\u043e \u043d\u0430\u0448 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432. \u041d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0438\u0437\u044f\u0449\u043d\u044b\u0439, \u043d\u0443 \u043a\u0430\u043a\u043e\u0439 \u0435\u0441\u0442\u044c. \u041e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043d\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438. \u041f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443 \u0432\u0441\u0435 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u044b \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u044b \u0431\u0443\u0434\u0443\u0442 \u044d\u0442\u0438 \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0438, \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u041e \u043d\u0438\u0445 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445.<\/p>\n<p>  \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u0430:<\/p>\n<pre><code class=\"javascript\">function botuObject(vertex,indices){ \tthis.vertex = vertex; \tthis.indices = indices; \tthis.vertex.size = 3; } <\/code><\/pre>\n<p>  \u0425\u043e\u043b\u0441\u0442, \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f:  <\/p>\n<pre><code class=\"javascript\"> function Scene(canvasID) { \tthis.backgroundColor = {red:1.0, green:1.0, blue:1.0, alpha:1.0};     this.canvas = document.getElementById(canvasID);     this.getContext();     this.indicBuffer = &quot;&quot;; \tthis.vecVertex = []; \tthis.vecIndices = []; }  Scene.prototype = { \tclear: function(){ \t\tthis.indicBuffer = &quot;&quot;; \t\tthis.vecVertex = []; \t\tthis.vecIndices = [];\t\t\t \t},\t \tgetContext:function(){ \t\tvar names = [&quot;webgl&quot;, &quot;experimental-webgl&quot;, &quot;webkit-3d&quot;, &quot;moz-webgl&quot;]; \t\tthis.gl = null; \t\tfor (var ii = 0; ii &lt; names.length; ++ii) { \t\t\ttry { \t\t\t\tthis.gl = this.canvas.getContext(names[ii]); \t\t\t} catch(e) {}         if (this.gl) {             break;         } \t\t}\t\t \t},\t     initBuffers: function (vertex, indices) { \t\tthis.vertexBuffer = this.gl.createBuffer(); \t\tthis.vertexBuffer.size = vertex.size;                 this.gl.bindBuffer(this.gl.ARRAY_BUFFER, this.vertexBuffer);  \t\tthis.program.botuPositionAttr = this.gl.getAttribLocation(this.program, &quot;botuPosition&quot;); \t\tthis.gl.enableVertexAttribArray(this.program.botuPositionAttr);  \t\tthis.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array(vertex), this.gl.STATIC_DRAW); \t\t \t        if(indices)         {             this.indicBuffer = this.gl.createBuffer();             this.indicBuffer.numberOfItems = indices.length;             this.gl.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER, this.indicBuffer);             this.gl.bufferData(this.gl.ELEMENT_ARRAY_BUFFER, new Uint16Array(indices), this.gl.STATIC_DRAW);         }     },     initProgram: function (vxShaderDom, frShaderDom) {         var vxShader = document.getElementById(vxShaderDom).textContent;         var frShader = document.getElementById(frShaderDom).textContent;          this.program = createProgram(this.gl,vxShader, frShader); \t\tthis.gl.useProgram(this.program); \t\t \t\tthis.program.botuPositionAttr = this.gl.getAttribLocation(this.program, &quot;botuPosition&quot;); \t\tthis.gl.enableVertexAttribArray(this.program.botuPositionAttr); \t\t         function createProgram(context, vxs, frs) {             var prg = context.createProgram();             var VertexShader = createShader(context, context.VERTEX_SHADER, vxs);             var FragmentShader = createShader(context, context.FRAGMENT_SHADER, frs);             context.attachShader(prg,VertexShader);             context.attachShader(prg,FragmentShader);             context.linkProgram(prg);             if (!context.getProgramParameter(prg, context.LINK_STATUS)) {                 alert(context.getProgramInfoLog(prg));             }             return prg;         }         function createShader(context,type,shader)         {             var sh = context.createShader(type);             context.shaderSource(sh, shader);             context.compileShader(sh);             if (!context.getShaderParameter(sh, context.COMPILE_STATUS))             {                 alert(context.getShaderInfoLog(sh));             }             return sh;                     }     },     attributeSetup: function (attribName, attribSize) {         var attrib = this.gl.getAttribLocation(this.program, attribName);         this.gl.enableVertexAttribArray(attrib);         this.gl.vertexAttribPointer(attrib, attribSize, this.gl.FLOAT, false, 0, 0);         return attrib;     },      setViewPort: function(width,height){         this.gl.viewportWidth = width;         this.gl.viewportHeight = height;     }, \tsetBackgroundColor: function(colorVec){ \t\tif (colorVec){ \t\t\tif (colorVec.length &gt; 0)  \t\t\t{ \t\t\t\tthis.backgroundColor.red = colorVec[0]; \t\t\t} \t\t\tif (colorVec.length &gt; 1)  \t\t\t{ \t\t\t\tthis.backgroundColor.green = colorVec[1]; \t\t\t} \t\t\tif (colorVec.length &gt; 2)  \t\t\t{ \t\t\t\tthis.backgroundColor.blue = colorVec[2]; \t\t\t} \t\t\tif (colorVec.alpha &gt; 3)  \t\t\t{ \t\t\t\tthis.backgroundColor.red = colorVec[3]; \t\t\t} \t\t\t \t\t} \t},\t \tAddObject: function(botuObj){ \t\tthis.vecVertex.size = botuObj.vertex.size; \t\tvar next = Math.max(this.vecVertex.length \/ this.vecVertex.size,0); \t\tthis.vecVertex = this.vecVertex.concat(botuObj.vertex); \t\tthis.vecIndices = this.vecIndices.concat(botuObj.indices.map(function(i){return i + next})); \t\tthis.vecVertex.size = botuObj.vertex.size; \t},     draw: function () { \t\tthis.initProgram(&quot;vertexShader&quot;, &quot;fragmentShader&quot;); \t\tthis.initBuffers(this.vecVertex, this.vecIndices);                 this.gl.viewport(0, 0, this.gl.viewportWidth, this.gl.viewportHeight);         \t\tthis.gl.clearColor(this.backgroundColor.red,this.backgroundColor.green,this.backgroundColor.blue,this.backgroundColor.alpha); \t\tthis.gl.clear(this.gl.COLOR_BUFFER_BIT); \t\t        \t \t\tthis.gl.vertexAttribPointer(this.program.botuPositionAttr,this.vertexBuffer.size,this.gl.FLOAT,false,0,0); \t\tthis.gl.enable(this.gl.DEPTH_TEST); \t\tthis.gl.drawElements(this.gl.TRIANGLES, this.indicBuffer.numberOfItems, this.gl.UNSIGNED_SHORT, 0);\t\t     } } <\/code><\/pre>\n<p>  \u0427\u0438\u0442\u0430\u0442\u044c \u0447\u0443\u0436\u043e\u0439 \u043a\u043e\u0434 \u2014 \u0441\u0430\u043c\u043e\u0435 \u043d\u0435\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0435 \u0434\u0435\u043b\u043e, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u0435\u0445 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u043a\u043e\u0434 \u043c\u0430\u0441\u0442\u0435\u0440\u0430. \u0414\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430 \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043a\u0440\u0430\u0442\u0446\u0435 \u043e \u0432\u0441\u0435\u0445 \u043c\u0435\u0442\u043e\u0434\u0430\u0445:<\/p>\n<ul>\n<li>clear. \u041e\u0447\u0438\u0449\u0430\u0435\u0442 \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0431\u0443\u0444\u0435\u0440 \u0434\u043b\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d \u0434\u043b\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0438, \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u0439 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438.<\/li>\n<li>getContext \u0423\u0436\u0435 \u0431\u044b\u043b \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442. \u0412\u0437\u044f\u0442 \u0438\u0437 <a href=\"http:\/\/habrahabr.ru\/post\/112430\/\">\u0441\u0442\u0430\u0442\u044c\u0438<\/a>. \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0445\u043e\u043b\u0441\u0442\u0430. <\/li>\n<li>initProgram. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438 \u0448\u0435\u0439\u0434\u0435\u0440\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\u0441\u044f \u0438 \u043e\u0431\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0435\u0434\u043e\u0447\u0435\u0442 \u043c\u043e\u0435\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u2014 \u0448\u0435\u0439\u0434\u0435\u0440\u044b \u043f\u043e\u043a\u0430 \u0445\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0443\u0440\u0442\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443 (\u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c), \u043f\u043e\u0442\u043e\u043c \u043d\u0435\u0434\u043e\u0447\u0435\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d. <\/li>\n<li>attributeSetup. \u0415\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 \u0432 \u0448\u0435\u0439\u0434\u0435\u0440\u044b, \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0430\u0442\u0440\u0438\u0431\u0443\u0442.<\/li>\n<li>initBuffers. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u0443\u0444\u0435\u0440\u043e\u0432. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432-\u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043e\u0432.<\/li>\n<li>setViewPort. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0448\u0438\u0440\u0438\u043d\u0443 \u0438 \u0432\u044b\u0441\u043e\u0442\u0443 \u0445\u043e\u043b\u0441\u0442\u0430.<\/li>\n<li>setBackgroundColor. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0434\u043d\u0438\u0439 \u0444\u043e\u043d \u0445\u043e\u043b\u0441\u0442\u0430.<\/li>\n<li>AddObject. \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432. \u041a \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u0443 \u0442\u043e\u043b\u044c\u043a\u043e 2 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432\u0435\u0440\u0448\u0438\u043d \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432.<\/li>\n<li>draw. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c\u043e \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435.<\/li>\n<\/ul>\n<p>  \u0418\u0442\u0430\u043a, \u043f\u0435\u0440\u0432\u044b\u0439 \u044f\u0432\u043d\u044b\u0439 \u00ab\u043d\u0435\u0434\u043e\u0447\u0435\u0442\u00bb \u0434\u0432\u0438\u0436\u043a\u0430 \u2014 \u0448\u0435\u0439\u0434\u0435\u0440\u044b. \u0423 \u043c\u0435\u043d\u044f \u043e\u043d\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"javascript\">    &lt;script type=&quot;x-shader&quot; id=&quot;vertexShader&quot;&gt; \tattribute vec3 botuPosition;         varying vec4 colorPos;         void main(){         colorPos = vec4(max(botuPosition.x,(-1.0) * botuPosition.x) \/ 200.0, max(botuPosition.y,(-1.0) * botuPosition.y)  \/ 200.0, max(botuPosition.z,(-1.0) * botuPosition.z)  \/ 200.0,1.0);         gl_Position = vec4(botuPosition,200);         }     &lt;\/script&gt;     &lt;script type=&quot;x-shader&quot; id=&quot;fragmentShader&quot;&gt;         precision highp float;         varying vec4 colorPos;         void main(){         gl_FragColor = colorPos;         }     &lt;\/script&gt; <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442. \u041f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0442\u0435\u043a\u0441\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u0448\u0435\u0439\u0434\u0435\u0440\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n<h4>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435<\/h4>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u00ab\u0441\u0430\u043c\u043e\u043f\u0438\u0441\u043d\u043e\u0439\u00bb \u043c\u0430\u0442\u0440\u0438\u0446\u044b. \u0410 \u0442\u0430\u043a\u0436\u0435 \u043f\u0435\u0440\u0432\u044b\u0439 \u00ab\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439\u00bb \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432 \u2014 \u043a\u0443\u0431. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/227201\/\"> http:\/\/habrahabr.ru\/post\/227201\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0427\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0438\u044e \u0441\u0442\u0430\u0442\u0435\u0439 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0434\u0432\u0438\u0436\u043e\u043a \u043d\u0430 webgl. <\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412\u0435\u0434\u044c, \u0433\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0434\u0432\u0438\u0436\u043e\u043a \u2014 \u044d\u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438. \u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d \u043d\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c, \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b \u043e\u0441\u043d\u043e\u0432\u044b webgl \u0438 \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0422\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u044f. <\/p>\n<h5>\u041f\u0435\u0440\u0432\u043e\u0435. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430 \u043f\u0430\u043b\u044c\u0446\u0430\u0445<\/h5>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 (\u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u044b), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u043d\u0430\u0431\u043e\u0440 \u0442\u043e\u0447\u0435\u043a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430. \u041a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c, \u043f\u043e\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u043e\u043a\u0440\u0443\u0433 \u0446\u0435\u043d\u0442\u0440\u0430 \u0438\u043b\u0438 \u0432\u043e\u043a\u0440\u0443\u0433 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438.<br \/>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043e\u0431\u0440\u0438\u0441\u043e\u0432\u043a\u0438 \u044d\u0442\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. <br \/>  \u0418 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0447\u0442\u043e \u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u0440\u0442\u044b \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430\u0448\u0438 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f.<\/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-227201","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/227201","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=227201"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/227201\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=227201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=227201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=227201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}