如何创建USDZ文件? [英] How to create a USDZ file?
问题描述
我试图在 http://graphics.pixar.com上查看主要文档。 /usd/docs/index.html 和 http: //graphics.pixar.com/usd/docs/Usdz-File-Format-Specification.html ,但找不到创建 usdz
文件的详细信息。
I tried to look at the main documentation at http://graphics.pixar.com/usd/docs/index.html and http://graphics.pixar.com/usd/docs/Usdz-File-Format-Specification.html but could not find the details to create a usdz
file.
我可以从 http://graphics.pixar.com/usd/downloads.html
我们如何创建一个?
推荐答案
Apple在以下网址提供了usdz文件库
A gallery of usdz files are provided by Apple at the url below
https://developer.apple.com/arkit/gallery/
您需要安装有iOS12 beta的设备,才能在移动设备上查看这些模型。基本上,Apple使用Mime类型的model / usd usdz和model / und.pixar.usd.usdz将它们标识为AR可见。您还需要通过safari浏览器执行此操作... Chrome不支持文件格式。
You need a device with iOS12 beta installed for the models to be viewable on your mobile device. Basically Apple uses Mime-types model/usd usdz and model/und.pixar.usd .usdz to identify them as AR viewable. You also need to do this via the safari browser... Chrome does not support the file format.
列出缩略图usdz文件的html如下。
the html to list a thumbnail usdz file would be the following.
<a rel="ar" href="model.usdz">
<img src="model-preview.jpg">
</a>
为了创建自己的usdz文件,Apple捆绑了usdz_converter作为Xcode 10的一部分。它是命令行从OBJ文件,单帧Alembic(ABC)文件,USD文件(.usda或usd.c)创建usdz文件的工具
to create your own usdz files, Apple has bundled usdz_converter as part of Xcode 10. Its a command line tool for creating the usdz file from OBJ files, Single-frame Alembic (ABC) files, USD file (either .usda or usd.c)
基本命令行是
xcrun usdz_converter Wineglass.obj Wineglass.usdz
usdz支持基于物理的渲染,要实现此目的,您需要像这样为PBR的每个组件添加图像,
usdz supports physically based renders, to achieve this you add images for each component of the PBR like so,
xcrun usdz_converter Wineglass.obj Wineglass.usdz
-g WineGlassMesh
-color_map WineGlass_Albedo.png
-metallic_map WineGlass_Metallic.png
-roughness_map WineGlass_Roughness.png
-normal_map . WineGlass_Normal.png
-emissive_map WineGlass_Emissive.png
一个不错的视频,让您开始如何创建usdz文件,并将其托管在网页&在自己的应用中创建快速查看
A good video to get you started on how to create usdz files, host on a webpage & create a quicklook in your own app
https://developer.apple.com/videos/play/wwdc2018/603/
这篇关于如何创建USDZ文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!