LoginSignup
2
1

More than 1 year has passed since last update.

3DスキャンしたデータをUnityでみーる

Last updated at Posted at 2022-12-01

はじめに

3D Scanner AppでスキャンしたデータをUnityで見てみましょう

開発環境

  • Windows 10 PC
  • Unity 2019.4.1f1
  • iPad Pro もしくは iPhone 12 Pro
  • 3D Scanner App (スキャンアプリ)

スキャンしたデータをUnityで見る

1.LOW RESでスキャンし、All Dataでエクスポートする

1 LOW RES 2 All Data 3 このiPhone内 4 Save to Files
129478441_296394731721157_1823947785055561488_n.jpg 129097609_3116913878409944_6030272060197824665_n.jpg 129280361_393602245216674_1946086510496454770_n.jpg 129443777_1009610712868404_2148449614996122316_n.jpg

2.エクスポートしたモデルはUSBで接続してPCへ取り込む

iTunesを開く
image.png

3D Scanner Appから対象のデータをクリックし、保存する
image.png

3.エクスポートしたデータのファイル構成は下記

textured_output.jpg 3Dモデルのテクスチャ
textured_output.obj テクスチャ付き3Dモデル
textured_output.mtl 3Dモデルのマテリアル
info.json バージョンや頂点数など
export.obj テクスチャなし3Dモデル
frame_xxxxx.json カメラ情報など
frame_xxxxx.jpg カラー画像
depth_xxxxx.png 深度画像
thumb_00000.jpg サムネイル画像

4.Unityでプロジェクトを作成する

5.textured_output.objおよびtextured_output.jpgをProjectビューのAssets以下にD&Dする(名前を2f1とした)

image.png

6.Assets->2f1(3Dモデル)をHierarchyビューにD&Dする。2f1->defaultのInspectorビューを開き、Assets->2f1(テクスチャ)をAdd Componentの付近にD&Dすると色が付く。

image.png

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1