Render off-screen SCNScene into UIImage
问题 How can I render render an off-screen SCNScene into a UIImage ? I know that SCNView provides a -snapshot method, but unfortunately that doesn't work for off-screen views. A similar question have been asked before where one of the answers suggest reading the bitmap data from OpenGL using glReadPixels , but that approach doesn't work for me with an off-screen scene. I tried rendering into the context of an GLKView using SCNRenderer without success. 回答1: Swift 4 with SCNRenderer: You can use