[Papervision3D] apply filters to object in PV3d scene

niki77 niki_yim at hotmail.com
Fri Jul 18 16:14:16 PDT 2008


when you use 'useOwnContainer' you can sure if there is only one object
exposed to the defined filter
and it works only after loading completion
viewport layer will be more useful when you want to put some objects
together in a layer, and
filters work for them together


Sueki Huang wrote:
> 
> I tried both ways to apply filter effects on object:
> 
> using "ViewportLayer" --
> 
> var layer:ViewportLayer = viewport.getChildLayer(ball, true);
> glow = new GlowFilter(0xfdfcbe, 1, 20, 20, 2, 1, false, false);
> layer.alpha = 0.5;
> layer.filters = [glow];
> 
> 
> and using "useOwnContainer: --
> 
> ball.useOwnContainer = true;
> glow = new GlowFilter(0xfdfcbe, 1, 20, 20, 2, 1, false, false);
> ball.alpha = 0.5;
> ball.filters = [glow];
> 
> They both work. But what are the differences between the two? Is one
> better
> than the other?
> 
> 
> After I applied the effects using EITHER methods I have a layering order
> problem.
> The plane (plane.z = -100) is suppose to be CLOSER to camera than the ball
> (ball.z = +200),
> thus the plane should be in front (hiding) the ball. But after using both
> methods above the ball is ALWAYS in front of the plane even though I
> change
> the 'z' value of the ball. Please help me to fix the layering problem.
> Thanks.
> 
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> 
> 

-- 
View this message in context: http://www.nabble.com/apply-filters-to-object-in-PV3d-scene-tp18516570p18539244.html
Sent from the Papervision3D mailing list archive at Nabble.com.




More information about the Papervision3D mailing list