Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DepthOfField3D not working in 4.1 beta #566

Open
jonarnold opened this issue May 25, 2013 · 5 comments
Open

DepthOfField3D not working in 4.1 beta #566

jonarnold opened this issue May 25, 2013 · 5 comments
Assignees
Labels

Comments

@jonarnold
Copy link

DepthOfField3D applies the same blur to the entire scene. If I roll back to 4.1 Alpha, it works again. Is this a bug? Or did the API change?

@iY0Yi
Copy link

iY0Yi commented May 25, 2013

Download the current version.
That has been fixed.
Cheers.

@jonarnold
Copy link
Author

Hm...still not working, and I am using the latest dev branch (last commit May 24). If I roll back this branch to ~May 5th, it starts working again. A link to my code is below if you want to see what I'm testing...it's just a modified version of the Basic_Shading example. You're supposed to see the focus plane moving from front to back, but with the latest dev branch, it's just the same amount of blur on the entire scene...no DoF effect, in other words. Thanks so much for the help!

Example:
http://tuitivegroup.com/projects/away3d/Basic_Shading_DoF.as

@iY0Yi
Copy link

iY0Yi commented May 25, 2013

I found.
You have to set "range" value in current version.

_depthOfField = new DepthOfFieldFilter3D(15, 15);
view.filters3d = [ _depthOfField ];
_depthOfField.focusDistance = 1;
_depthOfField.range = 1000;

@DerSchmale
Sorry, I didn't notice that.
The range's default value is incorrect now.
Please fix it in each blur tasks.
private var _range : Number = 1/1000;

Cheers.

@jonarnold
Copy link
Author

  1. Thank you so much for your attention to this. I got everything working thanks to your help.
  2. I still ran into one issue that you might be interested in: when I have this line of code in my project, the DoF effect breaks:
    debugDraw = new AWPDebugDraw(_view, physicsWorld);
    When I take it out, the DoF effect works again! I don't even know what this class does, so I'm just taking it out. But I thought you'd want to know about this. Thanks again.

@iY0Yi
Copy link

iY0Yi commented May 26, 2013

Yep, I've already run into same:P
That destroy depth rendering. I think LineSegment may occur it.
But that's not a problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants