Search code examples
androidunity-game-engineaugmented-realityarcoresceneform

How to generate one object using multiple objects in ARCore?


Does anyone know how to generate single object using multiple objects in ARCore?

for example, generate a table using table parts like legs etc.

In fact, i have no idea whether it's possible or not.

is it possible to do this in runtime?


Solution

  • Assembling/transforming animation of 3D models doesn't depend on ARCore at all. All you need is to prepare an animation of transformed parts of your 3D scene (you can do it in 3D authoring tool like 3dsMax, Maya, Modo, Cinema4D, Blender, etc), then you need to combine all those 3D components into a single group that has just a single pivot point. Then save your 3D scene in any supported format: .obj, .gltf or .fbx.

    enter image description here

    If you've built an ARCore app with plane detection, image detection or face detection feature – at runtime (after a two-second tracking) you automatically get ARAnchor which must meet a pivot point of a group where all the animated components reside. That's it.