11

Apple AR Quick Look 显然只支持.usdz文件。那么,将.objor.stl转换为 的最简单方法是.usdz什么?

我首先搜索了这个,但最受欢迎的结果是使用了一个名为Vectary的免费工具,但当我真正尝试使用它时,它并不是免费的。

谢谢。

4

5 回答 5

9

借助 iOS 13 和 Reality Kit,Apple 发布了不需要 Xcode 的 USDZ 转换器;转换器是一个基于 Python 的工具。最近几天我一直在使用它来转换各种文件 gltf、obj 文件。

下载链接:

https://developer.apple.com/download/more/?=USDPython

示例用法:

usdzconvert someobject.obj  

您将需要编辑环境变量的路径。

或者双击文件夹顶层的文件:

USD.command

启动一个设置了环境变量的 shell。

在 Xcode 11 中,您可以将 SCN 文件导出为 USDZ 文件。

值得观看 WWDC 2019 视频;刚刚超过 30 分钟:

https://developer.apple.com/videos/play/wwdc2019/602/

于 2019-09-17T21:50:30.423 回答
3

如果您使用的是Xcode 12Xcode 11,您可以使用以下命令Terminal

usdzconvert ~/Desktop/file.obj

usdzconvertcommand 是一个 Python 脚本,可将.obj.gltf.fbx.abc.usda.usdc.usdassets 转换为usdz.

如果你想在终端中使用这个命令,你需要从这里下载usdz 工具

在此处输入图像描述


如果您使用的是Xcode 10,请在 中键入以下命令Terminal

xcrun usdz_converter ~/Desktop/file.obj ~/Desktop/file.usdz

有关更多详细信息,请查看THIS POSTTHIS POST

于 2019-09-15T20:46:03.930 回答
2

If you're using Xcode, this is the easiest solution

Open the file in Xcode, then go to File > Export... and choose the file type (.usdz is 'Universal Scene Description (Mobile)'):

Exporting as <code>.usdz</code>

于 2020-02-07T15:49:28.300 回答
1

Apple 发布了一款名为 Reality Converter 的工具,该工具有一个界面,可让您将 .obj、.gltf 和 .usd 文件转换为 .usdz

看看:https ://developer.apple.com/news/?id=01132020a

于 2020-05-12T15:28:28.233 回答
0

您上传到sketchfab.com 的任何内容都会自动转换为usdz(和gltf),并且Sketchfab 支持30 多种格式作为输入,包括obj、fbx、stl、dae、blend...

于 2020-07-10T10:18:30.283 回答