★お知らせ(2023/12/27)
いつもLive2D公式コミュニティをご利用いただき誠にありがとうございます。
本コミュニティは2023年12月27日 11:00をもって閉鎖いたしました。
今後の運営はすべて新Live2D公式クリエイターズフォーラムに移行します。
閉鎖に伴い、以下機能は利用不可となります。
・アカウントの新規作成
・トピック投稿、返信
たくさんのご利用誠にありがとうございました。

新Live2D公式クリエイターズフォーラムは以下バナーよりご利用いただけます。
Live2D公式クリエイターズフォーラム

なお、本コミュニティに投稿されたトピックはすべて残りますが、今後削除する可能性がございますので予めご了承ください。
閉鎖に関するお問い合わせにつきましてはLive2D公式クリエイターズフォーラムへご連絡ください。

Model has black edges when loading via script



I refered to the following script
http://docs.live2d.com/cubism-sdk-tutorials/initializemodel/

but when I drag the model prefab to scene, it shows correctly.
How to solve this issue? Thanks

コメント

  • Hi,

    Depending on the condition of calculation of alpha blend of texture set by Unity, this trouble happens. I'd like you to click "Apply" button with "Alpha Is Transparency" checked in Inspector window after selecting texture.

    Thanks,

  • Hi,

    Depending on the condition of calculation of alpha blend of texture set by Unity, this trouble happens. I'd like you to click "Apply" button with "Alpha Is Transparency" checked in Inspector window after selecting texture.

    Thanks,


    Thank you for your answer, but I want to load image with Texture.LoadImage() function, and I tried to set texture.alphaIsTransparency to true but not work. Is there any way to approach to it? Thanks.
  • Hi, I have the same problem described in this thread.
    What I found is that the BuiltinLoadAssetAtPath function actually is creating a new Texture2D instead of using the texture already imported to the project.
    I changed the code when the assetType is Texture2D to using Resources.Load and put the imported texture under a Resources folder. I wonder if this solution may cause any problems. While, even using texture.LoadImage, you need to make sure the texture is within build so putting the texture under a Resources folder seems necessary.
    Another way I can think is directly load the prefab instead of using the ToModel() things.
    Can you explain the pros and cons of directly loading the prefab and using the ToModel() things (as described in the SDK manual)
    Thank you.
コメントするにはサインインまたは登録して下さい。