I want to use SceneKit on MacOS to load a Collada file and get scene node properties to use them with my own scene graph.
I can easily access vertices, normals, transformation matrices, material properties and so forth – everything except of the texture file names.
I would expect a texture's file name to be stored in an instance of SCNMaterialProperty Class. From the documentation:
The SCNMaterialProperty class encapsulates a texture and a set of attributes specifying how the texture is applied on the object.
But I can only get an NSImage representing the texture, not the source file name itself.
It must be somewhere - In the inspector of XCode's collada viewer the file name is displayed as well (along with properties from SCNMaterialProperty):
How do i access a texture's file name in a SceneKit object graph?