SpriteKit + GLKit

Is there any way to use SpriteKit directly with GLKit? For example render the SKScene to a OpenGL Texture? I see when you use SpriteKit with SceneKit there is a Sprite Kit Renderer being used in the GL trace.

Can you force Sprite Kit to use OpenGL instead of Metal?

Does it currently only use metal? If so thats a pretty big issue, but i've tested and you can use a SceneKit scene set to OpenGL and use SpriteKit as a SCNMaterial. But it can't only support Metal, only 3 of the iOS 9 devices can use metal. everything else is OpenGL.

I didn't mean to suggest that Sprite Kit only uses Metal. Of course Sprite Kit has to use OpenGL or OpenGL ES on obsolete hardware. I was asking if, as with Unity, you can force usage of a certain graphics API, or if the equivalent of Unity's "automatic' setting is employed, where the assumption is made that you don't need to interact with that low a level of API.

For SceneKit View in iOS 9 you can specify OpenGL / Metal, but nothing for SpriteKit View.

When will Apple pay attention to SpriteKit, my games are all broken in iOS9, im receiving bad reviews, and its not my fault. This is terrible.

Hi SlashAndBurn,


There is an option that works for both SpriteKit and SceneKit without having to modify your view.


By default, SpriteKit and SceneKit render with Metal in iOS 9 and OS X El Capitan, however, there is a facility to use OpenGL.


IMPORTANT: For optimal performance, Metal rendering in SpriteKit and SceneKit is enabled by default. Setting PrefersOpenGL rendering key is not recommended unless it is determined necessary for other reasons.


To do that:

  1. Edit your app's Info.plist
  2. Add the
    PrefersOpenGL
    key with a bool value of YES


Cheers

SpriteKit + GLKit
 
 
Q