Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

I need help with game object textures when importing from blender

Discussion in 'General Discussion' started by Kingnero60, Jan 20, 2016.

  1. Kingnero60

    Kingnero60

    Joined:
    Mar 30, 2015
    Posts:
    36
    So anyway. I am new to unity and game design in general so I know this question will sound noobish. I have read the manual and I tried the fixes. I don't have the time to go hunting for a fix because I have class all day tomorrow.and I have work and homework throughout the week. So my problem is that when I import an object from blender, it does not import the texture. Like literally, it imports the mesh and the nodes. but not the texture or materials. I have tried putting it in on the material asset provided by the import tool but that does not help me. Any tips for dealing with this problem? By the way I am using blender 2.76b and unity 5.2.3.
     
  2. kburkhart84

    kburkhart84

    Joined:
    Apr 28, 2012
    Posts:
    910
    Textures generally aren't going to be something done automatically. Materials work the same way. Either one of two things is occurring for you. I don't know what your case is so don't judge me :)

    1. You should understand that the textures need to be placed directly into your asset folders as part of your project. I generally put them into the same folder as the material. Also note that the material that gets created is whatever the default is for your Unity version, for example with Unity 5 it defaults to the "Standard" shader. You can then apply your textures to that material.

    2. You may be believing that textures, materials etc... that you have set in Blender will apply in Unity. This simply isn't the case. Materials you set in Blender won't work in Unity. Textures, specifically the procedural textures you use in Blender, also won't work in Unity. Now, you could theoretically use procedurals to paint textures, and then export those UV textures into the asset folders just like other textures, but if they aren't somehow "baked" they won't work. There are many other Blender things that are the same way, that simply won't get sent into Unity.
     
  3. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    Disclaimer - I'm not a blender artist.

    Did you UV the model?
    If you don't know what that is - you need to do that or the textures wont stick to the model when importing them.
    Also Unity does not accept custom materials, from blender, max, maya or others. If you are setting up a material without supporting textures - those aren't going to come in as desired. Unity has it's own material/shaders that needs to be setup with supporting texture maps.
    But the model needs to have proper UV's before the textures can import into Unity correctly.
     
  4. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,301
    Are you using blender internal renderer? I'm not sure if it will work with cycles materials, (probably won't).

    Either way, on import unity will create multiple materials for your model, just go through those and assign textures manually.

    I've worked with blender models in the past, usually unity didn't have any problem creating materials and transferring basic settings (like color) from blender material into unity material.

    Alternatively upload sample *.blend file of what you're having trouble with, maybe someone will take a look at it.
     
  5. Kingnero60

    Kingnero60

    Joined:
    Mar 30, 2015
    Posts:
    36

    how do I attach a texture to a UV? I have never been able to figure that out.
     
  6. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
  7. Kingnero60

    Kingnero60

    Joined:
    Mar 30, 2015
    Posts:
    36
    is there a way to do it without photoshop? Like with gimp 2.8?
     
  8. Kingnero60

    Kingnero60

    Joined:
    Mar 30, 2015
    Posts:
    36
    I figured out the issue! I was trying to use photos as textures! How dumb can I be! thank you for those who answer my question