Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

blender vertex color import problem

Discussion in 'Asset Importing & Exporting' started by grobonom, Dec 5, 2019.

  1. grobonom

    grobonom

    Joined:
    Jun 23, 2018
    Posts:
    335
    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:
    4,616
    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:
    1,553
    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:
    335
    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:
    1,553
    @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:
    335
    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:
    335
    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 !