LoginSignup
0
0

More than 5 years have passed since last update.

【usdz_converter】複数map画像のobjをusdzへ変換する方法

Last updated at Posted at 2018-12-04

私的メモ

# Blender MTL File: 'ボーン入れ.blend'
# Material Count: 4

newmtl Material.001
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.081978 0.081978 0.081978
Ks 0.000000 0.000000 0.000000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1

newmtl body
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.000000 0.000000 0.000000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd body3.png

newmtl body_white
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 1.000000 1.000000 1.000000
Ks 0.000000 0.000000 0.000000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1

newmtl UV
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.000000 0.000000 0.000000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 1
map_Kd UV_01.png

mtlが読まれない&こんな感じで複数map画像が使われている場合、-color_mapを並べても上手くusdz_converterが変換してくれない。

解決法

-gでMaterialNameへ移動してから画像の-color_mapを指定してあげる。

xcrun usdz_converter obj.obj obj.usdz -g UV -color_map UV_01.png -g body -color_map body3.png

画像じゃない部分は真っ白になり、現状対処出来ないのでオブジェクト全部画像で出力するように

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