Universal AR

提供: ディーズガレージ wiki
移動先: 案内検索

glbとUSDZを作り<model-viewer>に組込みしてみます。

Ar qr.png

https://dz.plala.jp/ar

環境

DCCツール unity, 3dsMax, vscode
検証環境 iPhone XS

具合

Unity

glTF

GitHub - Plattar/gltf-exporter

USDZ

GitHub - Unity-Technologies/usd-unity-sdk
https://forum.unity.com/threads/usd-for-unity-updates.646645/page-3

アニメーション付きUSDZはAdobeAero一択かも?
Adobe Aero サポートされているファイル形式

Web Tools

GLB Packer

Facebook for Developers
https://glb-packer.glitch.me

Interactive Example

https://modelviewer.dev/examples/tester.html

Converter

USD from glTF

GitHub - google/usd_from_gltf

VMware Workstation 15 Player
Ubuntu 18.04.3 LTS

USD

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install build-essential cmake libboost-dev libboost-all-dev libtbb-dev git pyside-tools python-pip
$ pip install PyOpenGL
$ sudo apt install libx11-dev libglew-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev
$ git clone https://github.com/PixarAnimationStudios/USD
$ sudo python USD/build_scripts/build_usd.py /usr/local/USD

usdview

$ cd ~
$ export PYTHONPATH=$PYTHONPATH:/usr/local/USD/lib/python
$ export PATH=$PATH:/usr/local/USD/bin
$ cd USD
$ usdview extras/usd/tutorials/convertingLayerFormats/Sphere.usda

USD_from_glTF

$ cd ~
$ sudo apt install nasm
$ pip install Pillow
$ git clone https://github.com/google/usd_from_gltf
$ python usd_from_gltf/tools/ufginstall/ufginstall.py ~/usd_from_gltf /usr/local/USD

error
CentOS 7がよさげ

gltf2usd

GitHub - kcoley/gltf2usd

VMware Workstation 15 Player
Ubuntu 18.04.3 LTS

gltf2usd

$ sudo apt install zlib1g-dev
$ sudo apt install openexr
$ sudo apt install libopenexr-dev
$ pip install openexr
$ git clone https://github.com/kcoley/gltf2usd.git
$ cd gltf2usd
$ pip install -r requirements.txt

変換

$ cd ~
$ cd gltf2usd/Source
$ export PYTHONPATH=$PYTHONPATH:/usr/local/USD/lib/python
$ export PATH=$PATH:/usr/local/USD/bin
$ python gltf2usd.py -g ../../gltf/littlest-tokyo.gltf -o ../../littlest-tokyo.usdz

log

Alpha Mask not supported in USDPreviewSurface!  Using Alpha Blend...

アニメーションのエクスポートに成功してる

ソース

参考: GitHub - model-viewer/README.md
参考: GitHub - model-viewer/POLYFILLS.md
参考: https://modelviewer.dev/

index.html
script.js
style.css
data.json

リソース

HDR

https://hdrihaven.com/

Model

Le Corbusier LC2 © CASSINA IXC. Ltd.
Aeron Chair © Herman Miller, Inc.
Ball Chair © Eero Aarnio
Panton Chair © Vitra
Noguchi Coffee Table © Vitra
PH 5 Classic © Louis Poulsen

Sketchfab

CC BY 4.0
Spot Mini (Rigged) @ Greg McKechnie
model mechanics @ sandwichsoul
Littlest Tokyo @ glenatron
Thor and the Midgard Serpent @ Mr. The Rich
Mech Drone @ Willy Decarpentrie
Robot Steampunk 3D-Coat 4.5 PBR @ 3d-coat
Junkrat @ Claudia Luehl
Space Invader @ Sirhaian
cute dog @ RODX81
animated EAGLE @ Asim3d
Flying Bee @ elly77ellison

CC BY-NC 4.0
Tokay gecko @ DigitalLife3D
Southern White Rhino @ DigitalLife3D
Loggerhead sea turtle @ DigitalLife3D

CC BY-NC-SA 4.0
BB8 (Animated) @ StarWars-Universe
R2-D2 (Animated) @ StarWars-Universe
DANCING STORMTROOPER @ StrykerDoesAnimation 自主規制

Google

https://developers.google.com/ar/develop/java/scene-viewer
CC BY 4.0 ?
https://storage.googleapis.com/ar-answers-in-search-models/

更新履歴

  • 2020.01.21 更新
  • 2020.01.07 更新
  • 2019.10.25 公開