1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Luma AIで生成した3DモデルをBlender→Unityへインポートするまでの手順

Last updated at Posted at 2023-12-03

はじめに

Luma AIを使って生成した3Dモデルを
Blenderで加工して、Unityへインポートするまでの手順です。
なおBlenderもUnityもチュートリアルを触ったくらいの知識なので、不要な手順があるかもしれません。。

Luma AIからBlenderへ

1.Luma AIにて生成された3Dモデルをobjの形式でファイル出力
image.png

2.Blenderを起動して初期オブジェクトを消しておく
image.png

3.ファイルタブのインポートから、objをクリックして、Luma AIから出力したファイルを選択
image.png
image.png

4.インポートが完了したら、モードをスカルプトモードへ変更する
image.png

5.左のツールからボックストリムを選択。
image.png

6.インポートしたオブジェクトの不要な部分をドラッグで切り取る

この時、範囲選択した場所に色のついた箱が作成された場合は削除する

image.png

7.不要な部分の削除が完了したら、ファイルタブのエクスポートからobjクリックする
image.png

8.パスモードをコピーに変更してエクスポートする(テクスチャをエクスポートするため)
image.png

BlenderからUnityへ

1.Unityを起動して、3Dモデルを追加したいプロジェクトを開く
image.png

2.Blenderでエクスポートした objファイル、mtlファイル、pngファイルをすべて
ドラッグアンドドロップで、UnityのAssetsへ追加する
image.png

image.png

追加したオブジェクトを選択して表示されるInspectorでGenerate Collidersにチェックを入れておくと衝突判定が生まれる

image.png

3.Unityへのインポート完成
image.png

そのままの設定ではオブジェクトにRigitdbodyを設定しても地面をすり抜けてしまうため、追加したオブジェクト(default)を選択して、コンポーネントのMesh ColliderのCovexプロパティにチェックを入れる。

image.png
image.png
image.png

参考記事

Blenderのインポート手順はすでに実施されている方の記事を参考にさせていただきました。
https://qiita.com/Kenty1003/items/59c9305f70bd998dc75d

1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?