「Multiverse XR Viewer」の版間の差分
(→メモ) |
(→名称の整理) |
||
3行目: | 3行目: | ||
|} | |} | ||
− | + | GLBとUSDZを作り<model-viewer>で表示してみます。 | |
− | [https://dz.plala.jp/ar Multiverse | + | [https://dz.plala.jp/ar Multiverse XR] |
[[ファイル:ar_qr.png|240px|border]] | [[ファイル:ar_qr.png|240px|border]] | ||
=='''メモ'''== | =='''メモ'''== | ||
− | + | メタバース標準化フォーラム<br /> | |
− | + | [https://metaverse-standards.org/ Metaverse Standards Forum] | |
− | + | ||
− | + | ||
− | + | ||
− | + | アプリレスポケモンGO出来そう<br /> | |
− | [ | + | [http://dz.plala.jp/wiki/index.php/IOS_13_deviceorientation geolocation認証]<br /> |
− | + | [https://qiita.com/chiyoyo/items/b10bd3864f3ce5c56291 2つの座標間の距離を求める - Qiita]<br /> | |
− | + | [https://qiita.com/kawanet/items/a2e111b17b8eb5ac859a 緯度経度から2地点間の距離 (km) を計算する JavaScript - Qiita]<br /> | |
− | + | 山手線全駅30ヶ所に出現アンカーどうだろう?<br /> | |
+ | [https://100map.net/rosenzu/%E9%96%A2%E6%9D%B1/%EF%BC%AA%EF%BC%B2%E5%B1%B1%E6%89%8B%E7%B7%9A%EF%BC%88%E5%A4%A7%E5%B4%8E%E3%80%9C%E5%93%81%E5%B7%9D%EF%BC%89 JR山手線(大崎〜品川) 駅の緯度経度・地点一覧]<br /> | ||
+ | [https://dz.plala.jp/myradar24/index_map.html マップサンプル] | ||
− | + | [http://dz.plala.jp/wiki/index.php/IOS_13_deviceorientation デバイス認証プログラム]<br /> | |
− | [ | + | OrbitControlsを停止しデバイスモーションをカメラに連動させると気持ちいいい予感 |
− | + | ||
− | + | ||
− | + | =='''具合'''== | |
− | + | GLB Draco圧縮<br /> | |
− | + | 圧縮前 597MB÷36個=平均 16.6MB/個<br /> | |
+ | 圧縮後 117MB÷36個=平均 3.3MB/個 | ||
− | + | <model-viewer><br /> | |
+ | v1.12.0 アニメーション付きmodelの初期表示が異常 or モデル修正が必要<br /> | ||
+ | v1.10.1 正常 | ||
+ | |||
+ | モデル<br /> | ||
+ | [https://dz.plala.jp/ar/?id=candyrockstar&mode=pc unity-chan!] モーションStart/End未整理<br /> | ||
+ | [https://dz.plala.jp/ar/?id=curiosity_static&mode=pc curiosity_static] view-src, glb-src 分けないとAndroidのARで問題<br /> | ||
+ | [https://dz.plala.jp/ar/?id=le_corbusier_lc2_1r&mode=pc le_corbusier_lc2_1r] 裏面形状未作成<br /> | ||
+ | [https://dz.plala.jp/ar/?id=hayabusa2&mode=pc hayabusa2] 一部形状破損 | ||
+ | |||
+ | =='''調査'''== | ||
+ | [https://www.oculus.com/horizon-worlds/ Horizon Worlds]<br /> | ||
+ | [https://www.google.co.jp/search?q=niantic+metaverse niantic metaverse - Google 検索] | ||
+ | |||
+ | 日本各社のメタバース<br /> | ||
+ | [https://www.google.com/search?q=%E3%83%A1%E3%82%BF%E3%83%90%E3%83%BC%E3%82%B9 メタバース - Google 検索]<br /> | ||
+ | Metaのメタバース<br /> | ||
+ | [https://www.google.com/search?q=Meta+Metaverse Meta Metaverse - Google 検索]<br /> | ||
+ | NVIDIAのオムニバース<br /> | ||
+ | [https://www.google.com/search?q=NVIDIA+Omniverse NVIDIA Omniverse - Google 検索] | ||
+ | |||
+ | KhronosGroup<br /> | ||
+ | [https://github.khronos.org/glTF-Project-Explorer/ glTF Project Explorer]<br /> | ||
+ | [https://github.com/search?o=desc&p=1&q=gltf&s=stars&type=Repositories Search · gltf · GitHub] | ||
+ | |||
+ | ===名称の整理=== | ||
<pre> | <pre> | ||
− | + | Universe | |
− | + | Multiverse ● <<< | |
− | + | Metaverse 〇 Meta | |
− | + | Xenoverse | |
− | + | Omniverse 〇 NVIDIA | |
+ | </pre> | ||
+ | <pre> | ||
+ | Android | ||
+ | └ ARCore | ||
+ | └ Scene Viewer | ||
+ | └ <model-viewer> | ||
+ | └ GLB, glTF | ||
iPhone | iPhone | ||
− | └ ARKit | + | └ ARKit |
− | + | └ AR Quick Look | |
− | + | └ <model-viewer> | |
− | + | └ USDZ | |
− | + | ||
XR/WebXR | XR/WebXR | ||
− | └ AR/ | + | └ AR/WebAR |
└ VR/WebVR | └ VR/WebVR | ||
└ MR | └ MR | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | |||
===AR対応デバイス=== | ===AR対応デバイス=== | ||
[https://developers.google.com/ar/devices ARCore対応デバイス | Google Developers] | [https://developers.google.com/ar/devices ARCore対応デバイス | Google Developers] | ||
− | === | + | ===Google検索のAR=== |
[https://dz.plala.jp/wiki_data/google_ar.html Google検索 ARモデル一覧]<br /> | [https://dz.plala.jp/wiki_data/google_ar.html Google検索 ARモデル一覧]<br /> | ||
− | |||
[[ファイル:ar_qr_google.png|240px|border]] | [[ファイル:ar_qr_google.png|240px|border]] | ||
74行目: | 95行目: | ||
オーディオ付きARで動いてる<br /> | オーディオ付きARで動いてる<br /> | ||
− | + | draco_decoderで動いてる | |
− | === | + | ===ファイル要件=== |
− | + | 四角形メッシュ: three.js 非対応, glTF 非対応 | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Scene Viewer<br /> | Scene Viewer<br /> | ||
[https://developers.google.com/ar/develop/java/scene-viewer#file_requirements_for_models モデルのファイル要件 | ARCore] | [https://developers.google.com/ar/develop/java/scene-viewer#file_requirements_for_models モデルのファイル要件 | ARCore] | ||
− | {| class="wikitable" style="width: | + | {| class="wikitable" style="width:500px;" |
| style="padding-left:10px;padding-right:10px;width:220px;"| ファイル形式 | | style="padding-left:10px;padding-right:10px;width:220px;"| ファイル形式 | ||
| style="padding-left:10px;padding-right:10px;"| glTF2.0 / GLB | | style="padding-left:10px;padding-right:10px;"| glTF2.0 / GLB | ||
208行目: | 138行目: | ||
|} | |} | ||
− | + | ===認識範囲=== | |
− | + | {| class="wikitable" style="width:500px;" | |
− | + | | style="padding-left:10px;padding-right:10px;text-align:left;"| | |
− | + | | style="padding-left:10px;padding-right:10px;text-align:center;"| 床 | |
− | + | | style="padding-left:10px;padding-right:10px;text-align:center;"| 壁 | |
− | + | | style="padding-left:10px;padding-right:10px;text-align:center;"| 天井 | |
− | | style="padding-left:10px;padding-right:10px; | + | | style="padding-left:10px;padding-right:10px;text-align:center;"| 顔 |
− | | style="padding-left:10px;padding-right:10px;"| | + | | style="padding-left:10px;padding-right:10px;text-align:center;"| ARマーカー |
|- | |- | ||
− | | style="padding-left:10px;padding-right:10px;"| | + | | style="padding-left:10px;padding-right:10px;text-align:left;"| Scene Viewer |
− | | style="padding-left:10px;padding-right:10px;"| | + | | style="padding-left:10px;padding-right:10px;text-align:center;" | ● |
+ | | style="padding-left:10px;padding-right:10px;text-align:center;" | ● | ||
+ | | style="padding-left:10px;padding-right:10px;text-align:center;" | | ||
+ | | style="padding-left:10px;padding-right:10px;text-align:center;" | | ||
+ | | style="padding-left:10px;padding-right:10px;text-align:center;" | | ||
|- | |- | ||
− | | style="padding-left:10px;padding-right:10px; | + | | style="padding-left:10px;padding-right:10px;text-align:left;"| AR Quick Look |
− | + | | style="padding-left:10px;padding-right:10px;text-align:center;" | ● | |
− | + | | style="padding-left:10px;padding-right:10px;text-align:center;" | ● | |
− | + | | style="padding-left:10px;padding-right:10px;text-align:center;" | ● ※1 | |
− | | style="padding-left:10px;padding-right:10px; | + | | style="padding-left:10px;padding-right:10px;text-align:center;" | ● ※2 |
− | + | | style="padding-left:10px;padding-right:10px;text-align:center;" | ● ※3 | |
− | + | ||
− | | style="padding-left:10px;padding-right:10px; | + | |
− | + | ||
− | + | ||
− | | style="padding-left:10px;padding-right:10px; | + | |
− | + | ||
− | + | ||
− | | style="padding-left:10px;padding-right:10px; | + | |
− | + | ||
− | + | ||
− | | style="padding-left:10px;padding-right:10px; | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|} | |} | ||
− | + | [https://modelviewer.dev/docs/#entrydocs-augmentedreality-attributes-arPlacement <model-viewer> Examples and Documentation]<br /> | |
− | + | ※1 [https://www.raywenderlich.com/books/apple-augmented-reality-by-tutorials/v1.0.ea3/chapters/2-ar-quick-look#toc-chapter-005-anchor-002 Apple Augmented Reality by Tutorials, Chapter 2: AR Quick Look]<br /> | |
− | + | [https://user-images.githubusercontent.com/90825510/139180662-1fa56316-436a-452f-94bc-419a7e825c50.mp4 動画]<br /> | |
+ | ※2 https://twitter.com/cwervo/status/1283073772304633858<br /> | ||
+ | ※3 [https://github.com/google/model-viewer/issues/1516 AR Marker : Feature · Issue #1516 · google/model-viewer · GitHub] | ||
+ | |||
+ | ===<span id="threejs_quicklook_sceneviewer">Size.link</span>=== | ||
+ | https://size.link/<br /> | ||
+ | https://shopify.engineering/how-we-built-size-link | ||
<!-- | <!-- | ||
− | ==== | + | 勉強: https://dz.plala.jp/ar_box/ |
− | + | ||
+ | 動作テスト<br /> | ||
+ | [https://discourse.threejs.org/t/gltfexporter-exporting-model-that-show-nothing-at-android-scene-viewer/15519 GLTFExporter exporting model that show nothing at android Scene Viewer - Questions - three.js forum]<br /> | ||
+ | [https://github.com/google/model-viewer/issues/887 Exported Model not working in AR mode · Issue #887 · google/model-viewer · GitHub] | ||
+ | <pre> | ||
+ | const options:GLTFExporterOptions = { | ||
+ | binary:true 、 | ||
+ | forcePowerOfTwoTextures:true 、 | ||
+ | forceIndices:true | ||
+ | } ; | ||
+ | </pre> | ||
+ | |||
+ | Piping Server<br /> | ||
+ | [https://github.com/nwtgck/piping-server GitHub - nwtgck/piping-server]<br /> | ||
+ | [https://qiita.com/nwtgck/items/78309fc529da7776cba0 ネットワーク越しでパイプしたり、あらゆるデバイス間でデータ転送したい! - Qiita] | ||
+ | <nowiki>https://ppng.io/ (ランダム文字列) /box.gltf</nowiki> | ||
+ | |||
+ | intent:<br /> | ||
+ | [https://github.com/google/model-viewer/issues/1095#issuecomment-643442844 Scene ViewerがCloudfrontの事前署名付きURLを読み込まない · google/model-viewer · GitHub]<br /> | ||
+ | [https://developers.google.com/ar/develop/java/scene-viewer#supported_intent_parameters サポートされているintentパラメータ | ARCore] | ||
+ | <pre> | ||
+ | https://size.link/box.gltf?w=1&h=2&l=3&units=cm | ||
+ | https://size.link/1/2/3/cm/box.gltf</pre> | ||
+ | |||
+ | <pre> | ||
+ | intent://arvr.google.com/scene-viewer/1.0?file=https://size.link/1/2/3/cm/box.gltf&resizable=false&title=1cm x 2cm x 3cm#Intent;scheme=https;package=com.google.ar.core;action=android.intent.action.VIEW;S.browser_fallback_url=https://size.link/#unsupported-device;end</pre> | ||
--> | --> | ||
− | + | ===Candy Rock Star 変換=== | |
− | [https:// | + | ユニティちゃん<br /> |
− | + | [https://unity-chan.com/download/releaseNote.php?id=CandyRockStar Candy Rock Star - UNITY-CHAN! OFFICIAL WEBSITE] | |
− | + | ||
− | + | 1. Unity 2020.3.12f1<br /> | |
− | < | + | Project: Scenes > Character Setup ダブルクリック<br /> |
− | + | Hierarchy: CandyRockStar > Inspector: Animator Apply Root Motion: OFF<br /> | |
+ | Hierarchy: LipSyncController > CandyRockStarの下層に配置 <span style="color:red">※胸が変形するがキーは取れる</span><br /> | ||
+ | Package Manager Install: FBX Exporter<br /> | ||
+ | Package Manager Install: Unity Recorder<br /> | ||
+ | Window > General > Recorder > Recorder Window<br /> | ||
+ | 2. Recorder<br /> | ||
+ | Add Recorder: FBX<br /> | ||
+ | Recording Mode: Frame Interval<br /> | ||
+ | Start:1 End:7221<br /> | ||
+ | GameObject: CandyRockStar<br /> | ||
+ | 2. 3dxmax<br /> | ||
+ | MTH_DEF (口) AIUEO取れてる スケール変 0-100で再スケール<br /> | ||
+ | BLW_DEF (眉毛), EL_DEF (まつげ), EYE_DEF (目) キー無い 手付け設定 <span style="color:red">※<model-viewer>で異常</span><br /> | ||
+ | Babylon.js exporters | ||
− | + | 是非ちゃん<br /> | |
− | [https:// | + | [https://unity-chan.com/download/releaseNote.php?id=ssu_hdrp Sunny Side Up - UNITY-CHAN! OFFICIAL WEBSITE] |
− | + | ||
− | + | MTH-AIUEO加えると目が<model-viewer>で異常 | |
− | + | ||
− | + | ||
− | + | VRoid<br /> | |
− | [https:// | + | [https://hub.vroid.com/ VRoid Hub] |
− | + | ||
− | + | ||
− | + | 1. Unity 2020.3.12f1<br /> | |
− | [https:// | + | UniVRM v0.98.0 vrm取り込み<br /> |
− | [https:// | + | 最低限設定 [https://qiita.com/VirtualDollRio/items/ccd8026617a772d1ee9d VRMモデルでCandy Rock Star踊ってみた - Qiita]<br /> |
+ | Spply Root Motion > OFF (常に中央配置)<br /> | ||
+ | Scene > Character Setup にVRMモデル配置<br /> | ||
+ | Main CameraとVRMモデル以外非表示<br /> | ||
+ | Unity RecorderでFBX書き出し | ||
+ | |||
+ | 2. 3dsmax<br /> | ||
+ | 不要なライト、カメラ、ダミーを削除<br /> | ||
+ | モーション作成<br /> | ||
+ | FBX書き出し<br /> | ||
+ | |||
+ | 3. Unity 2019.4.11f1<br /> | ||
+ | Unity 2020.3.12f1 からTexturesをコピー<br /> | ||
+ | LegacyでFBX取り込み<br /> | ||
+ | 180度回転<br /> | ||
+ | Plattar/gltf-exporter v1.93.0 glTF書き出し <span style="color:red">※モーフ未対応</span><br /> | ||
+ | GLB Packer | ||
+ | |||
+ | 4. Gestaltor Pro<br /> | ||
+ | unlit参考 [https://github.com/google/model-viewer/blob/master/packages/shared-assets/models/Astronaut-Unlit.glb model-viewer/Astronaut-Unlit.glb at master · google/model-viewer · GitHub]<br /> | ||
+ | 全て Double Sides, Alpha Node: Mask<br /> | ||
+ | 全て Normalなので不要な物外す<br /> | ||
+ | 全て Unlit<br /> | ||
+ | 全て Convert Primitives to Meshes<br /> | ||
+ | 全て Draco圧縮<br /> | ||
+ | 全て Normal画像 > jpg変換<br /> | ||
+ | Automation > Cleanup by Type > Nodes<br /> | ||
+ | Automation > Cleanup by Type > Texture Coordinate Attributes<br /> | ||
+ | Automation > Optomaize All > Animations<br /> | ||
+ | ※極端に軽量化するが処理内容は未確認 42MB > 18MB<br /> | ||
+ | [https://modelviewer.dev/editor/ Google Model Editor]通すとValidation Error消える<br /> | ||
+ | 5. <model-viewer><br /> | ||
+ | envmap 単色白 | ||
+ | |||
+ | ===その他=== | ||
+ | VRM Humanoid FBX Export<br /> | ||
+ | https://twitter.com/hinzka/status/1505456861880881154<br /> | ||
+ | |||
+ | Javascript Motion Detect<br /> | ||
+ | https://gigazine.net/news/20211112-kalidokit/<br /> | ||
+ | https://www.moguravr.com/kalidoface-3d-2/<br /> | ||
+ | https://blog.tensorflow.org/2022/01/body-segmentation.html | ||
フォトグラメトリ<br /> | フォトグラメトリ<br /> | ||
290行目: | 284行目: | ||
[https://github.com/alicevision/meshroom GitHub - alicevision/meshroom] | [https://github.com/alicevision/meshroom GitHub - alicevision/meshroom] | ||
− | ==''' | + | =='''環境'''== |
− | {| class="wikitable" style="width: | + | {| class="wikitable" style="width:500px;" |
| style="padding-left:10px;padding-right:10px;"| オーサリング | | style="padding-left:10px;padding-right:10px;"| オーサリング | ||
− | | style="padding-left:10px;padding-right:10px;" | Unity, | + | | style="padding-left:10px;padding-right:10px;" | Unity, Gestaltor Pro |
|- | |- | ||
| style="padding-left:10px;padding-right:10px;"| DCCツール | | style="padding-left:10px;padding-right:10px;"| DCCツール | ||
− | | style="padding-left:10px;padding-right:10px;" | 3dsMax, Substance | + | | style="padding-left:10px;padding-right:10px;" | 3dsMax, V-Ray, Substance Painter, HDR Light Studio |
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
| style="padding-left:10px;padding-right:10px;"| サーバ | | style="padding-left:10px;padding-right:10px;"| サーバ | ||
305行目: | 296行目: | ||
|} | |} | ||
− | + | ===Unity=== | |
− | [https://github.com/ | + | glTFast<br /> |
+ | [https://github.com/atteneder/glTFast GitHub - atteneder/glTFast]<br /> | ||
+ | JPGがPNGに変換されてる?<br /> | ||
+ | 都合悪い | ||
− | + | glTF Importer/Exporter<br /> | |
− | [https://github.com/ | + | [https://github.com/Plattar/gltf-exporter GitHub - Plattar/gltf-exporter]<br /> |
+ | Unity2019.4.11f1<br /> | ||
+ | JPG可 | ||
− | + | USDZ Exporter<br /> | |
[https://github.com/Unity-Technologies/usd-unity-sdk GitHub - Unity-Technologies/usd-unity-sdk]<br /> | [https://github.com/Unity-Technologies/usd-unity-sdk GitHub - Unity-Technologies/usd-unity-sdk]<br /> | ||
− | + | [https://nakamura001.hatenablog.com/entry/2021/09/30/_Unity_%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6_iPhone_%E5%90%91%E3%81%91%E3%81%AE_AR_%E3%82%B3%E3%83%B3%E3%83%86%E3%83%B3%E3%83%84%E3%82%92%E7%B0%A1%E5%8D%98%E3%81%AB%E4%BD%9C%E3%82%8B%E6%96%B9 Unity を使って iPhone 向けの AR コンテンツを... - 強火で進め]<br /> | |
− | [https://nakamura001.hatenablog.com/entry/2021/09/30/_Unity_%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6_iPhone_%E5%90%91%E3%81%91%E3%81%AE_AR_%E3%82%B3%E3%83%B3%E3%83%86%E3%83%B3%E3%83%84%E3%82%92%E7%B0%A1%E5%8D%98%E3%81%AB%E4%BD%9C%E3%82%8B%E6%96%B9 Unity を使って iPhone 向けの AR | + | Unity2019.4以上 |
− | + | ===Gestaltor Pro=== | |
− | https:// | + | [https://gestaltor.io/releases/ Releases – Gestaltor]<br /> |
+ | 2022.2.0<br /> | ||
+ | GLB Draco圧縮 安定<br /> | ||
+ | USDZ Export 不安定<br /> | ||
+ | [[ファイル:gestaltor_aces.png|400px|border]] | ||
− | + | ===Substance Painter=== | |
− | [https:// | + | [https://github.com/google/model-viewer/discussions/2994#discussioncomment-2237129 shader settings and color profiles · google/model-viewer · GitHub] |
− | + | ===3dsMax=== | |
− | === | + | Babylon.js exporters<br /> |
− | [https://github.com/ | + | [https://github.com/BabylonJS/Exporters GitHub - BabylonJS/Exporters]<br /> |
+ | V-Ray AO Bake 参考<br /> | ||
+ | [http://www.laurenscorijn.com/articles/ambient-occlusion-baking Ambient Occlusion Baking – Laurens Corijn] | ||
− | + | ===Docker=== | |
− | + | GLB > USDZ 変換向け<br /> | |
+ | [https://github.com/leon/docker-gltf-to-udsz GitHub - google/usd_from_gltf - docker]<br /> | ||
+ | 補足: [https://github.com/google/usd_from_gltf GitHub - google/usd_from_gltf]<br /> | ||
+ | 補足: [https://help.sketchfab.com/hc/en-us/articles/360046421631-glTF-and-USDZ glTF and USDZ – Sketchfab Help Center] | ||
− | + | Draco圧縮<br /> | |
− | < | + | [https://opensource.googleblog.com/2019/11/google-and-pixar-add-draco-compression.html Google and Pixar add Draco Compression.... | Google Open Source Blog]<br /> |
− | + | USDZは非圧縮ZIP<br /> | |
− | + | 2022/03/31 待ち | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
− | + | ===ブラウザ=== | |
− | < | + | Viewer/Editor<br /> |
− | + | [https://modelviewer.dev/editor/ Google Model Editor]<br /> | |
− | + | [https://gltf-viewer.donmccurdy.com/ Don McCurdy glTF Viewer]<br /> | |
− | + | [https://github.khronos.org/glTF-Sample-Viewer-Release/ KhronosGroup glTF 2.0 Sample Viewer]<br /> | |
− | + | [https://playcanvas.com/model-viewer PlayCanvas glTF Viewer] | |
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
− | + | GLB Packer<br /> | |
− | [https://github.com/ | + | [https://github.com/sbtron/makeglb GitHub - sbtron/makeglb] |
− | + | Twitterカード<br /> | |
− | + | [https://modelviewer.dev/examples/twitter/generator.html Google 3D Twitter card] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [https:// | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | =='''source'''== | |
− | [https:// | + | [https://github.com/google/model-viewer GitHub - google/model-viewer] |
− | |||
[https://dz.plala.jp/ar/index.html index.html] | [https://dz.plala.jp/ar/index.html index.html] | ||
+ | [https://dz.plala.jp/ar/index.php.txt index.php.txt] | ||
[https://dz.plala.jp/ar/script.js script.js] | [https://dz.plala.jp/ar/script.js script.js] | ||
[https://dz.plala.jp/ar/style.css style.css] | [https://dz.plala.jp/ar/style.css style.css] | ||
[https://dz.plala.jp/ar/data.json data.json] | [https://dz.plala.jp/ar/data.json data.json] | ||
+ | [https://dz.plala.jp/ar/banner.html banner.html] | ||
+ | CandyRockStar | ||
+ | https://dz.plala.jp/wiki_data/CandyRockStar.zip | ||
+ | https://dz.plala.jp/wiki_data/CandyRockStarZehi.zip | ||
+ | https://dz.plala.jp/wiki_data/CandyRockStar_VRM_B.zip | ||
+ | https://dz.plala.jp/wiki_data/CandyRockStar_DEF.mp4 | ||
[[ファイル:WebXR_PWA.png|240px]] | [[ファイル:WebXR_PWA.png|240px]] | ||
=='''更新履歴'''== | =='''更新履歴'''== | ||
+ | * 2022.03.31 全体見直し | ||
* 2022.01.06 全体見直し | * 2022.01.06 全体見直し | ||
* 2021.09.11 Google検索 ARモデル 追加 | * 2021.09.11 Google検索 ARモデル 追加 |
2022年6月24日 (金) 05:35時点における最新版
GLBとUSDZを作り<model-viewer>で表示してみます。
メモ
メタバース標準化フォーラム
Metaverse Standards Forum
アプリレスポケモンGO出来そう
geolocation認証
2つの座標間の距離を求める - Qiita
緯度経度から2地点間の距離 (km) を計算する JavaScript - Qiita
山手線全駅30ヶ所に出現アンカーどうだろう?
JR山手線(大崎〜品川) 駅の緯度経度・地点一覧
マップサンプル
デバイス認証プログラム
OrbitControlsを停止しデバイスモーションをカメラに連動させると気持ちいいい予感
具合
GLB Draco圧縮
圧縮前 597MB÷36個=平均 16.6MB/個
圧縮後 117MB÷36個=平均 3.3MB/個
<model-viewer>
v1.12.0 アニメーション付きmodelの初期表示が異常 or モデル修正が必要
v1.10.1 正常
モデル
unity-chan! モーションStart/End未整理
curiosity_static view-src, glb-src 分けないとAndroidのARで問題
le_corbusier_lc2_1r 裏面形状未作成
hayabusa2 一部形状破損
調査
Horizon Worlds
niantic metaverse - Google 検索
日本各社のメタバース
メタバース - Google 検索
Metaのメタバース
Meta Metaverse - Google 検索
NVIDIAのオムニバース
NVIDIA Omniverse - Google 検索
KhronosGroup
glTF Project Explorer
Search · gltf · GitHub
名称の整理
Universe Multiverse ● <<< Metaverse 〇 Meta Xenoverse Omniverse 〇 NVIDIA
Android └ ARCore └ Scene Viewer └ <model-viewer> └ GLB, glTF iPhone └ ARKit └ AR Quick Look └ <model-viewer> └ USDZ XR/WebXR └ AR/WebAR └ VR/WebVR └ MR
AR対応デバイス
ARCore対応デバイス | Google Developers
Google検索のAR
iPhone
1. Google アプリ インストール
2. 検索窓のカメラアイコンをクリック
3. 上記QRコードを読み取り、ウェブサイトを開く
4. お気に入りに登録
オーディオ付きARで動いてる
draco_decoderで動いてる
ファイル要件
四角形メッシュ: three.js 非対応, glTF 非対応
Scene Viewer
モデルのファイル要件 | ARCore
ファイル形式 | glTF2.0 / GLB |
マテリアル | PBR |
テクスチャ | 最大2048×2048 |
ポリゴン数 | 30,000~50,000 最大100,000 |
アニメーション | 対応 |
マテリアル数 | 10 (アルファ付きは2枚まで) |
マテリアル当たりのメッシュ数 | 1 |
ボーン数 | 最大254 |
頂点当たりのウェイト数 | 最大4 |
メッシュ当たりUV数 | 1 |
モデルサイズ | 10MB |
認識範囲
床 | 壁 | 天井 | 顔 | ARマーカー | |
Scene Viewer | ● | ● | |||
AR Quick Look | ● | ● | ● ※1 | ● ※2 | ● ※3 |
<model-viewer> Examples and Documentation
※1 Apple Augmented Reality by Tutorials, Chapter 2: AR Quick Look
動画
※2 https://twitter.com/cwervo/status/1283073772304633858
※3 AR Marker : Feature · Issue #1516 · google/model-viewer · GitHub
Size.link
https://size.link/
https://shopify.engineering/how-we-built-size-link
Candy Rock Star 変換
ユニティちゃん
Candy Rock Star - UNITY-CHAN! OFFICIAL WEBSITE
1. Unity 2020.3.12f1
Project: Scenes > Character Setup ダブルクリック
Hierarchy: CandyRockStar > Inspector: Animator Apply Root Motion: OFF
Hierarchy: LipSyncController > CandyRockStarの下層に配置 ※胸が変形するがキーは取れる
Package Manager Install: FBX Exporter
Package Manager Install: Unity Recorder
Window > General > Recorder > Recorder Window
2. Recorder
Add Recorder: FBX
Recording Mode: Frame Interval
Start:1 End:7221
GameObject: CandyRockStar
2. 3dxmax
MTH_DEF (口) AIUEO取れてる スケール変 0-100で再スケール
BLW_DEF (眉毛), EL_DEF (まつげ), EYE_DEF (目) キー無い 手付け設定 ※<model-viewer>で異常
Babylon.js exporters
是非ちゃん
Sunny Side Up - UNITY-CHAN! OFFICIAL WEBSITE
MTH-AIUEO加えると目が<model-viewer>で異常
VRoid
VRoid Hub
1. Unity 2020.3.12f1
UniVRM v0.98.0 vrm取り込み
最低限設定 VRMモデルでCandy Rock Star踊ってみた - Qiita
Spply Root Motion > OFF (常に中央配置)
Scene > Character Setup にVRMモデル配置
Main CameraとVRMモデル以外非表示
Unity RecorderでFBX書き出し
2. 3dsmax
不要なライト、カメラ、ダミーを削除
モーション作成
FBX書き出し
3. Unity 2019.4.11f1
Unity 2020.3.12f1 からTexturesをコピー
LegacyでFBX取り込み
180度回転
Plattar/gltf-exporter v1.93.0 glTF書き出し ※モーフ未対応
GLB Packer
4. Gestaltor Pro
unlit参考 model-viewer/Astronaut-Unlit.glb at master · google/model-viewer · GitHub
全て Double Sides, Alpha Node: Mask
全て Normalなので不要な物外す
全て Unlit
全て Convert Primitives to Meshes
全て Draco圧縮
全て Normal画像 > jpg変換
Automation > Cleanup by Type > Nodes
Automation > Cleanup by Type > Texture Coordinate Attributes
Automation > Optomaize All > Animations
※極端に軽量化するが処理内容は未確認 42MB > 18MB
Google Model Editor通すとValidation Error消える
5. <model-viewer>
envmap 単色白
その他
VRM Humanoid FBX Export
https://twitter.com/hinzka/status/1505456861880881154
Javascript Motion Detect
https://gigazine.net/news/20211112-kalidokit/
https://www.moguravr.com/kalidoface-3d-2/
https://blog.tensorflow.org/2022/01/body-segmentation.html
フォトグラメトリ
LiDAR - Twitter検索
LiDAR - Sketchfab
デザイン向けの3Dフォトグラメトリソフトウェア | Unity
RealityCapture: Mapping and 3D Modeling Photogrammetry Software - CapturingReality.com
3DF Zephyr - photogrammetry software - 3d models from photos
Steam:3DF Zephyr Lite Steam Edition
Agisoft Metashape
GitHub - alicevision/meshroom
環境
オーサリング | Unity, Gestaltor Pro |
DCCツール | 3dsMax, V-Ray, Substance Painter, HDR Light Studio |
サーバ | Piping Server (検討) |
Unity
glTFast
GitHub - atteneder/glTFast
JPGがPNGに変換されてる?
都合悪い
glTF Importer/Exporter
GitHub - Plattar/gltf-exporter
Unity2019.4.11f1
JPG可
USDZ Exporter
GitHub - Unity-Technologies/usd-unity-sdk
Unity を使って iPhone 向けの AR コンテンツを... - 強火で進め
Unity2019.4以上
Gestaltor Pro
Releases – Gestaltor
2022.2.0
GLB Draco圧縮 安定
USDZ Export 不安定
Substance Painter
shader settings and color profiles · google/model-viewer · GitHub
3dsMax
Babylon.js exporters
GitHub - BabylonJS/Exporters
V-Ray AO Bake 参考
Ambient Occlusion Baking – Laurens Corijn
Docker
GLB > USDZ 変換向け
GitHub - google/usd_from_gltf - docker
補足: GitHub - google/usd_from_gltf
補足: glTF and USDZ – Sketchfab Help Center
Draco圧縮
Google and Pixar add Draco Compression.... | Google Open Source Blog
USDZは非圧縮ZIP
2022/03/31 待ち
ブラウザ
Viewer/Editor
Google Model Editor
Don McCurdy glTF Viewer
KhronosGroup glTF 2.0 Sample Viewer
PlayCanvas glTF Viewer
GLB Packer
GitHub - sbtron/makeglb
Twitterカード
Google 3D Twitter card
source
index.html index.php.txt script.js style.css data.json banner.html
CandyRockStar
https://dz.plala.jp/wiki_data/CandyRockStar.zip https://dz.plala.jp/wiki_data/CandyRockStarZehi.zip https://dz.plala.jp/wiki_data/CandyRockStar_VRM_B.zip https://dz.plala.jp/wiki_data/CandyRockStar_DEF.mp4
更新履歴
- 2022.03.31 全体見直し
- 2022.01.06 全体見直し
- 2021.09.11 Google検索 ARモデル 追加
- 2020.05.13 ソース書き換え
- 2020.05.10 アニメーション付きUSDZ追加
- 2019.10.25 公開