Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Blender environment to Unity

Discussion in 'External Tools' started by NvdL, Mar 19, 2017.

  1. NvdL

    NvdL

    Joined:
    Feb 22, 2017
    Posts:
    11
    Hello all,
    I've created an environment/game in Blender and I would like to convert it to Unity for further development. The environment consists of more than 200 objects. I know that it is possible to import single objects and to assign textures/materials by hand but given the large amount of objects I was hoping there is a way to avoid all this manual import + material assignment.
    The materials/textures in the Blender environment are very simple. All are simple image files (i.e., in the Blender game there are no lights and all textures are baked (so .jpg's).
    I tried exporting the environment as fbx and then importing it into Unity. When doing this, only one texture was imported correct (see the grass in the image), one texture was assigned to the wrong object (tiles on the walls) and all other textures were not imported.
    I have read other threads about importing from Blender to Unity but I have not seen anyone else with these problems. Does anyone have advice on how to convert a large blender environment to Unity without too much manual work?
    [​IMG]
    Thanks a lot in advance!
    Best,
    Nynke
     
  2. FreeFly90

    FreeFly90

    Joined:
    May 28, 2016
    Posts:
    175
    I'm not sure what could be causing this, but at first I'd check if every object has a unique material with a Unique name in blender.
     
  3. Cygon4

    Cygon4

    Joined:
    Sep 17, 2012
    Posts:
    371
    Blender has two independent material systems:

    • Textures assigned in the UV/Image editor panel
    blenderuvimageeditor.png
    These are shown when the viewport is in "Blender Render" mode (top toolbar) with the "Multitexture" material mode active
    blenderrender.png
    blendermultitexture.png

    • Texture assigned via the Materials panel
    These are shown a) when the viewport is in "Blender Render" mode with "GLSL" material mode or b) when the viewport is in "Cycles Render" mode (if you created cycles materials).
    blendermaterials.png

    From past testing, Unity / the Blender exporter seems to prefer the materials assigned in the materials panel and falls back to the UV/Image editor texture name if no material is assigned.

    Try checking how your Blender materials are assigned. I recommend using the Materials panel exclusively and removing any UV/Image editor-assigned textures by switching to "Blender Render" and "Multitexture" mode, then selecting all faces and clicking the 'X' near the texture name in the UV/Image editor panel.
     
  4. NvdL

    NvdL

    Joined:
    Feb 22, 2017
    Posts:
    11
    Hi,
    Thanks for your responses. When I switch to Blender render and GSLS, all textures are visible so that should not be the problem.
    As you see in the screenshots below, these objects have one material/texture and this is a image.
    [​IMG]
    [​IMG]
     
  5. zakdank

    zakdank

    Joined:
    Jan 25, 2011
    Posts:
    13
    May not be what you are after but you can just import blender's native file format (.blend) straight into unity. Assuming the materials have the same names, you can use the import menu on the model to import the textures.