# USDZ Convert

* [**How to create USDZ file using Xcode converter?**](https://stackoverflow.com/questions/50846627/how-to-create-usdz-file-using-xcode-converter?rq=1)

```
In macOS 10.15 Catalina and Xcode 11 USDZ converter has a rich set of 
commands and supports more input formats for conversion than previous version. 
But before using it you need to download usdz Tools. 
And don't forget to setup a global variables for Python usdz tools. 
Here's how a new command looks like in Terminal:
```

記錄實作方法： PS: 做圖檔烘培是為了讓輸出的 usdz 模型有顏色

* 拆 UV 1. 先開啟兩個視窗 2. 右邊視窗切換成 UV/Image Editor 3. 建立UV：左邊視窗點 U -> Smart UV Project，右邊會產生 UV 網格&#x20;

![](https://1934061725-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4XrCDvjc3xNfiB-3eT%2F-M4Y-TstkTXMD9Y8W9l7%2F-M4Y03baLprcuBid1pED%2FSmartUV.png?alt=media\&token=a4113edc-4159-4fa5-8ce1-e2228136865b)

* 圖檔烘培 3-1. 選擇要烘培的節點 3-2. 選擇 Edit Mode 3-3. 按 A，全選 4. 命名一個新的圖片名稱 5. 選擇相機（這是 Render 功能） 6. 點 Bake，開始烘培 7. 將烘培圖片儲存 ( EX: alpha.png )

```
注意: 一定要打燈光，否則烘培出來的圖會一片黑，至少前後打兩盞
```

![](https://1934061725-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M4XrCDvjc3xNfiB-3eT%2F-M4Y-TstkTXMD9Y8W9l7%2F-M4Y03b6zRfgErCQNst6%2FBake.png?alt=media\&token=7537c8f0-804e-4037-95e2-190b067ac11b)

* blender 輸出 obj 檔 ( EX: Alpha.obj )
* 下載 USDZ 轉換工具
  * [**USDZ Convert 工具官網下載**](https://developer.apple.com/download/more/?=USDPython)
* 執行以下指令，即可產出有顏色的 usdz 檔

  ```
  usdzconvert Alpha.obj -diffuseColor alpha.png
  ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jacky-chen.gitbook.io/jackychen/dai-fen-lei/usdz-convert.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
