如何创建 USDZ 文件? [英] How to create a USDZ file?

查看:51
本文介绍了如何创建 USDZ 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图查看位于 http://graphics.pixar.com 的主要文档/usd/docs/index.htmlhttp://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/获取一些示例美元文件下载.html

我们如何创建一个?

推荐答案

Apple 在下面的 url 提供了一个 usdz 文件库

A gallery of usdz files are provided by Apple at the url below

https://developer.apple.com/arkit/gallery/

您需要一台安装了 iOS12 测试版的设备,才能在您的移动设备上查看模型.基本上,Apple 使用 Mime-types 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 或美元.c)

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆