{"id":491,"date":"2008-09-15T14:01:14","date_gmt":"2008-09-15T05:01:14","guid":{"rendered":"http:\/\/clockmaker.jp\/blog\/?p=491"},"modified":"2008-09-15T14:01:14","modified_gmt":"2008-09-15T05:01:14","slug":"papervision3d_photo_particle","status":"publish","type":"post","link":"https:\/\/clockmaker.jp\/blog\/2008\/09\/papervision3d_photo_particle\/","title":{"rendered":"Papervision3D\u6f14\u51fa\u30b5\u30f3\u30d7\u30ebNo.03:\u30d5\u30a9\u30c8\u30d7\u30ea\u30f3\u30c8"},"content":{"rendered":"<p class=\"photo\"><a href=\"http:\/\/clockmaker.jp\/labs\/080915_pv3d_motion\/bin\/index.html\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-492\" title=\"080915_pv3d_01\" src=\"https:\/\/clockmaker.jp\/blog\/wp-content\/uploads\/2008\/09\/080915_pv3d_01.jpg\" alt=\"\" width=\"460\" height=\"200\" \/><\/a><\/p>\n<p>\u5199\u771f\u304c3D\u7a7a\u9593\u3092\u30bf\u30a4\u30eb\u72b6\u306b\u96c6\u307e\u3063\u3066\u4e00\u679a\u306e\u753b\u50cf\u306b\u4ed5\u4e0a\u304c\u308b\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u5199\u771f\u3092\u30bf\u30a4\u30eb\u72b6\u306e\u30d3\u30c3\u30c8\u30de\u30c3\u30d7\u30c7\u30fc\u30bf\u3068\u3057\u3066\u30ad\u30e3\u30d7\u30c1\u30e3\u3059\u308b\u3053\u3068\u3068\u3001perlinNoise\u3092\u5229\u7528\u3057\u305f\u653e\u5c04\u72b6\u30d6\u30e9\u30fc(\u30e9\u30a4\u30c8\u30d0\u30fc\u30b9\u30c8)\u3067\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u306f\u4ee5\u4e0b\u304b\u3089\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/clockmaker.jp\/labs\/080915_pv3d_motion\/bin\/index.html\" target=\"_blank\">demo<\/a> (require Flash Player 9)<\/li>\n<li><a href=\"http:\/\/clockmaker.jp\/labs\/080915_pv3d_motion\/src.zip\">source<\/a> (zip)<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h3>\u30bf\u30a4\u30eb\u72b6\u306e\u30d1\u30fc\u30c6\u30a3\u30af\u30eb\u5e73\u9762\u306e\u4f5c\u6210<\/h3>\n<p>\u4e00\u679a\u306e\u753b\u50cf\u3092\u30bf\u30a4\u30eb\u72b6\u306b\u5206\u5272\u3059\u308b\u306e\u306b\u3001\uff12\u91cd\u30eb\u30fc\u30d7\u306e\u306a\u304b\u3067\u753b\u50cf\u3092\u305a\u3089\u3057\u306a\u304c\u3089\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u3001BitmapData.draw\u306f\u539f\u70b9\u304b\u3089\u306e\u6a2a\u30fb\u7e26\u3057\u304b\u6307\u5b9a\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u30ad\u30e3\u30d7\u30c1\u30e3\u3059\u308b\u753b\u50cf\u306f\u539f\u70b9\u306b\u79fb\u52d5\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ imgSprite\u306f\u753b\u50cf\u3092\u914d\u7f6e\u3057\u305f\u3060\u3051\u306eSprite\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\n\/\/ folder\u306fimgSprite\u306e\u30e9\u30c3\u30d1\u30fc\n\/\/ \u6700\u7d42\u7684\u306bBitmapData\u306f\u914d\u5217bmpDataArr\u306b\u4fdd\u5b58\n\n\/\/ \u30d1\u30fc\u30c6\u30a3\u30af\u30eb\u3092\u5206\u5272\u3057\u3066\u4fdd\u5b58\u3059\u308b\u30eb\u30fc\u30d7\nfor (i = 0; i &lt; MAX_CELL_W; i++ )\n{\n\tfor (j = 0; j &lt; MAX_CELL_H; j++ )\n\t{\n\t\timgSprite.x = - imgSprite.width \/ MAX_CELL_W * i;\n\t\timgSprite.y = - imgSprite.height \/ MAX_CELL_H * j;\n\n\t\tvar bmpData:BitmapData = new BitmapData(\n\t\t\timgSprite.width \/ MAX_CELL_W,\n\t\t\timgSprite.height\/ MAX_CELL_H,\n\t\t\tfalse,\n\t\t\t0xFFFF0000\n\t\t);\n\n\t\tbmpData.draw(folder);\n\t\tbmpDataArr.push(bmpData);\n\t}\n}\n<\/pre>\n<p>\u914d\u5217\u306b\u4fdd\u5b58\u3057\u305fBitmapData\u306fBitmapMaterial\u30673D\u30c6\u30af\u30b9\u30c1\u30e3\u3068\u3057\u3066\u5fa9\u5143\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ \u4fdd\u5b58\u3055\u308c\u305f\u30d1\u30fc\u30c6\u30a3\u30af\u30eb\u914d\u5217\u304b\u30893D\u306ePlane\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210(\u4e00\u90e8\u629c\u7c8b)\nfor (i = 0; i &lt; MAX_CELL_W; i++ )\n{\n\tfor (j = MAX_CELL_H; j &gt; 0 ; j-- )\n\t{\n\t\t\/\/ \u30c6\u30af\u30b9\u30c1\u30e3\u306f\u4e0a\u8a18\u3067\u4f5c\u6210\u3057\u305fBitmapData\u914d\u5217\u3092\u5229\u7528\n\t\tvar material:BitmapMaterial =\n\t\t\tnew BitmapMaterial(BitmapData(bmpDataArr.shift()), false);\n\n\t\t\/\/ Plane\u306e\u4f5c\u6210\n\t\tvar plane:Plane = new Plane(\n\t\t\tmaterial,\n\t\t\timgSprite.width \/ MAX_CELL_W,\n\t\t\timgSprite.height \/ MAX_CELL_H,\n\t\t\t1, 1\n\t\t);\n\t}\n}\n<\/pre>\n<h3>\u30e9\u30a4\u30c8\u30d0\u30fc\u30b9\u30c8\u306e\u4f5c\u6210<\/h3>\n<p>\u30d5\u30e9\u30af\u30bf\u30eb\u306a\u30e9\u30f3\u30c0\u30e0\u30ce\u30a4\u30ba\u3068\u3044\u3048\u3070BitmapData.perlinNoise\u3002\u305f\u3060\u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u30de\u30b9\u30af\u3092\u304b\u3051\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u72b6\u3067cacheAsBitmap\u3092\u9069\u7528\u3057\u305f\u4e0a\u3067\u30de\u30b9\u30af\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u53c2\u8003\u8a18\u4e8b\u306f\u4ee5\u4e0b\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/www.project-nya.jp\/modules\/weblog\/details.php?blog_id=462\">\u306b\u3083\u3042\u30d7\u30ed\u30b8\u30a7\u30af\u30c8 &#8211; \u30a6\u30a7\u30d6\u30ed\u30b0 &#8211; \u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3\u30fb\u30de\u30b9\u30af<\/a><\/li>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/kkanda\/20080224\/p1\">BitmapData.perlinNoise()\u306e\u30b5\u30f3\u30d7\u30eb &#8211; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3068\u304b\u305d\u3093\u306a\u306e<\/a><\/li>\n<\/ul>\n<h3>\u30e2\u30fc\u30b7\u30e7\u30f3\u306f\u30b4\u30ea\u30b4\u30ea\u3068\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/h3>\n<p>\u4eca\u56de\u306f\u30b3\u30fc\u30c9\u304c\u7169\u96d1\u306b\u306a\u3063\u3066\u304d\u305f\u306e\u3067Flash IDE\u3092\u4f7f\u3063\u3066\u3001\u9069\u5ea6\u306b\u30b3\u30fc\u30c9\u3092\u77ed\u304f\u3057\u307e\u3057\u305f\u3002\u3068\u3044\u3063\u3066\u3082\u30ab\u30e1\u30e9\u306e\u52d5\u304d\u306a\u3069\u30c8\u30a5\u30a4\u30fc\u30f3\u95a2\u9023\u306f\u3059\u3079\u3066Tweener\u3067\u4e00\u500b\u4e00\u500b\u6307\u5b9a\u30023D\u306e\u6f14\u51fa\u3092\u4f5c\u308b\u306e\u306fAfter Effets\u306e\u3088\u3046\u306b\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3067\u4f5c\u3063\u305f\u65b9\u304c\u52b9\u7387\u3044\u3044\u3067\u3059\u304c\u3001\u30c8\u30e9\u30a4\uff06\u30a8\u30e9\u30fc\u3067\u8abf\u6574\u3002<\/p>\n<h3>\u30d6\u30ed\u30b0\u5185\u306e\u95a2\u9023\u8a18\u4e8b<\/h3>\n<ul>\n<li><a href=\"\/blog\/2008\/08\/papervision3d_bitmapeffectlayer_fireworks\/\">Papervision3D\u6f14\u51fa\u30b5\u30f3\u30d7\u30ebNo.02:\u6253\u3061\u4e0a\u3052\u82b1\u706b<br \/>\n<\/a><\/li>\n<li><a href=\"\/blog\/2008\/08\/papervision3d_butterfly_reflection\/\">Papervision3D\u6f14\u51fa\u30b5\u30f3\u30d7\u30ebNo.01:\u7fbd\u3070\u305f\u304f\u8776\u3005<br \/>\n<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5199\u771f\u304c3D\u7a7a\u9593\u3092\u30bf\u30a4\u30eb\u72b6\u306b\u96c6\u307e\u3063\u3066\u4e00\u679a\u306e\u753b\u50cf\u306b\u4ed5\u4e0a\u304c\u308b\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u30dd\u30a4\u30f3\u30c8\u306f\u5199\u771f\u3092\u30bf\u30a4\u30eb\u72b6\u306e\u30d3\u30c3\u30c8\u30de\u30c3\u30d7\u30c7\u30fc\u30bf\u3068\u3057\u3066\u30ad\u30e3\u30d7\u30c1\u30e3\u3059\u308b\u3053\u3068\u3068\u3001perlinNoise\u3092\u5229\u7528\u3057\u305f\u653e\u5c04\u72b6\u30d6\u30e9\u30fc(\u30e9\u30a4\u30c8\u30d0\u30fc\u30b9\u30c8)\u3067\u3059\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/491"}],"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=491"}],"version-history":[{"count":0,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/491\/revisions"}],"wp:attachment":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/media?parent=491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/categories?post=491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/tags?post=491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}