"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Metal Rendering & SceneKit

Hi,

I'm trying to render a SceneKit scene with Metal. I started from the ImageTargetsMetal sample from the Advanced Topics zip file.

I already managed to render SceneKit in the EAGLView using OpenGL, by using a SCNRenderer initialized with the GL context that Vuforia is using.

 

Now I tried a similar approach with metal, using a the same Metal device that Vuforia uses, using

renderAtTime:viewport:commandBuffer:passDescriptor:

iOS tells me in an runtime error that I can't use the commandBuffer since the encoder is still active; When I try to render a scene after [encoder endEncoding];, I get a black screen. How can I render the SceneKit scene? Is it possible?

Thanks,

Philipp