{"id":208,"date":"2008-07-31T23:17:52","date_gmt":"2008-07-31T14:17:52","guid":{"rendered":"http:\/\/clockmaker.jp\/blog\/?p=208"},"modified":"2008-07-31T23:17:52","modified_gmt":"2008-07-31T14:17:52","slug":"pv3d_gw_blur","status":"publish","type":"post","link":"https:\/\/clockmaker.jp\/blog\/2008\/07\/pv3d_gw_blur\/","title":{"rendered":"PaperVision3D 2.0\u3067\u88ab\u5199\u754c\u6df1\u5ea6\u304c\u5b9f\u73fe\u3067\u304d\u305f\u3088"},"content":{"rendered":"<p class=\"photo\"><a href=\"http:\/\/clockmaker.jp\/labs\/as3_pv3d_gw_blur\/BlurPV3D.swf\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-209\" title=\"pv3d_gw_blur\" src=\"https:\/\/clockmaker.jp\/blog\/wp-content\/uploads\/2008\/07\/pv3d_gw_blur-460x200.jpg\" alt=\"\" width=\"460\" height=\"200\" \/><\/a><\/p>\n<p>Papervision3D 2.0(GreateWhite)\u3092\u8a66\u3057\u3066\u3044\u305f\u3089\u3001\u3044\u3064\u306e\u9593\u306b\u304b\u6c42\u3081\u3066\u3044\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304b\u3002filters\u3068sceneZ\u3068\u3044\u3046\u3001\u306a\u3093\u3068\u3082\u88ab\u5199\u754c\u6df1\u5ea6\u304c\u5b9f\u88c5\u3067\u304d\u305d\u3046\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3002\u3068\u3044\u3046\u308f\u3051\u3067\u88ab\u5199\u754c\u6df1\u5ea6\u3092\u65e9\u901f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u4eca\u307e\u3067\u82e6\u52b4\u3057\u305f\u306e\u304c\u5618\u306e\u3088\u3046\u306b\u7c21\u5358\u306b\u3067\u304d\u307e\u3057\u305f\u266a<\/p>\n<p><a href=\"http:\/\/clockmaker.jp\/labs\/as3_pv3d_gw_blur\/BlurPV3D.swf\" target=\"_blank\">Demo(require Flash Player 9)<\/a><\/p>\n<p><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-0056457658098957\";\n\/* 468x60, \u4f5c\u6210\u6e08\u307f 08\/08\/01 *\/\ngoogle_ad_slot = \"5221472921\";\ngoogle_ad_width = 468;\ngoogle_ad_height = 60;\n\/\/-->\n<\/script><br \/>\n<script type=\"text\/javascript\"\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/p>\n<p>\u4ed5\u69d8\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306b\u307e\u3068\u3081\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h3>\u30dd\u30a4\u30f3\u30c8\u306fuseOwnContainer<\/h3>\n<p>DisplayObject3D\u306b\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u300cuseOwnContainer\u300d\u3068\u3044\u3046\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3092true\u306b\u3059\u308b\u3053\u3068\u3067filter\u3084alpha\u306e\u4f7f\u7528\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>var o:Plane = new Plane(new ColorMaterial(), 100, 100, 1, 1);<br \/>\no.useOwnContainer = true;<br \/>\no.filters = [new BlurFilter()];<br \/>\no.alpha = 0.5;<\/p>\n<p>filter\u306bBlurFilter\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u3067\u300c\u307c\u304b\u3057\u300d\u304c\u518d\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>3D\u7a7a\u9593\u5185\u306e\u7d76\u5bfe\u5ea7\u6a19\u306b\u5909\u63db\u3055\u308c\u305f\u30d7\u30ed\u30d1\u30c6\u30a3screenX,screenY,screenZ<\/h3>\n<p>\u30cd\u30b9\u30c8\u3055\u308c\u305f\u69cb\u9020\u306e3D\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3082\u3001\u7d76\u5bfe\u5ea7\u6a19\u304c\u4e0a\u8a18\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u3088\u308a\u53d6\u5f97\u304c\u3067\u304d\u307e\u3059\u3002\u901a\u5e38\u306eZ\u5ea7\u6a19(\u4f8b\uff1aobj.z)\u3060\u3068\u30ed\u30fc\u30ab\u30eb\u5ea7\u6a19\u3067\u3059\u304c\u3001screenZ(\u4f8b\uff1aobj.screenZ)\u3067\u306flocalToGlobal\u7684\u306a\u7d76\u5bfe\u5ea7\u6a19(3D)\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u307c\u304b\u3057\u306e\u6750\u6599\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<h3>\u88ab\u5199\u754c\u6df1\u5ea6\u8868\u73fe\u306e\u5b9f\u73fe<\/h3>\n<p>\u3053\u3053\u307e\u3067\u5024\u304c\u53d6\u5f97\u3067\u304d\u308c\u3070\u3001\u3082\u3046\u529b\u6280\u3067\u3082\u9069\u7528\u3057\u3066\u307f\u308b\u3060\u3051\u3067\u3059\u3002\u79c1\u306f\u57fa\u6e96\u4f4d\u7f6e\u304b\u30893D\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eZ\u5ea7\u6a19\u304c\u3069\u306e\u304f\u3089\u3044\u96e2\u308c\u3066\u3044\u308b\u304b\u306e\u5024\u3092\u30d6\u30e9\u30fc\u30d5\u30a3\u30eb\u30bf\u30fc\u306b\u9069\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>var o:DisplayObject3D = list[i] as DisplayObject3D;<br \/>\nvar blur:Number = Math.ceil((\u57fa\u6e96\u30dd\u30b8\u30b7\u30e7\u30f3\u5024 &#8211; o.sceneZ) \/ \u8abf\u6574\u3059\u308b\u6570\u5024);<br \/>\no.filters = [new BlurFilter(blur, blur, 1)];<\/p>\n<h3>\u30c7\u30e2\u306e\u30bd\u30fc\u30b9<\/h3>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\npackage\n{\n\timport flash.display.*;\n\timport flash.events.*;\n\timport flash.filters.*;\n\n\timport org.papervision3d.view.*;\n\timport org.papervision3d.materials.*;\n\timport org.papervision3d.objects.*;\n\timport org.papervision3d.objects.primitives.*\n\n    [SWF(width = &quot;450&quot;, height = &quot;250&quot;, frameRate = &quot;60&quot;, backgroundColor = &quot;#000000&quot;)]\n\n\tpublic class Main extends BasicView\n\t{\n\t\t\/\/ const vars\n\t\tstatic private const OBJ_LENGTH   :int = 20;\n\t\tstatic private const CIRCLE_RANGE :int = 500;\n\n\t\t\/\/ 3d vars\n\t\tprivate var list :Array = []\n\t\tprivate var wrap :DisplayObject3D;\n\n\t\t\/**\n\t\t * Constructor\n\t\t *\/\n\t\tpublic function Main()\n\t\t{\n\t\t\tsuper(450, 250);\n\n\t\t\t\/\/ init swf\n\t\t\tstage.scaleMode = StageScaleMode.NO_SCALE;\n\t\t\tstage.align     = StageAlign.TOP_LEFT;\n\t\t\tstage.quality   = StageQuality.HIGH;\n\n\t\t\tinit();\n\t\t}\n\n\t\tpublic function init():void\n\t\t{\n\t\t\t\/\/camera\n\t\t\tcamera.focus     = 400;\n\t\t\tcamera.zoom      = 1;\n\t\t\tcamera.x         = 0;\n\t\t\tcamera.y         = 200;\n\t\t\tcamera.z         = 1000;\n\t\t\tcamera.rotationX = 5;\n\n\t\t\t\/\/ wrap\n\t\t\twrap = new DisplayObject3D();\n\t\t\tscene.addChild(wrap);\n\n\t\t\tfor (var i:int = 0; i &lt; OBJ_LENGTH; i++)\n\t\t\t{\n\t\t\t\tvar rot:Number = 360 * i \/ OBJ_LENGTH ;\n\n\t\t\t\tvar m:ColorMaterial = new ColorMaterial(0x0066CC);\n\t\t\t\tm.doubleSided = true;\n\n\t\t\t\tvar o:Plane = new Plane(m, 100, 100, 2, 2);\n\t\t\t\to.x = CIRCLE_RANGE * Math.sin(rot * Math.PI \/ 180);\n\t\t\t\to.y = 0;\n\t\t\t\to.z = CIRCLE_RANGE * Math.cos(rot * Math.PI \/ 180);\n\t\t\t\to.rotationY = rot;\n\t\t\t\to.useOwnContainer = true; \/\/\u30b3\u30b3\u91cd\u8981\n\n\t\t\t\twrap.addChild(o);\n\t\t\t\tlist.push(o);\n\t\t\t}\n\n\t\t\taddEventListener(Event.ENTER_FRAME, enterFrameHandler);\n\t\t\tstartRendering();\n\t\t}\n\n\t\tprivate function enterFrameHandler(event:Event):void\n\t\t{\n\t\t\twrap.yaw(-1);\n\t\t\tfor (var i:int = 0; i &lt; list.length; i++)\n\t\t\t{\n\t\t\t\tvar o:DisplayObject3D = list[i] as DisplayObject3D;\n\t\t\t\tvar blur:Number = Math.ceil((CIRCLE_RANGE - o.sceneZ) \/ 50);\n\t\t\t\to.filters = [new BlurFilter(blur, blur, 2)];\n\t\t\t}\n\t\t}\n\t}\n}\n<\/pre>\n<p>\u203b\u5225\u9014Papervision3D 2.0(GreateWhite)\u3068Flex SDK3(Flash CS3\u3067\u3082\u53ef)\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u3053\u306e\u3042\u305f\u308a\u3067\u7d19\u9762\u3044\u3063\u3071\u3044\u306a\u306e\u3067\u3001<a href=\"https:\/\/clockmaker.jp\/blog\/2008\/08\/papervision3d_focus_blur\/\">\u6b21\u56de<\/a>\u306b\u7d9a\u304d\u307e\u3059\u3002<\/p>\n<h3>\u5927\u5909\u53c2\u8003\u306b\u306a\u3063\u305f\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"http:\/\/web.dimension-maker.info\/archives\/2008\/07\/20012728.html\">Papervision3D 2.0 GreatWhite \u3092\u8a66\u3057\u3066\u307f\u305f : web dimension maker<\/a><\/li>\n<li><a href=\"http:\/\/aquioux.blog48.fc2.com\/blog-entry-251.html\">Papervision3D \u306e InteractiveScene3D(7)\uff08\u4e86\uff09 \u3042\u308b\u3044\u306f MovieScene3D \u3068 Group.as\u3010\u9583\u5149\u7684\u7db2\u7ad9\u30fb\u5f1b\u7de9\u8907\u5408\u4f53 -Review Division-\u3011<\/a>\u306e\u30b7\u30ea\u30fc\u30ba<\/li>\n<li><a href=\"http:\/\/blog.eternitydesign.net\/archives\/2008\/07\/papervision3d_20grea.html\">Papervision3D 2.0\u3068Great White\u3068Effects &#8211; eternity design BLOG<\/a><\/li>\n<\/ul>\n<h3>PV3D\u306e\u95a2\u9023\u8a18\u4e8b<\/h3>\n<ul>\n<li><a href=\"https:\/\/clockmaker.jp\/blog\/2008\/08\/papervision3d_snowfall_particle\/\" title=\"Papervision3D 2.0\u3067\u88ab\u5199\u754c\u6df1\u5ea6\u8868\u73fe(3):\u964d\u308a\u7a4d\u3082\u308b\u96ea | ClockMaker Blog\">Papervision3D 2.0\u3067\u88ab\u5199\u754c\u6df1\u5ea6\u8868\u73fe(3):\u964d\u308a\u7a4d\u3082\u308b\u96ea<\/a><\/li>\n<li><a href=\"https:\/\/clockmaker.jp\/blog\/2008\/08\/papervision3d_focus_blur\/\">Papervision3D 2.0\u3067\u88ab\u5199\u754c\u6df1\u5ea6\u8868\u73fe(2)<\/a><\/li>\n<li><a href=\"https:\/\/clockmaker.jp\/blog\/2008\/07\/pv3d_gw_blur\/\" title=\"PaperVision3D 2.0\u3067\u88ab\u5199\u754c\u6df1\u5ea6\u304c\u5b9f\u73fe\u3067\u304d\u305f\u3088 | ClockMaker Blog\">PaperVision3D 2.0\u3067\u88ab\u5199\u754c\u6df1\u5ea6\u304c\u5b9f\u73fe\u3067\u304d\u305f\u3088<\/a><\/li>\n<li><a href=\"https:\/\/clockmaker.jp\/blog\/2008\/07\/flex_excel_import\/\">Flex\u3067Excel\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080<\/a><\/li>\n<li><a href=\"https:\/\/clockmaker.jp\/blog\/2008\/07\/papervision3d_shading\/\">Papervision3D 2.0(GreateWhite)\u3067\u53cd\u5c04\u3092\u6bd4\u8f03\u3059\u308b<\/a><\/li>\n<li><a href=\"https:\/\/clockmaker.jp\/blog\/2008\/07\/papervision3d_greatewhite\/\">Papervision3D 2.0(GreateWhite)\u306e\u7fd2\u4f5c<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Papervision3D 2.0(GreateWhite)\u3092\u8a66\u3057\u3066\u3044\u305f\u3089\u3001\u3044\u3064\u306e\u9593\u306b\u304b\u6c42\u3081\u3066\u3044\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304b\u3002filters\u3068sceneZ\u3068\u3044\u3046\u3001\u306a\u3093\u3068\u3082\u88ab\u5199\u754c\u6df1\u5ea6\u304c\u5b9f\u88c5\u3067\u304d\u305d\u3046\u306a\u30d7\u30ed\u30d1\u30c6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,4],"tags":[],"_links":{"self":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/208"}],"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=208"}],"version-history":[{"count":0,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/posts\/208\/revisions"}],"wp:attachment":[{"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/media?parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/categories?post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockmaker.jp\/blog\/wp-json\/wp\/v2\/tags?post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}