「Universal AR」の版間の差分
(→具合) |
(→具合) |
||
17行目: | 17行目: | ||
audio同期<br /> | audio同期<br /> | ||
[https://github.com/google/model-viewer/discussions/2166 Synced audio · Discussion #2166 · google/model-viewer · GitHub] | [https://github.com/google/model-viewer/discussions/2166 Synced audio · Discussion #2166 · google/model-viewer · GitHub] | ||
+ | |||
+ | メモ<br /> | ||
+ | 国際宇宙ステーションの加工<br /> | ||
+ | blenderでglb入力obj出力 > 3dsmaxで調整fbx出力 > Unity | ||
検証<br /> | 検証<br /> | ||
22行目: | 26行目: | ||
https://arvr.google.com/scene-viewer/1.0?file=https://dz.plala.jp/ar/data/le_corbusier_lc2_1r.glb<br /> | https://arvr.google.com/scene-viewer/1.0?file=https://dz.plala.jp/ar/data/le_corbusier_lc2_1r.glb<br /> | ||
glbのあるサーバ側のレスポンスヘッダ<br /> | glbのあるサーバ側のレスポンスヘッダ<br /> | ||
− | .htaccessにAccess-Control-Allow-Origin | + | .htaccessにAccess-Control-Allow-Origin<br /> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
参考: [https://developers.google.com/ar/develop/java/scene-viewer シーンビューアを使用して、Android... | ARCore]<br /> | 参考: [https://developers.google.com/ar/develop/java/scene-viewer シーンビューアを使用して、Android... | ARCore]<br /> | ||
参考: [https://support.google.com/websearch/answer/9817187?hl=ja&co=GENIE.Platform%3DAndroid 検索で 3D と拡張現実を体験する...]<br /> | 参考: [https://support.google.com/websearch/answer/9817187?hl=ja&co=GENIE.Platform%3DAndroid 検索で 3D と拡張現実を体験する...]<br /> | ||
参考: https://zenn.dev/ikkou/articles/5fadc72b6c9e32 | 参考: https://zenn.dev/ikkou/articles/5fadc72b6c9e32 | ||
+ | Google検索<br /> | ||
[https://dz.plala.jp/wiki_data/google_ar.html Google検索 ARモデル一覧]<br /> | [https://dz.plala.jp/wiki_data/google_ar.html Google検索 ARモデル一覧]<br /> | ||
260個 2021年9月 | 260個 2021年9月 |
2021年9月29日 (水) 14:16時点における版
UnityでGLBとUSDZを作り<model-viewer>に組込みしてみます。
具合
- three.jsにusdz exporterある https://threejs.org/examples/#misc_exporter_usdz
- UnityのStandard ShaderはGLBとUSDZで違いが出てる
- 顔の表情は@google安定してる 真似した方が良さげ
audio同期
Synced audio · Discussion #2166 · google/model-viewer · GitHub
メモ
国際宇宙ステーションの加工
blenderでglb入力obj出力 > 3dsmaxで調整fbx出力 > Unity
検証
Googleのシーンビューアでクロスドメイン通信
https://arvr.google.com/scene-viewer/1.0?file=https://dz.plala.jp/ar/data/le_corbusier_lc2_1r.glb
glbのあるサーバ側のレスポンスヘッダ
.htaccessにAccess-Control-Allow-Origin
参考: シーンビューアを使用して、Android... | ARCore
参考: 検索で 3D と拡張現実を体験する...
参考: https://zenn.dev/ikkou/articles/5fadc72b6c9e32
Google検索
Google検索 ARモデル一覧
260個 2021年9月
GLBだけを作成し"Google アプリ"に誘導してる > USDZ自動変換どうだろう?
iPhoneのsafariの場合、"Google アプリ"誘導が不安定に見える
"Google アプリ"だけで起動するよう設定
1. Google アプリ をインストール 2. アプリを起動し、検索窓のカメラアイコンをクリック 3. 上記のQRコードを読み取り、ウェブサイトを開く 4. お気に入りに登録
環境
DCCツール | unity, 3dsMax |
検証環境 | iPhone XS |
GLTF Exporter
GitHub - Plattar/gltf-exporter
GLTF GLB Importer Exporter
GitHub - sketchfab/UnityGLTF: Runtime GLTF Loader for Unity3D
GLB Packer
https://glb-packer.glitch.me
https://github.com/sbtron/makeglb
USD Unity SDK
GitHub - Unity-Technologies/usd-unity-sdk
gltf2usd
VMware Workstation 15 Player Ubuntu 18.04.3 LTS
インストール
$ 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...
USD from glTF
VMware Workstation 15 Player Ubuntu 18.04.3 LTS
インストール
$ 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
Adobe Aero
Adobe AeroでARを制作 | Adobe
Adobe Aero サポートされているファイル形式
3D コンテンツを Aero 用に準備する
ポリゴン:130,000まで ボーン:6つまで? テクスチャ:1024x1024(最大2048x1080)まで
<model-viewer>
参考: GitHub - model-viewer/README.md
参考: GitHub - model-viewer/POLYFILLS.md
参考: https://modelviewer.dev/
参考: <model-viewer> Interactive Example
ソース
index.html script.js style.css data.json
リソース
HDRI
更新履歴
- 2021.09.11 Google検索 ARモデル一覧 追加
- 2020.05.13 ソース書き換え
- 2020.05.10 アニメーション付きUSDZ追加
- 2019.10.25 公開