Exported textures in a SceneKit scene that was assigned as just the image name isn't linked in the exported scene

Originator:david.ronnqvist
Number:rdar://18947074 Date Originated:12-Nov-2014
Status:Open Resolved:
Product:OS X SDK Product Version:
Classification: Reproducible:Always
 
Summary:
There are many different ways of assigning contents to a material property in Scene Kit. They all render fine. When it comes to exporting the scene you need to write the images to disk if you used anything but the NSImage object.

If only the image name is assigned as the content, it doesn't get linked when exporting. The image is successfully written to disk and the URL is returned in the export delegates method, but the exported COLLADA file doesn't display it.

Steps to Reproduce:
Setup a small scene (see sample project)
Assign just the image name to the contents of a material
Export the scene
Write the image to disk and return its URL in the export delegate method

No warnings are printed in the console (in some other cases there are (for issues where the image can't be linked))

Expected Results:
The exported scene references the image, just as it would have if the NSImage, full path, or full URL had been assigned.

Actual Results:
The image is written to the right location but the exported scene doesn't display it.

Version:
Xcode Version 6.1 (6A1052d)
OS X Version 10.10 (14A388a)

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!