Guig
Guig

Reputation: 10187

iOS10 + SceneKit: render a video with custom shader

How can I render a video as a diffuse texture on a node in SceneKit while using custom shader? This sounds like a simple thing to do but:

I'm still quite reluctant to get out of SceneKit, since it's handling a lot of the annoying low level things with opengl/metal, but I can't get things to work right now...

As an additional bad news, it looks like SpriteKit has memory leak when used with Metal, and that it keeps alive the SceneView, and therefore all the parent views and everything attached to them...

You can find a reproduction of this issue here, and a simpler one here:

Upvotes: 4

Views: 1444

Answers (1)

Guig
Guig

Reputation: 10187

Not being able to solve this issue, I wrote my own library that mimics some functionalities of SceneKit: https://github.com/team-pie/DDDKit

Upvotes: 2

Related Questions