{"id":4793,"date":"2013-01-18T21:32:42","date_gmt":"2013-01-18T12:32:42","guid":{"rendered":"http:\/\/clockmaker.jp\/blog\/?p=4793"},"modified":"2017-11-08T00:22:44","modified_gmt":"2017-11-07T15:22:44","slug":"threejs-optimum","status":"publish","type":"post","link":"https:\/\/clockmaker.jp\/blog\/2013\/01\/threejs-optimum\/","title":{"rendered":"WebGL\u5bfe\u5fdc\u306e\u30e9\u30a4\u30d6\u30e9\u30eaThree.js\u3092\u7206\u901f\u306b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p class=\"photo\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4795\" title=\"130118_threejs_tips\" src=\"https:\/\/clockmaker.jp\/blog\/wp-content\/uploads\/2013\/01\/130118_threejs_tips.png\" alt=\"\" width=\"460\" height=\"200\" \/><\/p>\n<p><a href=\"https:\/\/clockmaker.jp\/blog\/2013\/01\/threejs_vs_away3d\/\">\u524d\u56de\u306eWebGL(Three.js)\u3068Stage3D(Away3D)\u306e\u6bd4\u8f03<\/a>\u3067\u3059\u304c\u3001Mr.doob\u3055\u3093\u3092\u59cb\u3081\u56fd\u5185\u5916\u306e\u591a\u304f\u306e\u65b9\u304b\u3089\u3054\u6307\u6458\u9802\u304dWebGL(Three.js)\u7248\u3092\u6700\u9069\u5316\u3057\u305f\u3068\u3053\u308d\u3001\u6700\u7d42\u7684\u306b\u306fFlash(Away3D)\u7248\u3068\u540c\u3058\u3050\u3089\u3044\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5f53\u521d\u3001\u6700\u9069\u5316\u30fb\u691c\u8a3c\u4e0d\u8db3\u3067\u9593\u9055\u3063\u305f\u60c5\u5831\u3092\u63b2\u8f09\u3057\u3066\u3057\u307e\u3044\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3055\u3066\u3001\u305d\u306eWebGL(Three.js)\u7248\u3092\u6700\u9069\u5316\u3057\u305f\u624b\u6cd5\u304c\u6709\u610f\u7fa9\u3060\u3063\u305f\u306e\u3067\u30b7\u30a7\u30a2\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h3>\u30c7\u30e2\u306e\u7d39\u4ecb<\/h3>\n<p>\u307e\u305a\u306f\u3053\u3061\u3089\u306e2\u3064\u306e\u30c7\u30e2\u306e\u518d\u751f\u3092\u6bd4\u8f03\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002WebGL\u5bfe\u5fdc\u306e\u30d6\u30e9\u30a6\u30b6(\u4f8b\uff1aGoogle Chrome)\u3067\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u25bc\u6700\u9069\u5316\u524d<br \/>\n<script src=\"http:\/\/jsdo.it\/blogparts\/d0Nq\/js?width=465&amp;height=496&amp;view=javascript\" type=\"text\/javascript\"><\/script><br \/>\n\u25bc\u6700\u9069\u5316\u5f8c<br \/>\n<script src=\"http:\/\/jsdo.it\/blogparts\/vjy1\/js?width=465&amp;height=496&amp;view=javascript\" type=\"text\/javascript\"><\/script><\/p>\n<p>\u3069\u3046\u3067\u3057\u3087\u3046\uff1f<br \/>\n\u5727\u5012\u7684\u306b\u5f8c\u8005\u306e\u307b\u3046\u304c\u6ed1\u3089\u304b\u306b\u518d\u751f\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u5f8c\u8005\u306e\u307b\u3046\u306f\u914d\u7f6e\u3057\u3066\u3044\u308b3D\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6570\u304c10\u500d\u8fd1\u304f\u591a\u3044\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3067\u3059\u3002<\/p>\n<p>\u203b\u3061\u306a\u307f\u306bFlash Stage3D\u3060\u3068\u3053\u306e6\u500d\u4ee5\u4e0a\u306e100\u4e07\u30dd\u30ea\u30b4\u30f3\u306760fps\u3092\u9054\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/clockmaker.jp\/blog\/2013\/06\/away3d-merge-performance\/\">Stage3D\u5bfe\u5fdc\u306eAway3D 4.1 \u2013 Merge\u30af\u30e9\u30b9\u3067\u6700\u9069\u5316\u3057\u3066100\u4e07\u30dd\u30ea\u30b4\u30f3<\/a><\/li>\n<\/ul>\n<h3>\u6700\u9069\u5316\u306e\u79d8\u5bc6<\/h3>\n<p>\u6700\u9069\u5316\u306e\u79d8\u5bc6\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<a href=\"https:\/\/clockmaker.jp\/blog\/2013\/01\/away3d-particle-performance\/\">Flash(Away3D)\u306e\u6700\u9069\u5316<\/a>\u3067\u3082\u7d39\u4ecb\u3057\u305f\u306e\u3068\u540c\u69d8\u3001GPU\u3092\u7528\u3044\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u304a\u3044\u3066\u30c9\u30ed\u30fc\u30b3\u30fc\u30eb(\u63cf\u753b\u306e\u547d\u4ee4)\u306e\u56de\u6570\u306f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u6700\u3082\u5f71\u97ff\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u30c9\u30ed\u30fc\u30b3\u30fc\u30eb\u3092\u5c11\u306a\u304f\u3059\u308b\u3053\u3068\u304c3D\u30b3\u30f3\u30c6\u30f3\u30c4\u5236\u4f5c\u306e\u969b\u306b\u6700\u3082\u6c17\u306b\u7559\u3081\u308b\u3079\u304d\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5927\u91cf\u306e3D\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8868\u793a\u3059\u308b\u5834\u5408\u306f\u30013D\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b8\u30aa\u30e1\u30c8\u30ea(3D\u5f62\u72b6\u306b\u304a\u3051\u308b\u9802\u70b9\u306e\u5ea7\u6a19\u7fa4)\u3092\u7d50\u5408\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066GPU\u306b\u5bfe\u3059\u308b\u30c9\u30ed\u30fc\u30b3\u30fc\u30eb\u3092\u5c11\u306a\u304f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Three.js\u3067\u306f\u3001THREE.GeometryUtils.merge()\u30e1\u30bd\u30c3\u30c9\u3067\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u7d50\u5408\u3067\u304d\u307e\u3059\u3002\u30b3\u30fc\u30c9\u306f\u6b21\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\/\/ \u7a7a\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u4f5c\u6210\r\nvar geometry = new THREE.Geometry();\r\n\/\/ \u7acb\u65b9\u4f53\u500b\u5225\u306e\u8981\u7d20\u3092\u4f5c\u6210\r\nvar meshItem = new THREE.Mesh(new THREE.CubeGeometry(30, 30, 30, 1, 1, 1));\r\n\r\n\/\/ Box\r\nfor (var i = 0; i &lt; 10000; i++) {\r\n    meshItem.position.x = 10000 * Math.random();\r\n    meshItem.position.y = 10000 * Math.random();\r\n    meshItem.position.z = 10000 * Math.random();\r\n\r\n    \/\/ \u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u7d50\u5408\r\n    THREE.GeometryUtils.merge(geometry, meshItem);\r\n}\r\n\r\n\/\/ \u30de\u30c6\u30ea\u30a2\u30eb\u3092\u4f5c\u6210\r\nvar material = new THREE.MeshBasicMaterial({color:&quot;#F00&quot;});\r\n\r\n\/\/ 3D\u7a7a\u9593\u306b\u8ffd\u52a0\r\nvar mesh = new THREE.Mesh(geometry, material);\r\ncontainer.add(mesh);\r\n<\/pre>\n<p>3D\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4e00\u500b\u4e00\u500b3D\u7a7a\u9593\u306b\u8ffd\u52a0\u3057\u3066\u8868\u793a\u3059\u308b\u3088\u308a\u306f\u3001\u5927\u91cf\u306e\u7acb\u65b9\u4f53\u3092\u307e\u3068\u3081\u305f\u5de8\u5927\u306a3D\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30921\u500b\u3060\u30513D\u7a7a\u9593\u306b\u8ffd\u52a0\u3057\u305f\u307b\u3046\u304c\u8ca0\u8377\u304c\u5c11\u306a\u3044\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002\u524d\u8005\u306fGPU\u306b\u5bfe\u3057\u3066\u4e00\u500b\u4e00\u500b\u30c9\u30ed\u30fc\u30b3\u30fc\u30eb\u304c\u767a\u751f\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u5f8c\u8005\u3060\u30681\u56de\u306b\u307e\u3068\u3081\u3066(\u53b3\u5bc6\u306b\u306f\u8ee2\u9001\u3067\u304d\u308b\u9802\u70b9\u306e\u500b\u6570\u3067\u5206\u5272\u3057\u305f\u56de\u6570\u3060\u3051)\u30c9\u30ed\u30fc\u30b3\u30fc\u30eb\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h3>\u6ce8\u610f\u70b9<\/h3>\n<p>\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u307e\u3068\u3081\u3066\u3057\u307e\u3046\u306e\u3067\u30013D\u30aa\u30d6\u30b8\u30a7\u30af\u30c8(Mesh\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9)\u3068\u3057\u3066\u306f\u4e00\u3064\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u500b\u5225\u306b\u30de\u30c6\u30ea\u30a2\u30eb\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u30de\u30a6\u30b9\u30a4\u30d9\u30f3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u306f\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\uff08\u5de5\u592b\u6b21\u7b2c\u3067\u306f\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u7c21\u5358\u306b\u306f\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\uff09\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u540c\u3058\u3088\u3046\u306a\u5f62\u72b6\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u3092\u5927\u91cf\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u306b\u3053\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u4f7f\u3063\u3066\u307f\u308b\u3068\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u307e\u305f3D\u30e2\u30c7\u30eb\u3092\u7528\u610f\u3059\u308b\u3068\u304d\u3082\u3001\u51fa\u6765\u308b\u9650\u308a\u30e1\u30c3\u30b7\u30e5\u306f\u5206\u5272\u305b\u305a\u306b\u7528\u610f\u3059\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u3042\u305f\u308a\u306e\u6700\u9069\u5316\u30c6\u30af\u30cb\u30c3\u30af\u306fFlash Stage3D\u52c9\u5f37\u4f1a\u3067\u89e6\u308c\u3089\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u305d\u3061\u3089\u306e\u8cc7\u6599\u3082\u53c2\u8003\u306b\u3057\u3066\u307f\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><a title=\"Stage3D\u52c9\u5f37\u4f1a(\u7b2c2\u56de) \u2013 \u767a\u8868\u8cc7\u6599 | ClockMaker Blog\" href=\"https:\/\/clockmaker.jp\/blog\/2012\/08\/stage3d_study_2nd\/\">Stage3D\u52c9\u5f37\u4f1a(\u7b2c2\u56de) \u2013 \u767a\u8868\u8cc7\u6599 | ClockMaker Blog<\/a><br \/>\n\u203b<a title=\"\u3010\u6e80\u54e1\u5fa1\u793c\u3011Stage3D \u52c9\u5f37\u4f1a (\u7b2c3\u56de) : ATND\" href=\"http:\/\/atnd.org\/events\/36086\" target=\"_blank\" rel=\"noopener noreferrer\">Stage3D \u52c9\u5f37\u4f1a (\u7b2c3\u56de)<\/a>\u306e\u307b\u3046\u3082\u3088\u3051\u308c\u3070\u3054\u53c2\u52a0\u304f\u3060\u3055\u3044<\/p>\n<p>\u8ffd\u8a18\uff08\u5e73\u621029\u5e7411\u67088\u65e5\uff09\uff1a\u6700\u65b0\u7248\u30ea\u30d3\u30b8\u30e7\u30f3r88\u3067\u306e\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u7d50\u5408\u65b9\u6cd5\u3092ICS MEDIA\u306b\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u6700\u65b0\u306e\u60c5\u5831\u306f\u6b21\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/ics.media\/tutorial-three\/geometry_merge.html\">Three.js\u306e\u9ad8\u901f\u5316\u624b\u6cd5\uff1a\u30b8\u30aa\u30e1\u30c8\u30ea\u306e\u7d50\u5408 &#8211; ICS MEDIA<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306eWebGL(Three.js)\u3068Stage3D(Away3D)\u306e\u6bd4\u8f03\u3067\u3059\u304c\u3001Mr.doob\u3055\u3093\u3092\u59cb\u3081\u56fd\u5185\u5916\u306e\u591a\u304f\u306e\u65b9\u304b\u3089\u3054\u6307\u6458\u9802\u304dWebGL(Three.js)\u7248\u3092\u6700\u9069\u5316\u3057\u305f\u3068\u3053\u308d\u3001\u6700\u7d42\u7684\u306b\u306fFlash(Away3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5025,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/4793"}],"collection":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/comments?post=4793"}],"version-history":[{"count":2,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/4793\/revisions"}],"predecessor-version":[{"id":5266,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/4793\/revisions\/5266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/media\/5025"}],"wp:attachment":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/media?parent=4793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/categories?post=4793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/tags?post=4793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}