Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot view .dae file in Xcode

I export .dae file by Maya or 3dMax, copy this .dae file to xcode project, some time this file cannot view, I have to delete this file and export another file. When click on error file -> xcode show alert

Unable to load file:///Users/MACBOOK/Desktop/AR/TestAR%202/TestAR/TestAR/3d.scnassets/__testFile/model.dae. (Error Domain=NSCocoaErrorDomain Code=259 "The document "model.dae" could not be opened." UserInfo={NSURL=file:///Users/MACBOOK/Desktop/AR/TestAR%202/TestAR/TestAR/3d.scnassets/__testFile/model.dae, NSLocalizedDescription=The document "model.dae" could not be opened., NSLocalizedRecoverySuggestion=The document does not have a scene. Please check that it has not been corrupted.})

Anyone know why this happen and how to solve it?

like image 972
Tulip Avatar asked Oct 15 '22 13:10

Tulip


1 Answers

I encountered this issue, and I found this in the .dae file I was using:

<scene>
  <instance_visual_scene url="#walk test 3ds 2020 export"/>
</scene>

I removed the spaces to get

<scene>
  <instance_visual_scene url="#walktest3ds2020export"/>
</scene>

and also edited the other places that string appeared in the file, and it loaded successfully. So that is a possible thing to check.

See also this thread which is what prompted me to look for invalid characters: https://forums.autodesk.com/t5/fbx-forum/3d-artist/m-p/7294181/highlight/true#M8817

like image 125
Onyxite Avatar answered Oct 21 '22 01:10

Onyxite