Skip to main content

Vertex Colors

Comments

15 comments

  • pixel-ninja

    Can vertex colors be used to drive transparency levels for hair cards? Inner most geometry = less transparent?

    0
  • James

    We support the Alpha channel in vertex colors, so yes you could probably use it for hair.

    0
  • xraysatellites

    Can I change vertex color setting per object?

    0
  • James

    Not at the moment. Can you share more about your use case?

    0
  • xraysatellites

    Thank you reply :)
    In my case, I put my textured character (it has vertex color too for Memo)  to the simple pedestal it colored by the vertex coloer, no UV.

    then, I use vertex color setting, My textured character bleed the memo vertex color on texture.

    So, I just want to turn off that character only.

     

    0
  • James

    Interesting, thanks! It's probably not something we're going to implement on the short term.

    However, I believe we use the "multiply" blending mode to mix vertex colors with diffuse/albedo/base color, so if you make the vertex colors white everywhere that you will have a texture, it should not affect the final color.

    By the way, I notice you're using quite a lot of post-processing filters on your models. These filters are very "expensive" in terms of model performance, especially Bloom, SSAO, and SSR. In this model, for example, the Bloom and SSAO aren't really doing much for you, so I would recommend disabling them: https://sketchfab.com/3d-models/celen-beat-covid-19-fea6d1aa9aa94457826721be6db58008

    0
  • xraysatellites

    thank you for reply and advice.
    I turned off those. Tuning those effects are super fun, so I might did too much. XD

    0
  • James

    Haha yes they are. I think we all tend to be a bit "trigger happy" with the filters :)

    0
  • emiliogil88

    Would it be possible to export the vertex color to a texture file?
    I am trying to use ZapWorks studio, but cant make to import the model with the color

    0
  • James

    Hi there,

    I don't have much experience with it, but I think you could use software like Blender or MeshLab to UV unwrap a model and "bake" vertex colors into a texture.

     

    0
  • Angelina_Artelia

    It looks like this option is lost, was it replaced or transferred? 

    0
  • James

    Hi there,

    If you do not see the option, it means the model does not have vertex colors.

    0
  • edgarej

    Hello

    Summary of my question: what is the best way for me to show my blend project/model with correct vertex colors intact?

    I have a model on my profile page with vertex colors showing (https://skfb.ly/ovIAV). This model is an fbx model that I exported with Blender 3.2. At some point between blender 3.2 and  3.3.0, the fbx exporter was changed. Now when I try to upload an fbx file I exported from Blender, no vertex colors would show. Somebody suggested I try the gltf file, and that model works, but the vertex colors are showing too dark. I have a few draft files on my profile right now that maybe you could take a look at?

    So to paraphrase my question, what is the best method for uploading a file with vertex colors intact and with the right brightness? I have tried uploading a blend file before but a blend file always errors out on me. OBJ files are out cause apparently vertex color support for it is dicey. That leaves me with fbx and gltf, both of which doesn't compare to the old fbx exporter of blender 3.2.

    Any help you could give me would be great, thanks.

    0
  • James

    Hi there,

    I'm sorry you're having trouble. Have you tried using our import/export plugin ( https://github.com/sketchfab/blender-plugin/releases/latest ) or simply uploading the .blend directly rather than exporting to FBX or another format? I think we should preserve vertex colors in .blend files.

    0
  • edgarej

    James

    Here are the results of my experimentation, these are the blend settings/export files I have tried to get to
    a) have the vertex color option show up in the 3D settings menu and
    b) have the vertex colors be in the right brightness/not too dark;

    what works:

    • FBX export - vertex colors attached to an emission shader, then export to an FBX file: vertex colors option shows bright and not dark.

    what didn't work:

    • native blend file - assign principled shader to model; no vertex color option shows
    • native blend file - vertex colors attached to the color of principled shader; no vertex color shows and/or blend file won't upload
    • native blend file - vertex colors attached to the color and emission of principled shader; no vertex color shows and/or blend file won't upload
    • FBX export - no shader/material assigned; no vertex color option
    • FBX export - assign principled shader to model; no vertex color option shows
    • FBX export - vertex colors attached to the color of principled shader; no vertex color shows
    • GLTF export - no shader/material assigned; vertex color options show, vertex colors are dark
    • GLTF export - mix shader (diffuse with vertex color and emission); no vertex color option
    • GLTF export - assign principled shader to model; vertex color options show, vertex colors are dark
    • GLTF export - vertex colors attached to the color of principled shader; vertex color options show, vertex colors are dark

    It took me forever to find the file I originally used to export my first model with vertex colors. I initially thought I didn't have a shader material assigned to my model, it turns out I used the emission shader. I'm glad I found the file, so now I can upload/publish my second model with vertex colors.

    I now understand why the vertex colors can appear dark. The material assigned to the object has an impact on how the vertex colors are displayed. What I don't understand is why the vertex color option does not show up in my 3D settings even when my model has vertex colors. Why is that?

    Anyways, thank you James.

    PS, I did try the import/export plugin, but I forgot to write down the results if either the upload worked and/or vertex colors are showing and not dark.

     

    0

Please sign in to leave a comment.