Search Unity

[SOLVED] Exported FBX from blender becomes transparent in Unity

Discussion in 'Asset Importing & Exporting' started by szahuyt, Apr 22, 2019.

  1. szahuyt

    szahuyt

    Joined:
    Mar 24, 2019
    Posts:
    22
    Hey guys! So I got riged and animated model in blender, wanted to export it as fbx to unity, and so I did, but object in Unity appears to be transparent. I tried flipping normals in blender but it didnt work. Any suggestions how to fix it?
     
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    2,445
    In Blender, ensure you're including the meshes when you export to FBX.

    In the Unity project tab, find the FBX file "Prefab", and click the little > expander. There you should be able to see one or more meshes, an armature, and an avatar.

    Copy over any texture image files necessary from your Blender working folders into your Unity Assets folders.

    If you click the main FBX file "Prefab" itself, you can adjust many features of how Unity is importing the mesh. One section is Materials, and you can extract the materials from the FBX or make your own.

    Show us a screenshot of your Blender export options, and your Unity import options, and the > expanded FBX file "Prefab" which Unity loaded.
     
  3. szahuyt

    szahuyt

    Joined:
    Mar 24, 2019
    Posts:
    22
    SO i just select model and rig, then exprot selected objects and thats what i get in unity screenshot_20190422_135236.png screenshot_20190422_135320.png screenshot_20190422_135451.png
     
  4. szahuyt

    szahuyt

    Joined:
    Mar 24, 2019
    Posts:
    22
    And when I export simple cube from the same blender project it all works fine
     
  5. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,639
    Looks like it has a transparent material. If that's so, you can just change the material properties in Unity.
     
  6. szahuyt

    szahuyt

    Joined:
    Mar 24, 2019
    Posts:
    22
    So chnaging material actually helped but that means i cant export object with material implemented
     
  7. szahuyt

    szahuyt

    Joined:
    Mar 24, 2019
    Posts:
    22
    So it actually says ''transparent" there but i cannot edit this settings. Is tehre any way i cant get to those settings and just change that parameter?

    screenshot_20190422_173211.png
     
  8. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,639
    Go to the model's import settings and under the materials tab there should be a button that says "Extract materials" button. That will bring the models materials into the Unity editor and allow you to modify them.

    Alternately, you can also opt to not import materials. In that case, you can create a material from scratch and assign it to the model.
     
    ThorJiraya likes this.
  9. szahuyt

    szahuyt

    Joined:
    Mar 24, 2019
    Posts:
    22
    Okay, Thansk for help!
     
  10. zilkin1

    zilkin1

    Joined:
    Jan 6, 2020
    Posts:
    3
    There is another similar problem I had. I was joining body parts on my 3d model in Blender and when I was scaling the head part (or the body part perhaps) I accidentaly went into negative scale which inverted all the faces and vertices on one of the models. After I exported the model, I had body mesh facing one way and the face mesh vertices facing the other which made my model in Unity and mixamo look like part of it was transparent. I went back into blender and rescaled the head to invert it again and exported it and now it works.
     
    BuzzyRoboYT likes this.
  11. AlejandroDagobah

    AlejandroDagobah

    Joined:
    Jun 6, 2019
    Posts:
    5
    Hi zilkin1 i have the same problem but my material isn't transparent and i can access it, i read your solution but i didn't understand it well, can you explain me how to scale it? and what negative scale means? thanks
    upload_2021-5-7_21-11-24.png
    this is how my character looks in unity
     
    BuzzyRoboYT likes this.
  12. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,639
    Your model looks inside-out. I think you simply need to flip all of the face normals in Blender or whatever 3D modelling app you're using. In Blender you would go into edit mode, select all of the faces and then choose Mesh->Normals->flip in the drop-down menu.
     
  13. zvesda123

    zvesda123

    Joined:
    Apr 21, 2020
    Posts:
    1
    this suggestion fixed my bottle model, thanks
     
  14. harleydk

    harleydk

    Joined:
    Jul 30, 2012
    Posts:
    41
  15. ericcriollouencs

    ericcriollouencs

    Joined:
    Oct 7, 2021
    Posts:
    1
    The best solution.
    Steps:
    1) Select the object
    2) Change to Edit Mode (Tab)
    3) Select all vertices, edges or faces (A)
    4) Select Mesh > Normal option or Alt+N
    5) Finally select Flip
    It's all.
     
    Jay_TheRipper, BuzzyRoboYT and ml785 like this.
  16. kirschjanosmark

    kirschjanosmark

    Joined:
    Mar 26, 2019
    Posts:
    1
    For me this one did it for me, thank you, but instead of flip in the final step i had to select: "Recalculate outside".
     
  17. Puspanjali1993

    Puspanjali1993

    Joined:
    Feb 24, 2022
    Posts:
    1
    My transparent materials in Blender Fbx file is not imported in Unity 3D,what should I do when I export file in Fbx?