VRM4U icon indicating copy to clipboard operation
VRM4U copied to clipboard

MacのUE5でインポート時のテクスチャ

Open nornak opened this issue 2 years ago • 9 comments

概要 A clear and concise description of what the bug is. MacのUE5でインポートを行なった場合、テクスチャが崩れるようです。 UE4.27.2では動作しています。

Screenshots, log UE5で読み込んだもの ue5

UE4.27で読み込んだもの ue4 27

UnrealEngine Version: [UE5]

Additional context OS:macOS 12.3.1 (21E258) 機種: iMac(24 inch M1 2021) ビルドを行ったXcodeのバージョンは13.3.1 VRMファイルはVRoid Studio 1.6.0で出力しています。 テクスチャのmerge optionはon/offに関わらず再現しています。

nornak avatar Apr 19 '22 16:04 nornak

報告ありがとうございます。

手元のIntelMacでは再現せず、全く手がかりがない状態です… ざっくり、エディタ上でテクスチャを開いた様子や、マテリアルを開いた様子&パラメータをスクショでいただけないでしょうか?

ruyo avatar Apr 19 '22 16:04 ruyo

こちらで良かったでしょうか

マテリアルインスタンス スクリーンショット 2022-04-20 9 26 53

テクスチャ スクリーンショット 2022-04-20 9 28 42

UEの5.01が来ていたのでこちらで試してみましたが結果は変わりませんでした。

nornak avatar Apr 20 '22 00:04 nornak

ありがとうございます。この情報でOKです。

テクスチャやパラメータは正常に読めているようです。 見た目的には、マテリアル内でUVが入れ替わっている… ような挙動に見えます。

根本的な解決は難しそうな気配がします。 試しにですが、M_VrmMToonBaseOpaque に以下のノードを追加して直るか 確認頂いてもよいでしょうか?

image

ruyo avatar Apr 20 '22 15:04 ruyo

スクリーンショット 2022-04-22 0 15 14

教えていただいたノードを追加するとテクスチャは正常になりました。

nornak avatar Apr 21 '22 15:04 nornak

ありがとうございます。

直接の原因は不明ですが、試しに修正してみました。 お時間ある時に最新をお試しください。 もしこれでダメそうなら、お手数で申し訳ないですが 前述のノードを追加してご利用ください…

UVRotate機能の組み方を、カスタムノードから UEのノードを利用したものに変更しました。

ruyo avatar Apr 21 '22 18:04 ruyo

最新のもので試したところ正しく読み込めました。 ご対応ありがとうございました

nornak avatar Apr 22 '22 16:04 nornak

こちらこそ 報告&テストありがとうございました。

ruyo avatar Apr 24 '22 10:04 ruyo

Hey @nornak i am using UE5.2 and i am also trying to import VRM4U on My M1 Mac mini. i am able to build libassimb.a using terminal cmake but my unreal is crashing whenever i try importing vrm model file. can you please share the steps how you build your m1 mac compatible thirdparty files. and if you share your compiled files then i can try them also.

MrD005 avatar Aug 01 '23 13:08 MrD005

Hi @MrD005 I build for intel chip not for Apple Silicon, so I don't know if this will help

  1. change terminal type to x86_64 in terminal, type arch -x86_64 /bin/zsh to change mode

  2. build assimp i used this option

cmake -DCMAKE_OSX_ARCHITECTURES="x86_64" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.15" -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
cmake --build . --clean-first

I think CMAKE_OSX_DEPLOYMENT_TARGET version is different now

  1. copy assimp.a to VRM4U library file is at assimp/lib/libassimp.a. Copy this file to VRM4U/ThirdParty/assimp/lib/Mac

I try this over a year ago, so some things may be different

nornak avatar Aug 02 '23 15:08 nornak