Search Unity

blender vertex color import problem

Discussion in 'External Tools' started by grobonom, Dec 5, 2019.

  1. grobonom

    grobonom

    Joined:
    Jun 23, 2018
    Posts:
    138
    Please could anyone tell me why a blender 2.79 object having vertex color cannot be imported in my unity3D 2019.1.3f1 ?

    thanks in advance.

    here's a blend with vertex color for example:
     

    Attached Files:

  2. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    1,991
    Are you sure they didn't import? As I understand, unity does import vertex colors but Unity's standard shader doesn't use vertex colors, so unless you are using a custom shader that supports vertex colors, the vertex colors won't appear.
     
    Olmi likes this.
  3. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    625
    I just tried to export vertex colors from Blender a while ago, they do export OK, you just need a shader that supports vertex colors.
     
  4. grobonom

    grobonom

    Joined:
    Jun 23, 2018
    Posts:
    138
    no matter the shader ( even if i wrote one that uses Vcolors ) the thing is that the mesh is simply not imported at all when it has vertex colors.
    Here's the blender screen capture with vertex colors:
    vcol.jpg

    and here is what unity gives me:
    for the asset:
    asset_with.jpg

    and for its inspector:
    insp_with.jpg

    Without vertex color list everything works fine:
    for the asset:
    asset_without.jpg

    and its inspector:
    insp_without.jpg

    Please could you try to import the blend file i posted in my 1st post and tell me wether it works for you or not ?

    Thanks in advance and happy unitying !
     
  5. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    625
    @grobonom Import FBX files, they work just fine. Is there some specific reason you need to use other format?
     
  6. grobonom

    grobonom

    Joined:
    Jun 23, 2018
    Posts:
    138
    hi @Olmi

    Because i use blender and fbx is not the native format for blender, and i don't want .blend worfile AND .fbx export file, and .blend worked perfectly in the past ( with vertex colors, multiple UVs, blendshapes, etc..... ) and don't work anymore with vertex color in U3D 2019.1.3f1 ;)

    am redownloading the 2018.4.13f1 just to see wether or not it works.....

    The process U3D uses for importing blender files is to launch blender in background and ask it through a python script to export to fbx. The mechanism is just perfect as it's totally transparent.

    Unfortunately, in this way VCOLORS f*ck-up the import.
    As you say, if i manually export an FBX from blender, the model with VCOLORS works perfectly but it's just a too heavy workflow for complex scenes.

    Did you try my blend file ?
    does it import properly in U3D as a .blend ?

    Thanks for your answers.
     
  7. grobonom

    grobonom

    Joined:
    Jun 23, 2018
    Posts:
    138
    okay. This comes from blender side.

    Devs are of the same kind in blender team as in u3d team....

    yeeeeees it works !!!!!......
    ....almost.....

    :p

    My bad for having suspected unity3D ^^ :oops:
    anyway in this forum, openning a blends seems to be kinda trauma :confused: lol !

    Note though that all things work perfectly with blender 2.79b !
    I use a nightly blender 2.79.7 that has been F***ed up probably by beginner devs ^^

    Happy unitying !
     
unityunity