An SKEffectNode object applies a Core Image filter to its rendered output, allowing you to incorporate sophisticated special effects in a scene. Available in iOS 7.0 and later.
Questions tagged [skeffectnode]
41 questions
23
votes
3 answers
How can you create a glow around a sprite via SKEffectNode
I have a SKSpriteNode that I'd like to have a blue glow around it's edges for highlighting purposes. I am guessing that I would need to make my sprite a child of a SKEffectNode and then create/apply a filter of some sort.
UPDATE : I have…

prototypical
- 6,731
- 3
- 24
- 34
21
votes
2 answers
Add glowing effect to an SKSpriteNode
I have a moving black image on a dark screen, to make it easier to see I would like to add in a white glow to the image. This is my code for the moving image:
Ghost = SKSpriteNode(imageNamed: "Ghost1")
Ghost.size = CGSize(width: 50, height:…

Oren Edrich
- 674
- 1
- 7
- 23
20
votes
0 answers
Metal crash upon adding SKSpriteNode to SKEffectNode
> -[MTLDebugRenderCommandEncoder setScissorRect:]:2028: failed assertion (rect.x(0) + rect.width(1080))(1080) must be <= 240
I am getting this crash when adding a simple SKSpriteNode to a SKEffectNode with the following code
SKSpriteNode…

user3765506
- 457
- 1
- 5
- 15
9
votes
0 answers
SpriteKit: SKSpriteNodes disappear from SKEffectNode after a few seconds
I'm working on a metaballs effect in SpriteKit. I have an SKEffectNode with a shader that compresses the colour range of its buffer. This effectnode has a hundred-odd SKSpriteNode as its children. The effect works great for a couple of seconds, but…

OliverD
- 1,074
- 13
- 19
6
votes
1 answer
How to apply full-screen SKEffectNode for post-processing in SpriteKit
I'm trying out SpriteKit with the following setup:
An SKScene with two child nodes used merely for grouping other
nodes: foreground and background.
background is really empty as of now, but would eventually hold some
type of background sprite /…

SaldaVonSchwartz
- 3,769
- 2
- 41
- 78
5
votes
1 answer
CIGaussianBlur takes too much processing
I am trying to apply CIGaussianBlur effect on Game Pause screen. Here is my code:
effectsNode = SKEffectNode();
let filter = CIFilter(name: "CIGaussianBlur");
let blurAmount = 10.0;
filter.setValue(blurAmount, forKey:…

Adnan Zahid
- 573
- 1
- 10
- 38
5
votes
3 answers
Blurring a SKShapeNode incrementally using SKEffectNode
I'm trying to blur a SKShapenode in my program. However, I want the shapenode to blur progressively, with a duration of about 1 second. How do I achieve that? The current code blurs it instantly.
func generateAnimation() {
var blurAction : SKAction…

Raghu
- 361
- 1
- 2
- 11
5
votes
2 answers
Render SKScene to SKTexture?
Is there a way in Sprite Kit that I can capture the screen (all the current SKScene rendered nodes) to an SKTexture so that I can apply a CIFilter and then assign the SKTexture back to a new SKSpriteNode?
I know that I can set an SKEffectNode, as…

fuzzygoat
- 26,573
- 48
- 165
- 294
4
votes
1 answer
Querying graphics capabilities for deciding whether to apply GPU-intensive effects (through SpriteKit)
I have a game written with SpriteKit which uses a SKEffectNode with blur effect to blur a set of sprites, one of which has a fairly large texture, and which together cover a fairly large area of the screen. An iMac and Mac Book Pro cope quite…

Neil Coffey
- 21,615
- 7
- 62
- 83
4
votes
2 answers
SKWarpGeometry on SKLabelNode as child of SKEffectNode flips label upside-down
I'm trying to warp an SKLabelNode as a child of SKEffectNode (documentation says you can do that), but it flips the label node upside-down before it applies the warp. This may be a bug, but before I file it, I thought I'd ask on here...
Here's my…

Darth Flyeater
- 151
- 1
- 5
4
votes
0 answers
SKEffectNode Performance Issue for CIFilter(name: "CIGaussianBlur") with shouldRasterize = true
I am trying to add a glow to characters or objects in my game that cause damage. I want a red glow for "bad" things in the game, i.e., spikes, guards, etc. I am using the following code, but the performance is really bad even with rasterize set to…

Jacksonsox
- 1,114
- 15
- 25
3
votes
2 answers
On iOS, can you add multiple CIFilters to a SpriteKit node?
On iOS, can you add more than one CIFilter to a SKEffectsNode?
CIFilterGenerator seems like what I want but it isn't available on iOS.
I know you can use multiple filters on an image by passing the output of one as the input of the next, but that's…

zekel
- 9,227
- 10
- 65
- 96
3
votes
2 answers
Core Image NSException Crash, why/what?
In SpriteKit, using an Effect node, I apply a simple gradient to a simple rectangle.
That seems to work fine, however adding it to the scene causes a NSException.
PLEASE: What am I doing wrong?
import SpriteKit
import GameplayKit
import…

Confused
- 6,048
- 6
- 34
- 75
3
votes
2 answers
SKEffectNode to an SKTexture?
SKEffectionNodes have a shouldRasterise "switch" that bakes them into a bitmap, and doesn't update them until such time as the underlying nodes that are impacted by the effect are changed.
However I can't find a way to create an SKTexture from this…

Confused
- 6,048
- 6
- 34
- 75
3
votes
1 answer
How do I alpha-mask a SKSpriteNode?
I know there's SKCropNode, but it will only fully in- or exclude pixels based on an alpha threshold of the maskNode. What I already tried is using the SKEffectNode with a CIBlendWithAlphaMask filter, but the result I'm getting is invisible and I…

Larry
- 205
- 1
- 9