9

I want to dynamically load tiles and display them on a SCNSphere. Of course I can assign a UIImage to the SCNMaterial:

sphere.firstMaterial!.diffuse.contents = image  

However that means that I've to merge all tiles together in a huge UIImage first. And I have to do that each time a new tile is fetched. A CATiledLayer based SCNMaterial would be another option but sadly it's not available on Apple Watch.

Is there a way to keep the tiles separate in SceneKit? I tried using multiple materials for the sphere but that didn't work.

Ortwin Gentz
  • 52,648
  • 24
  • 135
  • 213

0 Answers0