0

Is it possible to put some kind of a photo filter effect over SpriteKit Scene?

I am creating a game and at certain points I'd like to make it more difficult with a effect like Sepia, Black&White, Chrome or something similar.

So far I have just created an image which I present with a low alpha value over the scene as a SKSpriteNode, but that is not really what I want, a realtime filter like Black&White would be better.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
RjC
  • 827
  • 2
  • 14
  • 33
  • Have you tried using CoreImage? –  Aug 15 '17 at 21:48
  • How would I do this? – RjC Aug 15 '17 at 22:32
  • So far I just did productivity apps and never used CoreImage or SpriteKit before. SpriteKit is quite easy but still all new terrain for me. – RjC Aug 15 '17 at 22:37
  • SpriteKit and UIKit are very separate frameworks. A quick search gave me this (https://stackoverflow.com/questions/22490818/how-do-i-blur-a-scene-in-spritekit#22494746), which tells me it *is* possible to use CI in certain SK classes. The effort may not be worth it, but then again, it may make your app a bit more unique. –  Aug 15 '17 at 23:56
  • Cheers. I am going to try this. – RjC Aug 16 '17 at 08:07
  • Have a look at this example [Add glowing effect to an SKSpriteNode](https://stackoverflow.com/a/40362874/1761687) – Luca Angeletti Oct 03 '20 at 10:25

0 Answers0