Capítulo 616 de 859

Chapter 616: USDZExporter

Core Idea

An exporter for USDZ.

Key Concepts

  • textureUtils : WebGLTextureUtils | WebGPUTextureUtils: A reference to a texture utils module.

Code Examples

const exporter = new USDZExporter();
const arraybuffer = await exporter.parseAsync( scene );
  • What it demonstrates: Typical usage of USDZExporter.

Reference Tables

Constructor

Signature
new USDZExporter()

Properties

PropertyDescription
`.textureUtils : WebGLTextureUtilsWebGPUTextureUtils`

Methods

MethodDescription
.parse( scene : Object3D, onDone : USDZExporter~OnDone, onError : USDZExporter~OnError, options : USDZExporter~Options )Parse the given 3D object and generates the USDZ output.
.parseAsync( scene : Object3D, options : USDZExporter~Options ) : Promise.<ArrayBuffer> (async)Async version of USDZExporter#parse.
`.setTextureUtils( utils : WebGLTextureUtilsWebGPUTextureUtils )`

Key Takeaways

  1. Most relevant properties: textureUtils.
  2. Key methods: parse, parseAsync, setTextureUtils.

Connects To