iosobjective-ccocoa-touchscenekit

Don't have childNodes when running on device


I've created a simple project to try out SceneKit, added a scene which contains a man character and a camera.

The problem is the code behaves differently on the simulator and on the device.

When loading the man character into a SCNNode object, in the simulator this "man" node has child nodes, which themselves contain geometry.

However when running on device, the man node contains no child nodes and itself have the geometry.

Why is that so? Can someone explain what exactly I messed up?

I've uploaded the sample project to GitHub so you could check it out and run it on your simulator and device.

https://github.com/iamBlueGene/SceneKitExperiment

Thanks, Eli.


Solution

  • I think I've figured this one out.

    The problem is that because the vertexs are split across the containers in the .dae file is due to limitations on the number of vertexes, different configuration can open the file differently.

    You can try opening the scene again and exporting it again (or maybe just the character if you can) and check again.