Vertex colors are RGBA color values applied directly to vertices in meshes (as opposed to material definitions and/or textures)
Vertex colors will be preserved if you use a format which supports them (e.g. .FBX, .WRL, .BLEND, and point cloud formats). The OBJ format can also be encoded to include vertex colors in some applications.
If vertex colors seem over-saturated or "washed out", try switching your color space between sRGB and linear in 3D Settings → Scene. By default, we choose sRGB. You can also improve color quality using Post-Processing Effects.
Vertex Alpha is supported and can be enabled or disabled with the Use alpha toggle.
Vertex colors are compatible with textures, and the colors will be mixed. If parts of your model are unexpectedly dark, you might need to disable vertex colors in 3D Settings. This is a common issue with FBX files exported from some software such as Maya and 3ds Max.
If you do not see the Vertex Color settings, then the model does not have vertex colors.
Comments
15 comments
Can vertex colors be used to drive transparency levels for hair cards? Inner most geometry = less transparent?
We support the Alpha channel in vertex colors, so yes you could probably use it for hair.
Can I change vertex color setting per object?
Not at the moment. Can you share more about your use case?
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.
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
thank you for reply and advice.
I turned off those. Tuning those effects are super fun, so I might did too much. XD
Haha yes they are. I think we all tend to be a bit "trigger happy" with the filters :)
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
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.
It looks like this option is lost, was it replaced or transferred?
Hi there,
If you do not see the option, it means the model does not have vertex colors.
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.
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.
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:
what didn't work:
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.
Please sign in to leave a comment.