SceneKit, CIFilter. CICategoryBlur does not filter anything

I am trying to blur a node or create a blur effect in SceneKit.

let ship = scene.rootNode.childNodeWithName("ship", recursively: true)! var ciFilters = [CIFilter]() ciFilters.append(CIFilter(name: "CIGaussianBlur", withInputParameters: [kCIInputRadiusKey: 30])!) ship.filters = ciFilters 

Results in:

CIGaussianBlur

What, I thought that maybe I'm using CIFilter incorrectly. However, CIHalftone works fine:

  ciFilters.append(CIFilter(name: "CICMYKHalftone", withInputParameters: ["inputWidth": 20])!) 

ciFilters.append (CIFilter (name:

I also tried with CIZoomBlur not to work either, however CIPixellate does.

Did I miss something fundamental here?

Update: I tried everything in CICategoryBlur and cannot make them work, however every other CICategory element I tried to work with could work.

Thanks.

+5
source share

Source: https://habr.com/ru/post/1237874/


All Articles