Hi, I developed a 2d spritekit game with xcode and swift and now making my way to 3D models. I was enjoying Reality Composer because I could lay on the couch for hours and get lots done.
while I will be looking at making an optional AR component, while I work on the beginnings of my project I would like to create a battle "scene" that uses my reality composer models with a non-ar background. (Like the pokemon go "catch" scene when the ar is turned off)
The 2 options I can think of are:
make a realitykit scene and apply a background
or
make a scenekit scene using the .reality object file.
I cannot find a way to do either of these things. SceneKit does not seem to interact with .reality files and I cannot find a way to convert my .reality files.
and as far as realitykit tutorials go, it is suggested that it has no uses for non-ar environments.
it seems really silly, like I'm missing something super simple here. So if you could correct my knowledge for either of these issues or come up with a much better option - I would appreciate it, thanks.
while I will be looking at making an optional AR component, while I work on the beginnings of my project I would like to create a battle "scene" that uses my reality composer models with a non-ar background. (Like the pokemon go "catch" scene when the ar is turned off)
The 2 options I can think of are:
make a realitykit scene and apply a background
or
make a scenekit scene using the .reality object file.
I cannot find a way to do either of these things. SceneKit does not seem to interact with .reality files and I cannot find a way to convert my .reality files.
and as far as realitykit tutorials go, it is suggested that it has no uses for non-ar environments.
it seems really silly, like I'm missing something super simple here. So if you could correct my knowledge for either of these issues or come up with a much better option - I would appreciate it, thanks.
I have discovered that in the preferences of Reality Composer there is an option to allow for exporting to a ".usdz" file format. This file format is compatible with SCNScene and solves my initial question.
However I am having continued difficulty. I can successfully load the ".usdz" file as a SCNScene but I keep getting an error regarding the mesh data:
was cutting it when placing each individual shape into a new node.
However I am having continued difficulty. I can successfully load the ".usdz" file as a SCNScene but I keep getting an error regarding the mesh data:
I've noticed that the USDZ has a lot of subdirectories when viewed in Xcode and not sure if this:"USDMeshPrim does not contain mesh data. Skipping".
Code Block for childNode in newScene.rootNode.childNodes { newNode.addChildNode(childNode) }
was cutting it when placing each individual shape into a new node.