Can DepthOfFieldFilter3D work with other Filter3D?

Software: Away3D 4.x

Avatar
GoroMatsumoto, Sr. Member
Posted: 08 October 2012 03:42 AM   Total Posts: 166

Dear Away3D users,

I’m trying to use DepthOfFilter3D with a few other Filter3Ds.
They work when I sort DepthOfFilter3D at the end of Filter3D’s list,
but I sort it at first, my display is show just black.

my code (not work):

BLM=new BloomFilter3D(3030);
DOF=new DepthOfFieldFilter3D(3030, - 1);
DOF.focusTarget=targetMesh;
view.filters3d=[DOFBLM];
//view.filters3d=[BLM, DOF]; // This work. 

I wanna use other filters after applying DepthOfField3D.

Do I have to modify DepthOfField3D?

   

pete shand, Newbie
Posted: 11 October 2012 12:39 PM   Total Posts: 21   [ # 1 ]

Have you made any process with this?
I’ve also noticed that if you used multiple render passes,
(http://www.away3d.com/example/away3d_4.0_and_starling_interoperation)
eg: render starling and away3d in the same context3D then when applying a DepthOfFilter3D filter, it clears the first render layer (starling).

I’ve tracking the clear down to line 136 of Filter3DRenderer.as
context.clear(0.0, 0.0, 0.0, 1.0);

commenting this line out stop the layer below getting cleared, but it also results in the DepthOfFilter3D not getting applied…. I presume something similar is going on with multiple filters, however I have not yet tested.

If anyone else has knowledge in this area let us know

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X