{"id":1652,"date":"2009-05-26T15:01:21","date_gmt":"2009-05-26T06:01:21","guid":{"rendered":"http:\/\/clockmaker.jp\/blog\/?p=1652"},"modified":"2009-05-26T15:01:21","modified_gmt":"2009-05-26T06:01:21","slug":"papervision3d_tutorial_5","status":"publish","type":"post","link":"https:\/\/clockmaker.jp\/blog\/2009\/05\/papervision3d_tutorial_5\/","title":{"rendered":"\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.05 : Camera\u3092\u7406\u89e3\u3059\u308b"},"content":{"rendered":"<p class=\"photo\"><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample04.swf\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1653\" title=\"Papervision3D\u306eCamera\u30b5\u30f3\u30d7\u30eb\" src=\"https:\/\/clockmaker.jp\/blog\/wp-content\/uploads\/2009\/05\/090526_pv3d_00.jpg\" alt=\"Papervision3D\u306eCamera\u30b5\u30f3\u30d7\u30eb\" width=\"460\" height=\"200\" \/><\/a><\/p>\n<p>Papervision3D\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb5\u56de\u76ee\u3002<a href=\"https:\/\/clockmaker.jp\/blog\/2009\/05\/papervision3d_tutorial_4\/\">\u524d\u56de\u306fPapervision3D\u306e\u4ed5\u7d44\u307f<\/a>\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f3D\u3092\u81ea\u5728\u306b\u64ae\u5f71\u3067\u304d\u308b\u30ab\u30e1\u30e9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u5192\u982d\u306e\u753b\u50cf\u306f\u4eca\u56de\u306e\u76ee\u6a19\u3068\u3057\u307e\u3059\u3002\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f<a href=\"\/labs\/090526_pv3d_camera\/src.zip\">\u3053\u3061\u3089<\/a>\u306b\u30a2\u30c3\u30d7\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u4e0a\u3067\u8aad\u307f\u9032\u3081\u3066\u304f\u3060\u3055\u3044(DL\u3057\u305f\u4e2d\u306e\u753b\u50cf\u306f<a href=\"http:\/\/planetpixelemporium.com\/earth.html\" target=\"_blank\">Planet Earth Texture Maps<\/a>\u306e\u3082\u306e\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059)\u3002\u4eca\u56de\u306e\u30ab\u30e1\u30e9\u306e\u52d5\u304b\u3057\u65b9\u306f\u4f7f\u3044\u56de\u3057\u306e\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u306e\u3067\u3001\u30b9\u30c8\u30c3\u30af\u306b\u3057\u3066\u304a\u304f\u3068\u3088\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p><!--more--><\/p>\n<h3 class=\"photo\">\u307e\u305a\u306f\u30ab\u30e1\u30e9\u3092\u52d5\u304b\u3059\u3053\u3068\u3092\u4f53\u9a13<\/h3>\n<p class=\"photo\"><a href=\"http:\/\/labs.zeh.com.br\/blog\/?p=104\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1654\" title=\"090526_pv3d_01\" src=\"https:\/\/clockmaker.jp\/blog\/wp-content\/uploads\/2009\/05\/090526_pv3d_01.jpg\" alt=\"090526_pv3d_01\" width=\"460\" height=\"357\" \/><\/a><\/p>\n<ul>\n<li><a title=\"labs.zeh.com.br \u00bb Blog Archive \u00bb The search for the perfect bezier tweening syntax\" href=\"http:\/\/labs.zeh.com.br\/blog\/?p=104\" target=\"_blank\">labs.zeh.com.br \u00bb Blog Archive \u00bb The search for the perfect bezier tweening syntax<\/a><\/li>\n<\/ul>\n<p>\u4e0a\u8a18\u30d6\u30ed\u30b0\u306e\u30da\u30fc\u30b8\u4e2d\u9803\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u30c7\u30e2\u304c\u30ab\u30e1\u30e9\u306e\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u5927\u5909\u5206\u304b\u308a\u3084\u3059\u3044\u3082\u306e\u3067\u3059\u306e\u3067\u3001\u305c\u3072\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30c7\u30e2\u306f\u30ab\u30e1\u30e9\u306e\u79fb\u52d5\u8ecc\u8de1\u3092\u30c8\u30a5\u30a4\u30fc\u30f3\u30e9\u30a4\u30d6\u30e9\u30ea\u306eTweener\u3092\u4f7f\u3063\u3066\u3001\u30d9\u30b8\u30a7\u66f2\u7dda\u3068\u3057\u3066\u52d5\u304b\u3059\u3082\u306e\u3067\u3059\u3002\u65ad\u9762\u56f3\u3067\u30d9\u30b8\u30a7\u66f2\u7dda\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3067\u304d\u308b\u306e\u3067\u30ab\u30e1\u30e9\u306e\u52d5\u304b\u3057\u65b9\u3092\u81ea\u7531\u306b\u8a2d\u5b9a\u3057\u3066\u307f\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>[\u8ffd\u8a18]<br \/>\n\u307e\u305f\u3001\u30ab\u30e1\u30e9\u306e\u30d7\u30ed\u30d1\u30c6\u30a3(xyz\u3084\u3001rotationXYZ\u306a\u3069)\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u3064\u304b\u3080\u306b\u306f\u6b21\u306e\u8a18\u4e8b\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><a title=\"\u5d16\u3063\u3077\u3061WEB\u30c7\u30b6\u30a4\u30ca\u30fc\u30d6\u30ed\u30b0 | PaperVision3D\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u56de\u8ee2\u3068\u304b\u30ab\u30e1\u30e9\u79fb\u52d5\u3068\u304b\" href=\"http:\/\/www.y-tti.com\/blog\/2008\/04\/papervision3d_2.php\" target=\"_blank\">\u5d16\u3063\u3077\u3061WEB\u30c7\u30b6\u30a4\u30ca\u30fc\u30d6\u30ed\u30b0 | PaperVision3D\u3067\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u56de\u8ee2\u3068\u304b\u30ab\u30e1\u30e9\u79fb\u52d5\u3068\u304b<\/a><\/li>\n<\/ul>\n<p>Papervision3D\u306f\u3053\u306e\u3088\u3046\u306b3D\u7a7a\u9593\u5185\u3067\u30ab\u30e1\u30e9(\u8996\u70b9)\u3092\u81ea\u7531\u306b\u79fb\u52d5\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3092\u7fd2\u5f97\u3059\u308b\u3053\u3068\u30673D\u306e\u8868\u73fe\u529b\u304c\u683c\u6bb5\u306b\u9ad8\u307e\u308a\u307e\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u30ab\u30e1\u30e9\u306e\u52d5\u304b\u3057\u65b9\u30923\u5206\u985e\u306b\u5206\u3051\u3001\u305d\u308c\u3089\u3092\u9806\u3092\u8ffd\u3063\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample01.swf\">\u81ea\u52d5\u56de\u8ee2\u578b<\/a><\/li>\n<li><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample02.swf\">\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u9023\u52d5\u578b<\/a><\/li>\n<li><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample03.swf\">\u30de\u30a6\u30b9\u306e\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u578b<\/a><\/li>\n<\/ul>\n<h3>\u8ab2\u984c0 : \u307e\u305a\u306f\u524d\u56de\u307e\u3067\u306e\u304a\u3055\u3089\u3044<\/h3>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1655\" title=\"090526_pv3d_02\" src=\"https:\/\/clockmaker.jp\/blog\/wp-content\/uploads\/2009\/05\/090526_pv3d_02.jpg\" alt=\"090526_pv3d_02\" width=\"460\" height=\"200\" \/><\/p>\n<p>\u30ab\u30e1\u30e9\u3092\u5b66\u7fd2\u3059\u308b\u524d\u306b\u524d\u56de\u307e\u3067\u306e\u304a\u3055\u3089\u3044\u3082\u517c\u306d\u3066\u6e96\u5099\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u5730\u7403\u306e\u5468\u308a\u3092\u98db\u3076\u885b\u661f\u3092\u4f5c\u308a\u307e\u3059\u3002\u30d5\u30a1\u30fc\u30b9\u30c8\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304a\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u300csample00.fla\u300d\u304c\u8a72\u5f53\u3057\u307e\u3059\u306e\u3067\u3001\u4e00\u901a\u308a\u76ee\u3092\u901a\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>Papervision3D\u306e\u521d\u671f\u5316<\/li>\n<li>\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff08\u7403\u9762\uff09\u306e\u4f5c\u6210<\/li>\n<li>\u30de\u30c6\u30ea\u30a2\u30eb\u306e\u4f5c\u6210<\/li>\n<\/ul>\n<p>\u7d50\u679c\u3068\u3057\u3066\u306f\u6b21\u306e\u3082\u306e\u304c\u30b4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<ul>\n<li><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample00.swf\">Demo (step0)<br \/>\n<\/a><\/li>\n<\/ul>\n<p>\u4eca\u56de\u306f\u3088\u308a\u30ea\u30a2\u30ea\u30c6\u30a3\u30fc\u3092\u51fa\u3059\u305f\u3081\u306b\u5730\u7403\u306e\u5468\u308a\u3092\u6d6e\u904a\u3059\u308b\u9695\u77f3\u3082\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u3053\u308c\u306fPapervision3D\u306e\u30d1\u30fc\u30c6\u30a3\u30af\u30eb\u6a5f\u80fd\u3092\u4f5c\u3063\u3066\u518d\u73fe\u3057\u3066\u3044\u307e\u3059\u3002\u6b21\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306f2000\u306e\u5e45\u3092\u6301\u3063\u305f\u7acb\u65b9\u4f53\u306e\u4e2d\u306b\u5e454\u306e\u30d1\u30fc\u30c6\u30a3\u30af\u30eb\u3092500\u500b\u751f\u6210\u3059\u308b\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nimport org.papervision3d.objects.special.ParticleField;\nimport org.papervision3d.materials.special.ParticleMaterial;\n\n\/\/ \u3064\u3044\u3067\u306b\u30d1\u30fc\u30c6\u30a3\u30af\u30eb\u3092\u751f\u6210\u3057\u307e\u3059(\u5f57\u661f)\nvar particleMat:ParticleMaterial = new ParticleMaterial(0xFFFFFF, 1)\nvar particles:ParticleField = new ParticleField(particleMat, 500, 4, 2000, 2000, 2000)\nworld.scene.addChild( particles );\n<\/pre>\n<h3>\u8ab2\u984c1 : \u5730\u7403\u306e\u5468\u308a\u3092\u30ab\u30e1\u30e9\u3092\u56de\u8ee2\u3055\u305b\u308b<\/h3>\n<p>\u305d\u3082\u305d\u3082Papervision3D\u306e\u30ab\u30e1\u30e9\u306b\u306f\u5927\u304d\u304f2\u7a2e\u985e\u306e\u5236\u5fa1\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u5e38\u306b\u4e00\u70b9\u3092\u5411\u304d\u7d9a\u3051\u308b\u30bf\u30fc\u30b2\u30c3\u30c8\u30ab\u30e1\u30e9<\/li>\n<li>\u30ab\u30e1\u30e9\u306e\u8996\u70b9\u3092\u81ea\u7531\u306b\u8a2d\u5b9a\u3067\u304d\u308b\u30d5\u30ea\u30fc\u30ab\u30e1\u30e9<\/li>\n<\/ul>\n<p>\u4eca\u56de\u306f\u524d\u8005\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u30ab\u30e1\u30e9\u3067\u8a66\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u306a\u304aBasicView\u306e\u521d\u671f\u8a2d\u5b9a\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u30ab\u30e1\u30e9\u3067\u3059\u306e\u3067\u7279\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u30ab\u30e1\u30e9\u306b\u4e8c\u7a2e\u985e\u306e\u5236\u5fa1\u65b9\u6cd5\u304c\u3042\u308b\u3053\u3068\u306f\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u7d50\u679c\u3068\u3057\u3066\u306f\u6b21\u306e\u3082\u306e\u304c\u30b4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<ul>\n<li><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample01.swf\">Demo (step1)<\/a><\/li>\n<\/ul>\n<p>\u8ab2\u984c0\u3067\u6e96\u5099\u3057\u305f\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u3066\u3001\u30a8\u30f3\u30bf\u30fc\u30d5\u30ec\u30fc\u30e0\u306e\u30cf\u30f3\u30c9\u30e9\u30fc\u306e\u90e8\u5206\u306b\u6b21\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002(\u4e00\u90e8\u629c\u7c8b)<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\nvar rot:Number = 0 \/\/ \u89d2\u5ea6\naddEventListener(Event.ENTER_FRAME, function(e){\nrot += 0.5 \/\/ \u6bce\u30d5\u30ec\u30fc\u30e0\u89d2\u5ea6\u30920.5\u5ea6\u305a\u3064\u8db3\u3057\u3066\u3044\u304f\n\n\/\/ \u89d2\u5ea6\u306b\u5fdc\u3058\u3066\u30ab\u30e1\u30e9\u306e\u4f4d\u7f6e\u3092\u8a2d\u5b9a\nworld.camera.x = 1000 * Math.sin(rot * Math.PI \/ 180)\nworld.camera.z = 1000 * Math.cos(rot * Math.PI \/ 180)\n\n\/\/ \u5730\u7403\u306f\u5e38\u306b\u56de\u8ee2\u3055\u305b\u3066\u304a\u304f\nsphere.rotationY -= 0.25\n})\n<\/pre>\n<p>\u89e3\u8aac\u3059\u308b\u3068\u3001\u30ab\u30e1\u30e9\u306e\u5ea7\u6a19\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306fcamera\u306ex,y,z\u30d7\u30ed\u30d1\u30c6\u30a3\u30fc\u306b\u5024\u3092\u5165\u308c\u308b\u3060\u3051\u3067\u3059\u3002\u30ab\u30e1\u30e9\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u30ab\u30e1\u30e9\u3067\u3059\u306e\u3067\u3001\u5e38\u306b1\u70b9\u3092\u5411\u304d\u7d9a\u3051\u3066\u3044\u307e\u3059\u3002BasicView\u3067\u306f\u7279\u306b\u8a2d\u5b9a\u3057\u306a\u3044\u9650\u308a\u539f\u70b9(0,0,0)\u3092\u5411\u3044\u3066\u307e\u3059\u3002<\/p>\n<p>\u52d5\u304d\u306e\u6f14\u51fa\u306b\u3064\u3044\u3066\u306f\u3001\u30d5\u30ec\u30fc\u30e0\u6bce\u306b\u885b\u661f\u306e\u914d\u7f6e\u89d2\u5ea6\u30920.5\u5ea6\u305a\u3064\u52a0\u7b97\u3057\u3001\u305d\u308c\u3092\u30ab\u30e1\u30e9\u306e\u5ea7\u6a19\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002\u30ab\u30e1\u30e9\u306e\u5ea7\u6a19\u306f\u4e09\u89d2\u95a2\u6570(sin\u3068cos)\u3092\u4f7f\u3063\u3066\u3001\u89d2\u5ea6\u304b\u3089\u6c42\u3081\u3066\u3044\u307e\u3059\u30021000\u3068\u3044\u3046\u5024\u306f\u5186\u306e\u534a\u5f84\u3067\u3059\u3002<\/p>\n<h3>\u8ab2\u984c2 : \u30de\u30a6\u30b9\u306e\u5ea7\u6a19\u306b\u5fdc\u3058\u3066\u56de\u8ee2\u3055\u305b\u308b<\/h3>\n<p>Flash\u3067\u3059\u306e\u3067\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u6027\u3092\u6301\u305f\u305b\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306b\u5fdc\u3058\u3066\u885b\u661f\u306e\u4f4d\u7f6e\u3092\u5909\u3048\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u30c7\u30e2\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002(\u4e00\u90e8\u629c\u7c8b)<\/p>\n<ul>\n<li><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample02.swf\">Demo (step2)<\/a><\/li>\n<\/ul>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\/\/ \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\nvar rot:Number = 0 \/\/ \u89d2\u5ea6\naddEventListener(Event.ENTER_FRAME, function(e){\n\/\/ \u30de\u30a6\u30b9\u306e\u4f4d\u7f6e\u306b\u5fdc\u3058\u3066\u89d2\u5ea6\u3092\u8a2d\u5b9a\n\/\/ \u30de\u30a6\u30b9\u306eX\u5ea7\u6a19\u304c\u30b9\u30c6\u30fc\u30b8\u306e\u5e45\u306e\u4f55%\u306e\u4f4d\u7f6e\u306b\u3042\u308b\u304b\u8abf\u3079\u3066\u305d\u308c\u3092360\u5ea6\u3067\u4e57\u7b97\u3059\u308b\nvar targetRot:Number = ( mouseX \/ stage.stageWidth ) * 360\n\n\/\/ \u30a4\u30fc\u30b8\u30f3\u30b0\u306e\u516c\u5f0f\u3092\u7528\u3044\u3066\u6ed1\u3089\u304b\u306b\u3059\u308b\n\/\/ \u5024 += (\u76ee\u6a19\u5024 - \u73fe\u5728\u306e\u5024) * \u6e1b\u901f\u5024\nrot += (targetRot - rot) * 0.02\n\n\/\/ \u89d2\u5ea6\u306b\u5fdc\u3058\u3066\u30ab\u30e1\u30e9\u306e\u4f4d\u7f6e\u3092\u8a2d\u5b9a\nworld.camera.x = 1000 * Math.sin(rot * Math.PI \/ 180)\nworld.camera.z = 1000 * Math.cos(rot * Math.PI \/ 180)\n\n\/\/ \u5730\u7403\u306f\u5e38\u306b\u56de\u8ee2\u3055\u305b\u3066\u304a\u304f\nsphere.rotationY -= 0.25\n})\n<\/pre>\n<p>\u30dd\u30a4\u30f3\u30c8\u3068\u3057\u3066\u306f\u3001\u89d2\u5ea6\u306e\u7b97\u51fa\u65b9\u6cd5\u3092\u30b9\u30c6\u30fc\u30b8\u306e\u5e45\u306e\u4f55\uff05\u306e\u4f4d\u7f6e\u306b\u30de\u30a6\u30b9\u304c\u3042\u308b\u304b\u3092\u8a08\u7b97\u3067\u6c42\u3081\u3001\u305d\u308c\u3092\u89d2\u5ea6\u306b\u53cd\u6620\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u3067\u3059\u3002\u305d\u306e\u70b9\u304c\u8ab2\u984c2\u3068\u9055\u3046\u3068\u3053\u308d\u3067\u3001\u3055\u307b\u3069\u96e3\u3057\u304f\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u306a\u304a\u9014\u4e2d\u306b\u30a4\u30fc\u30b8\u30f3\u30b0\u306e\u516c\u5f0f\u3068\u3044\u3046\u306e\u304c\u3067\u3066\u304d\u3066\u3044\u307e\u3059\u304c\u3001Flash\u3067\u306f\u4e00\u822c\u7684\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b\u516c\u5f0f\u306a\u306e\u3067\u3001\u77e5\u3089\u306a\u3044\u65b9\u306f\u305c\u3072\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u8ab2\u984c3 : \u30de\u30a6\u30b9\u306e\u30c9\u30e9\u30c3\u30b0\u306b\u5fdc\u3058\u3066\u30ab\u30e1\u30e9\u3092\u5236\u5fa1\u3059\u308b<\/h3>\n<p>\u30de\u30a6\u30b9\u306e\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3067\u30ab\u30e1\u30e9\u306e\u4f4d\u7f6e\u3092\u5236\u5fa1\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002\u30c7\u30e2\u3068\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002(\u4e00\u90e8\u629c\u7c8b)<\/p>\n<ul>\n<li><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample03.swf\">Demo (step3)<\/a><\/li>\n<\/ul>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\n\n\/\/ \u30de\u30a6\u30b9\u3092\u62bc\u3057\u305f\u72b6\u614b\u304b\u3069\u3046\u304b\u3092\u5224\u5225\u3059\u308b\u30d5\u30e9\u30b0\nvar isMouseDown:Boolean = false\n\n\/\/ \u4e00\u6642\u7684\u306a\u30de\u30a6\u30b9\u306e\u5024\u3092\u683c\u7d0d\u3059\u308b\u5909\u6570\nvar oldX:Number = 0\nvar targetRot:Number = 0\n\n\/\/ \u30a4\u30d9\u30f3\u30c8\u306e\u8a2d\u5b9a\nstage.addEventListener(MouseEvent.MOUSE_DOWN, downHandler)\nstage.addEventListener(MouseEvent.MOUSE_UP, upHandler)\nstage.addEventListener(MouseEvent.MOUSE_MOVE, moveHandler)\n\n\/\/ \u30de\u30a6\u30b9\u3092\u62bc\u3055\u308c\u305f\u3068\u304d\nfunction downHandler(e){\n\tisMouseDown = true\n\toldX = mouseX\n}\n\n\/\/ \u30de\u30a6\u30b9\u3092\u653e\u3057\u305f\u3068\u304d\nfunction upHandler(e){\n\tisMouseDown = false\n}\n\n\/\/ \u30de\u30a6\u30b9\u304c\u52d5\u3044\u305f\u3068\u304d\nfunction moveHandler(e){\n\tif(isMouseDown){\n\t\tvar dy:Number = e.stageX - oldX\n\t\ttargetRot += dy * 0.25\n\t\toldX = e.stageX\n\t}\n}\n\n\/\/ \u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\nvar rot:Number = 0 \/\/ \u89d2\u5ea6\naddEventListener(Event.ENTER_FRAME, function(e){\n\n\t\/\/ \u30a4\u30fc\u30b8\u30f3\u30b0\u306e\u516c\u5f0f\u3092\u7528\u3044\u3066\u6ed1\u3089\u304b\u306b\u3059\u308b\n\t\/\/ \u5024 += (\u76ee\u6a19\u5024 - \u73fe\u5728\u306e\u5024) * \u6e1b\u901f\u5024\n\trot += (targetRot - rot) * 0.05\n\n\t\/\/ \u89d2\u5ea6\u306b\u5fdc\u3058\u3066\u30ab\u30e1\u30e9\u306e\u4f4d\u7f6e\u3092\u8a2d\u5b9a\n\tworld.camera.x = 1000 * Math.sin(rot * Math.PI \/ 180)\n\tworld.camera.z = 1000 * Math.cos(rot * Math.PI \/ 180)\n\n\t\/\/ \u5730\u7403\u306f\u5e38\u306b\u56de\u8ee2\u3055\u305b\u3066\u304a\u304f\n\tsphere.rotationY -= 0.25\n})\n<\/pre>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u9577\u304f\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u306f\u3088\u304f\u4f7f\u3046\u306e\u3067\u57fa\u672c\u3092\u62bc\u3055\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u306f\u30de\u30a6\u30b9\u3092\u62bc\u3057\u305f\u3068\u304d\u30fb\u79fb\u52d5\u3057\u305f\u3068\u304d\u30fb\u96e2\u3057\u305f\u3068\u304d\u306e3\u30d1\u30bf\u30fc\u30f3\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u5206\u89e3\u3067\u304d\u307e\u3059\u3002\u30b3\u30a2\u306e\u30ed\u30b8\u30c3\u30af\u306f\u3001\u62bc\u3057\u305f\u3068\u304d\u306e\u30de\u30a6\u30b9\u5ea7\u6a19\u304b\u3089\u79fb\u52d5\u3057\u305f\u3068\u304d\u306e\u305d\u308c\u3068\u306e\u5dee\u5206\u3092\u6c42\u3081\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u6c42\u3081\u305f\u5dee\u5206\u3092\u89d2\u5ea6\u306b\u5909\u63db\u3057(\u9069\u5f53\u306a0.25\u3068\u3044\u3046\u5024\u3092\u4e57\u7b97\u3057\u3066\u3044\u307e\u3059)\u3001\u305d\u308c\u3092\u30a4\u30fc\u30b8\u30f3\u30b0\u306e\u516c\u5f0f\u3092\u7528\u3044\u3066\u6ed1\u3089\u304b\u306b\u3057\u3001\u305d\u308c\u3092\u30ab\u30e1\u30e9\u306e\u5ea7\u6a19\u306b\u4e09\u89d2\u95a2\u6570\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002\u5f8c\u534a\u306f\u4eca\u307e\u3067\u306e\u8ab2\u984c\u3068\u5909\u308f\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u89d2\u5ea6\u3092\u6c42\u3081\u308b\u3068\u3053\u308d\u304c\u3001\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u306b\u306a\u3063\u305f\u3068\u9055\u3044\u3060\u3051\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u8ab2\u984c4 : \u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3092\u4e0a\u4e0b\u5de6\u53f3\u5bfe\u5fdc\u306b<\/h3>\n<p class=\"photo\"><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample04.swf\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1653\" title=\"Papervision3D\u306eCamera\u30b5\u30f3\u30d7\u30eb\" src=\"https:\/\/clockmaker.jp\/blog\/wp-content\/uploads\/2009\/05\/090526_pv3d_00.jpg\" alt=\"Papervision3D\u306eCamera\u30b5\u30f3\u30d7\u30eb\" width=\"460\" height=\"200\" \/><\/a><\/p>\n<p>\u3053\u3053\u306f\u81ea\u4e3b\u8ab2\u984c\u3068\u3057\u307e\u3059\u3002\u8ab2\u984c4\u306e\u30ed\u30b8\u30c3\u30af\u306b\u7e26\u65b9\u5411\u306e\u5236\u5fa1\u3092\u52a0\u3048\u308b\u3060\u3051\u3067\u3059\u306e\u3067\u3001\u305d\u308c\u307b\u3069\u96e3\u3057\u304f\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li><a rel=\"shadowbox;width=720;height=480;\" href=\"\/labs\/090526_pv3d_camera\/bin\/sample04.swf\">Demo (step4)<\/a><\/li>\n<\/ul>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u4eca\u56de\u306f\u30ab\u30e1\u30e9\u306e\u52d5\u304b\u3057\u65b9\u306b\u3064\u3044\u3066\u3001\u57fa\u672c\u7684\u306a\u30d1\u30bf\u30fc\u30f3\u3092\u6f14\u7fd2\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u7c21\u5358\u3067\u3059\u304c\u4e00\u901a\u308aPapervision3D\u306b\u89e6\u308c\u307e\u3057\u305f\u306e\u3067\u3001\u6b21\u56de\u306fPapervision3D\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u3063\u3066\u6700\u7d42\u56de\u3068\u3057\u307e\u3059\u3002\u6b21\u56de\u3092\u304a\u697d\u3057\u307f\u306b\u3002<\/p>\n<h3 style=\"font-size: 1.17em;\">\u66f8\u7c4d\u306b\u306a\u308a\u307e\u3057\u305f<\/h3>\n<p>\u306a\u304a\u3001Papervision3D\u306e\u89e3\u8aac\u306f\u3055\u3089\u306b\u8a73\u3057\u304f\u66f8\u7c4d\u306b\u3082\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d6\u30ed\u30b0\u3092\u8aad\u3093\u3067\u3055\u3089\u306b\u30b9\u30ad\u30eb\u3092\u9ad8\u3081\u305f\u3044\u3068\u3044\u3046\u65b9\u304c\u3044\u307e\u3057\u305f\u3089\u5f53\u30d6\u30ed\u30b0\u7ba1\u7406\u8005\u304c\u57f7\u7b46\u3057\u305f\u6b21\u306e\u66f8\u7c4d\u3092\u30aa\u30b9\u30b9\u30e1\u3057\u307e\u3059\u3002\u66f8\u7c4d\u306f<a href=\"https:\/\/clockmaker.jp\/blog\/2009\/12\/papervision3d-book\/\">\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8<\/a>\u3067\u7d39\u4ecb\u3057\u3066\u307e\u3059\u306e\u3067\u3001\u8208\u5473\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u305c\u3072\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/clockmaker.jp\/blog\/2009\/12\/papervision3d-book\/\"><img decoding=\"async\" style=\"border: 0px initial initial;\" src=\"https:\/\/clockmaker.jp\/blog\/wp-content\/uploads\/2009\/12\/51omh-g4sYL._SL500_AA240_.jpg\" alt=\"51omh-g4sYL._SL500_AA240_\" \/><\/a><\/p>\n<p>\u300c<a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/476780924X?ie=UTF8&amp;tag=clockmaker-22&amp;linkCode=as2&amp;camp=247&amp;creative=7399&amp;creativeASIN=476780924X\">Flash3D\u30b3\u30f3\u30c6\u30f3\u30c4\u5236\u4f5c\u306e\u305f\u3081\u306ePapervision3D\u5165\u9580<\/a><img decoding=\"async\" loading=\"lazy\" style=\"margin: 0px !important; border: 0px initial initial;\" src=\"http:\/\/www.assoc-amazon.jp\/e\/ir?t=clockmaker-22&amp;l=as2&amp;o=9&amp;a=476780924X\" border=\"0\" alt=\"\" width=\"1\" height=\"1\" \/>\u300d<\/p>\n<h3>\u9023\u8f09\u76ee\u6b21<\/h3>\n<ul>\n<li><a title=\"\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b Papervision3D \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb Vol.01 | ClockMaker Blog\" href=\"https:\/\/clockmaker.jp\/blog\/2009\/02\/pv3d_frame_action_01\/\">\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.01<\/a><\/li>\n<li><a title=\"\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b Papervision3D \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb Vol.01 (\u88dc\u8db3) | ClockMaker Blog\" href=\"https:\/\/clockmaker.jp\/blog\/2009\/03\/pv3d_frame_action_01_hosoku\/\">\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.01 (\u88dc\u8db3)<\/a><\/li>\n<li><a title=\"\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.02 : Primitive\u3092\u7406\u89e3\u3059\u308b | ClockMaker Blog\" href=\"https:\/\/clockmaker.jp\/blog\/2009\/04\/papervision3d_tutorial_2\/\">\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.02 : Primitive\u3092\u7406\u89e3\u3059\u308b<\/a><\/li>\n<li><a title=\"\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.03 : Material\u3092\u7406\u89e3\u3059\u308b | ClockMaker Blog\" href=\"https:\/\/clockmaker.jp\/blog\/2009\/05\/papervision3d_tutorial_3\/\">\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.03 : Material\u3092\u7406\u89e3\u3059\u308b<\/a><\/li>\n<li><a title=\"\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.04 : BasicView\u3092\u7406\u89e3\u3059\u308b | ClockMaker Blog\" href=\"https:\/\/clockmaker.jp\/blog\/2009\/05\/papervision3d_tutorial_4\/#more-1619\">\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.04 : BasicView\u3092\u7406\u89e3\u3059\u308b<\/a><\/li>\n<li><a title=\"\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.05 : Camera\u3092\u7406\u89e3\u3059\u308b | ClockMaker Blog\" href=\"https:\/\/clockmaker.jp\/blog\/2009\/05\/papervision3d_tutorial_5\/\">\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.05 : Camera\u3092\u7406\u89e3\u3059\u308b<\/a><\/li>\n<li><a title=\"\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.06 : \u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc | ClockMaker Blog\" href=\"https:\/\/clockmaker.jp\/blog\/2009\/05\/papervision3d_tutorial_6\/\">\u30d5\u30ec\u30fc\u30e0\u30a2\u30af\u30b7\u30e7\u30f3\u3067\u899a\u3048\u308b PV3D Vol.06 : \u30b9\u30e9\u30a4\u30c9\u30b7\u30e7\u30fc<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Papervision3D\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb5\u56de\u76ee\u3002\u524d\u56de\u306fPapervision3D\u306e\u4ed5\u7d44\u307f\u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f3D\u3092\u81ea\u5728\u306b\u64ae\u5f71\u3067\u304d\u308b\u30ab\u30e1\u30e9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u5192\u982d\u306e\u753b\u50cf\u306f\u4eca\u56de\u306e\u76ee\u6a19\u3068\u3057\u307e\u3059\u3002\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f [&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\/1652"}],"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=1652"}],"version-history":[{"count":0,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/1652\/revisions"}],"wp:attachment":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/media?parent=1652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/categories?post=1652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/tags?post=1652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}