How do I create an arobject

Asked on 03/10/2025

1 search

To create an AR object, you can follow these steps based on the information from the WWDC sessions:

  1. 3D Model Creation: First, you need a 3D model of the object you want to use. This model should be in the USDZ format, which is suitable for AR applications. You can create this model using tools like Reality Composer or find models online.

  2. Reference Object Creation: Use the CreateML app to generate a reference object from your 3D model. This involves training a machine learning model to recognize the object. The CreateML app provides a spatial object tracking template to facilitate this process. This step is crucial for enabling object tracking in AR applications.

  3. Object Tracking: Once you have your reference object, you can use ARKit to track it. Load the reference object into your ARKit session and configure an object tracking provider. This allows you to anchor virtual content to the real-world object.

For more detailed guidance, you can refer to the session Explore object tracking for visionOS (05:07) which covers creating a reference object, and Create enhanced spatial computing experiences with ARKit (06:46) which discusses object tracking.