Closed dmsurti closed 7 years ago
If one tries to serialize a SCNScene file as generated by this library, and serialize it using writeToURL:options:delegate:progressHandler: method results in the following error:
SCNScene
writeToURL:options:delegate:progressHandler:
2016-12-26 18:45:21.295143 iOS-Example[6600:290522] -[__NSCFType encodeWithCoder:]: unrecognized selector sent to instance 0x1740ba640 2016-12-26 18:45:21.296803 iOS-Example[6600:290522] failed to archive material's custom attributes. <SCNMaterial: 0x1741a15e0 diffuse=<SCNMaterialProperty: 0x17413d380 | contents=/var/mobile/Containers/Data/Application/ABD6105E-1D4F-47DE-A796-FE38DBAECDAA/Documents/boy_10.tga> ambient=<SCNMaterialProperty: 0x1743217c0 | contents=UIExtendedSRGBColorSpace 0.484529 0.484529 0.484529 1> specular=<SCNMaterialProperty: 0x174321860 | contents=UIExtendedSRGBColorSpace 0 0 0 1> emission=<SCNMaterialProperty: 0x174321900 | contents=UIExtendedSRGBColorSpace 0 0 0 1> transparent=<SCNMaterialProperty: 0x1743219a0 | contents=UIExtendedSRGBColorSpace 1 1 1 1> reflective=<SCNMaterialProperty: 0x174321a40 | contents=UIExtendedSRGBColorSpace 0 0 0 1> multiply=<SCNMaterialProperty: 0x174321ae0 | contents=UIExtendedSRGBColorSpace 1 1 1 1> normal=<SCNMaterialProperty: 0x174321b80 | contents=UIExtendedSRGBColorSpace 1 1 1 1>
Fixed in PR #43
If one tries to serialize a
SCNScene
file as generated by this library, and serialize it usingwriteToURL:options:delegate:progressHandler:
method results in the following error: