I'm trying to load a usdz
file into ARKkit that has glass transparency on one of its materials. When I put the model into a QLPreviewController
the glass renders properly. The problem is I want to render the glass in a SCNScene
with ARKit, not QLPreview
, the glass material is black when I load it into a SCNScene. It is also black when I preview it in Xcode.
Not sure what QLPreview
is doing, or if I'm doing something wrong with my lighting in my scene. I've removed all my custom lights and just have autoenablesDefaultLighting
set to true
. Then I set each material's lighting model to be PhysicallyBased
. But still just black.
Anybody know what I need to do to render the same way QLPreview
does? Do I need to unpack the usdz to get the transparency texture and set that manually?
Thanks!