PV3Dのオブジェクトに対して、ブラーやグローなどを使いたい場合、以下の2通りがあるみたい。
Planeオブジェクトに対してフィルタを書けたい場合
・useOwnContainer
後者はvplに対してフィルターをかけれる。
前者はこれを適用すると、MouseEventの中のいくつかが機能しなくなります。
しかも、重い。
後者の方が全然軽かったので僕はこっちを使っています。
ちなみに、Tweenerでフィルターをかけるときは、
参考
note.x:DisplayObject3D.useOwnContainer
鮭とプログラムとか:Papervision3Dをやってみた44
・useOwnContainer
var plane:Plane = new Plane(mat,w,h,segW,segH); plane.useOwnContainer = true;・ViewportLayer
var plane:Plane = new Plane(mat,w,h,segW,segH); var vpl:ViewportLayer = plane.createViewportLayer(vp,true);前者がplaneに対してフィルターをかけれるのに対し、
後者はvplに対してフィルターをかけれる。
前者はこれを適用すると、MouseEventの中のいくつかが機能しなくなります。
しかも、重い。
後者の方が全然軽かったので僕はこっちを使っています。
ちなみに、Tweenerでフィルターをかけるときは、
import caurina.transitions.properties.FilterShortcuts;
FilterShortcuts.init();
Tweener.addTween(vpl, {_Blur_blurX:10,_Blur_blurY:10,time:1.0,transition:"easeOutExpo",delay:.0});
という感じでフィルタを使います。
参考
note.x:DisplayObject3D.useOwnContainer
鮭とプログラムとか:Papervision3Dをやってみた44
Blogged with the Flock Browser
Tags: PV3D, Filter, useOwnContainer, ViewportLayer



