Reputation: 145
Having a bit of a head-scratcher with the new filter features in SceneKit with iOS9. To simplify the case as much as possible, if I add the line:
ship.filters = [CIFilter(name: "CIPixellate", withInputParameters: [kCIInputScaleKey: 30])!]
To the default SceneKit project, build and run for simulator, the ship pixellates as expected. If I build and run the same project on-device, the ship disappears. I've tried various permutations, multiple devices, and even several SceneKit demonstrations on blog postings, and they all have the same issue. I'm just not sure what I'm missing.
Upvotes: 2
Views: 501
Reputation: 4064
CIFilter are not supported by SceneKit when using Metal (which is the default on the device). See documentation of SCNNode / filters.
If you need CIFilter you have to explicitly request a GL based renderer (using InterfaceBuilder or SCNView's "renderingAPI" property).
Upvotes: 1