2

I am trying to load a .usdz model with transparency in SceneKit. It works perfectly in RealityKit but in the case of SceneKit I only get a black sphere.

How can I solve this issue?

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220

1 Answers1

1

In order to see a material of USDZ model in SceneKit just turn the default lighting on.

@IBOutlet var sceneView: ARSCNView!

sceneView.autoenablesDefaultLighting = true

If you need to learn more about transparency in SceneKit, read this post and this post.


P.S.

Also, read about the similarities between SceneKit and RealityKit shaders.

Andy Jazz
  • 49,178
  • 17
  • 136
  • 220