What I would do to blur an entire scene is to add the blur to the top level of it. If the stuff on top of the blur is re-rendering a lot, then I'd add setCache(true) to that same top-level node:

oldroot.setCache(true);
oldroot.setEffect(blur);
Group newroot = new Group(newroot, overlay);
set(newroot);
// Remember to undo effect and cache when removing overlay

If the blur radius is going to be animated:

oldroot.setCache(true);
Group blurroot = new Group(oldroot);
blurroot.setEffect(blur);
// Possibly set cache on blurroot if overlay animates more
// than blur radius...
Group newroot = new Group(blurroot, overlay);
set(newroot);

(now animating the blur radius will hopefully pick up the data from the cached oldroot, but I'd need some testing to make sure we've done our bookkeeping correctly for that case, otherwise we may end up re-rendering the oldroot scene every time anyway.)

                        ...jim

On 8/10/2015 4:04 AM, Tobias Bley wrote:
Hi,

is it possible to set a blur effect on the complete scene or maybe a part of 
it? I would like to place a pane over another pane (via StackPane) which blurs 
the underlaying pane… like a „milk glass effect“…

Any ideas?

Best regards,
Tobi

Reply via email to