How do I create a 3D model to use in visionOS?

Asked on 07/30/2024

1 search

To create a 3D model to use in visionOS, you can follow these steps:

  1. Create or Obtain a 3D Model:

    • You can create a 3D model using tools like Blender, Autodesk Maya, or SideFX Houdini. The most important thing is to save your work in the USDZ file format, which is required for visionOS.
    • Alternatively, you can use apps like Reality Composer to capture objects using your phone or find models online and convert them to USDZ format using built-in tools on your Mac.
  2. Optimize Your 3D Model:

    • Ensure your model is optimized for performance. For immersive scenes, aim for no more than 500,000 triangles, and for shared spaces, aim for 250,000 triangles. Try to keep the number of triangles in view to around 100,000 to maintain performance.
    • Split large objects into chunks to allow for culling when off-camera.
  3. Import and Train in CreateML:

    • Import your USDZ file into the CreateML app to train a machine learning model for object tracking. Drag and drop your USDZ file into the 3D viewport in CreateML.
    • Verify the scale and dimensions of your 3D model to ensure it matches the real-world object.
    • Select the most suitable viewing angle for your object to optimize the tracking experience.
  4. Save and Use the Reference Object:

    • Once the training is complete, save the reference object. This reference object is a new file type introduced for object tracking.
    • Use this reference object in your app to anchor virtual content and create your spatial experience.

For more detailed steps and examples, you can refer to the session Explore object tracking for visionOS.

Relevant Sessions

  1. Explore object tracking for visionOS
  2. Optimize your 3D assets for spatial computing
  3. Create custom environments for your immersive apps in visionOS

These sessions provide comprehensive guidance on creating, optimizing, and using 3D models in visionOS.