Skip to main content

Questions tagged [vertex-colors]

Vertex colors are color values that can be stored with each vertex in a mesh. This tag is for anything related to them.

Filter by
Sorted by
Tagged with
29 votes
4 answers
44k views

How can I set and get the vertex color property?

I can't find a way to display RGB values (or equivalent) without using the python shell. I would like to get and set color values numerically (ie. not painting), I can't find it for weight painting ...
user1759333's user avatar
24 votes
1 answer
42k views

How can vertex paint be rendered?

I have added some vertex paint and would like to see it in the render. It looks simple enough on all the tutorials, except I don't have those options available; Having spent hours researching I am ...
Mikolajki's user avatar
  • 243
12 votes
2 answers
27k views

How to display and use Vertex Color from OBJ model

Recently, I found this funny site, that allows you to generate a 3D model from a 2D image. It works very well and you can download an OBJ file. Vertex are colored and when I import it using Blender, ...
snoob dogg's user avatar
10 votes
1 answer
19k views

Import PLY doesn't display vertex colors

I'm trying to import a .PLY mesh in Blender. I've troubles with colors: the mesh appear in a grayscale palette. Other softwares open it correctly (eg. MeshLab). This is the header of the PLY file: <...
sborfedor's user avatar
  • 408
2 votes
1 answer
2k views

set a specified vertex color to black via python

how to set the vertex color in the center of the mesh to black and the rest of the vertices to red via python? a lot of the answers just tell me that i can color all the vertices in one face like that:...
Heixue's user avatar
  • 117
9 votes
2 answers
6k views

File format with per face colors

I am trying to export a mesh from some scientific experiment (in MATLAB) and load it in blender for rendering. I'd like to assign per-face colors (as opposed to per-vertex with interpolation over ...
olamundo's user avatar
  • 428
6 votes
1 answer
3k views

Applying per-vertex colors to new Bmesh

I'm having trouble applying vertex colors through Python to a mesh. The mesh is imported from a file which has vertex info, face info (vertex indices), and a list of colors that corresponds to each ...
Tom's user avatar
  • 61
4 votes
2 answers
7k views

Per face vertex coloring

In blender you can color the vertexes. But is there a way to color the faces so the faces have only one color instead of the colors being interpolated based on the colors of the surronding verticies. ...
VinnieH01's user avatar
  • 107
4 votes
1 answer
13k views

How do I set a vertex color material in Blender 2.8?

I have a model with vertex colors in it. I would like to display it in rendered shading. There is no more an input called vertex color. I'm using Blender -2.80-387c1f2e0d5d-linux-glibc224-x86_64 How ...
chicOrtiz's user avatar
  • 495
23 votes
2 answers
43k views

Is it possible to paint only on selected vertices in vertex paint?

I'm trying to add some fake shading to a model in vertex paint mode, but I'm having trouble because some parts of the mesh hide the vertices I'm trying to paint. Ideally, since I'm painting the same ...
MrFlamey's user avatar
  • 3,899
14 votes
5 answers
16k views

How to bake to vertex colors in blender cycles?

The long way I do this is: have cycles render selected setup the materials of a mesh create it's UV coordinates create a new image and assign it to the mesh bake change from cycles to ...
porente's user avatar
  • 301
10 votes
3 answers
11k views

Geometry Nodes output to vertex color

I'm new to geometry nodes in 3.0 and a bit stuck on understanding how to output data. I've spent a fair bit of time searching this, but perhaps I don't understand the system well enough to find the ...
TuquePhoenix's user avatar
7 votes
5 answers
15k views

Turn weight paint(vertex groups) into vertex paint?

Can I turn weight paint(vertex group data) into vertex paint? I would like to take the weight paint value and convert it into a black and white grey scale vertex paint map.
GiantCowFilms's user avatar
7 votes
2 answers
2k views

Dilate/expand vertex color mask?

I'd like to use vertex colors in order to apply different shaders on a single object, instead of going through the whole process and drawing a 'black and white' texture (for 1000+ objects). ...
brockmann's user avatar
  • 12.7k
6 votes
1 answer
2k views

Vertex colors are wrong value?

I am using a renderlayer with some vertex colors to render some masks. I have an object with a vertex color layer. The entire object is set to RGB values of .25 each (using set vertex colors command.) ...
Ascalon's user avatar
  • 6,649
3 votes
2 answers
1k views

List vertex colors from a bmesh

I'm working on a custom exporter for an external software. I need to get a list of the vertex colors from a triangulated mesh. To get the triangulated mesh I use this code: ...
jms2505's user avatar
  • 45
3 votes
1 answer
2k views

how to use external values as input for color ramp shader node?

All, I've recently started dabbling in Blender to do some scientific visualization, like ParaView but 1000x prettier :) At the moment I'm trying to tackle adding a color ramp to a 3D surface. As of ...
Derek Eden's user avatar
2 votes
2 answers
2k views

How can I reset a Grease Pencil object's vertex colors?

This is my blend file. It has 2 GP objects. In object mode everything is colored correctly. If I switch from solid mode to Material preview or display render preview mode The GP Objects turn ...
jitone1's user avatar
  • 95
2 votes
2 answers
4k views

Blender 2.81 doesn't seem to be importing vertex color for .ply

So people have had similar problems showing colors on .ply files here and here but I don't think this is the same case. I've exported a .ply file from a program called paraview with color info on it....
Joe Crozier's user avatar
0 votes
1 answer
258 views

Cycles Gradient between two materials

How do i create gradient between two materials in one mesh? (second screenchot was edited in PS)
Capler's user avatar
  • 49
0 votes
1 answer
6k views

How do I bake/add material colors onto my UVmap?

I looked everywhere from tutorials to documents and either they only talk about texturing or they are doing the tutorial in 'blender render' when I need it in 'cycles render'. I have a cube that is ...
Lynn's user avatar
  • 1
8 votes
2 answers
815 views

Linking the color of one mesh to a second mesh

I have a series of tubes that were inputted as VRMLs with varying colors. I have made a path out of them and have the sphere following the tubes. I want to link the color of the sphere to be the same ...
rwinfree's user avatar
8 votes
2 answers
22k views

How to view vertex' colors?

I'm a beginner. Is it possible (and if so, how) to select a single vertex and change its color? I tried the "Vertex paint" mode, but couldn't find a way to select a single vertex and view its color. ...
liorda's user avatar
  • 181
4 votes
1 answer
1k views

Vertex colors loose color data

Vertex color data seems to be distorted when used in material nodes, does anybody has similar issues? Looks like Blender modifies them for Cycles somehow. I am using VC not for coloring but for ...
IPv6's user avatar
  • 323
3 votes
1 answer
2k views

python code to set color attributes per vertex in blender 3.5

I have a python script that sets vertex colors per vertex (reading the data from lists) which worked in blender3.3. I'd like to use that script in blender 3.5 (simulations branch) but it throws an ...
richard's user avatar
  • 121
2 votes
1 answer
11k views

How to bake ambient occlusion into vertex colors?

This is frustrating for me. The UV-textures to vertex cols add-on doesn't seem to work despite the specific instructions. Any other tutorials I can find are either very old or very poor. I'd like to ...
allen's user avatar
  • 999
1 vote
1 answer
9k views

How to bake uv map texture to vertex color (selected to active)?

I have two mesh ! One mesh textured and one mesh no textured. How to bake uv map texture to vertex color (selected to active) ?
LukeNukem's user avatar
1 vote
1 answer
1k views

Is it possible to set/manipulate vertex colors from geometry nodes?

Is there a way to output floats or colors into a vertex color layer from geometry nodes in Blender 3.0 or 3.1? Thanks!
bestelix's user avatar
  • 125
0 votes
0 answers
773 views

How to convert this vertex paint into a useable material (scripted)?

I have a single, the all-in-one mesh object created and then vertex-painted with a script. I can see the colors in vertex paint mode, but I haven't been able to successfully turn it into a renderable (...
uhoh's user avatar
  • 2,667
0 votes
1 answer
601 views

Flat shaded mesh - missing separate colours/normals for connected vertices?

I recently got started with python scripting, so I am still very new to this! I am trying to set the vertex color of vertices looking'up' to white, otherwise set it to black. I use a dot product to ...
Prodigga's user avatar
  • 113
14 votes
2 answers
3k views

How to colour vertices of a beveled curve mesh without converting to mesh?

For scientific visualisation, I'm using a lot of splines which are bevelled with an object (i.e. a hexagon). I control the level of details depending on the context. Without losing the benefits of ...
nantille's user avatar
  • 819
8 votes
3 answers
2k views

Smoothing vertex_colors values

I'm coloring a mesh using vertex colors: ...
Noam Peled's user avatar
7 votes
1 answer
5k views

Bake a texture to vertex color in Blender 2.8

In Blender 2.8 was removed Blender Render, where was option "Bake Texture to Vertex Color". Unfortunately in Eevee there is no such functionality. I like new Blender 2.8 very much, but I can't use it ...
chikomoreno's user avatar
5 votes
2 answers
20k views

Bake vertex colors to texture from mesh

This has been asked before but I can't find the solution now. The solution was something about going into blender render, setting the bake type to vertex colors and then just baking but I'm just ...
Life's user avatar
  • 159
5 votes
1 answer
172 views

Merging vertices messes up the vertex colors. Is there any fix for that?

Merging vertices messes up the vertex colors. Is there any fix for that? Before merging by distance: After merging by distance: I am using blender 4.0: Here's the file:
Richard Dickens's user avatar
4 votes
2 answers
6k views

Can Collada export vertex colors?

In order to demonstrate my problem, I created a simple scene with a cube and I used Vertex Paint to color one corner. When I export to COLLADA, I make sure that "Include Material Textures" is checked....
Garrett's user avatar
  • 6,566
4 votes
1 answer
2k views

Geometry Nodes: Face Corner Colors

'Vertex' painting is actually face-corner painting. So per-face colors are possible, can be picked up by an Attribute input node in shader-trees. Here are 2 color-attribute layers on a cube, both ...
Robin Betts's user avatar
  • 78.3k
4 votes
1 answer
7k views

Getting Blender to export .ply files with vertex colors

I'm trying to get Blender to export .ply files with vertex colors and triangular faces. First, I assign my model a material, and change its diffuse color. Then, in edit mode, with my whole model ...
Robo11's user avatar
  • 105
4 votes
1 answer
8k views

How to export vertex colors

this is a follow-up to this other question. I now have a mesh with vertex colors applied as attribute inside the Object Data Properties. I have tried to export this mesh into various formats, ...
zbigniew's user avatar
  • 115
3 votes
0 answers
479 views

Per-Face Vertex Color from Image Texture

Is it possible to convert a UV mapped image texture into per-face vertex color? I found this script that can generate Per-face vertex color from Normals of 2.79, or an add-on Bake vertex color, but it ...
vklidu's user avatar
  • 37k
3 votes
0 answers
1k views

Colouring hair with vertex paint [closed]

Is it possible to get a vertex paint layer into a cycles hair material, when the hairs are emitted from vertices? Here is a vertex paint layer working for the emitter, but the hair strands don't get ...
ajwood's user avatar
  • 10.1k
3 votes
1 answer
132 views

Can I animate which vertices a certain material is assigned to?

What I want to achieve is to have a low-poly mesh with a certain mesh assigned to a set of vertices, and then be able to animate it to change which vertices are affected. Something like this: To ...
J Sargent's user avatar
  • 19.3k
3 votes
1 answer
1k views

Geometry Nodes: How to iterate a Vertex Color gradient across geometries?

I want the geometry I create in Geometry Nodes to be generated with a Vertex Color gradient that I can use in the object's material. In this example there are several rectangles, one original, and ...
Mentalist's user avatar
  • 19.3k
3 votes
0 answers
285 views

How to access hidden value in Uvmap (UVWT)

I got a really specific question for an expert. I learned recently there is no such thing as Vector 2 in a graphic shader. Every Vector is in reality a Vector 4. Like vertex colors are not just Vector ...
01 Studio's user avatar
3 votes
2 answers
8k views

Is it possible to set the vertex color alpha component?

I work in the game industry and often make shaders that rely on vertex color parameters for certain effects. This is often used to reduce shader complexity and material usage in order to improve ...
MrFlamey's user avatar
  • 3,899
3 votes
1 answer
8k views

Flat vertex painting, or face painting?

Vertex painting is far too soft for me: I'm looking to paint something more like this (not exact, but close enough): Instead of smooth interpolation, color interpolation should be done on a per-face ...
Accumulator's user avatar
3 votes
3 answers
2k views

How to invert vertex colors in Blender?

So there is no built-in functionality to invert vertex color o.O How can I invert vertex color on an active object?
motorsep's user avatar
  • 305
3 votes
1 answer
660 views

How to add a RGB Curve node

How i can add a RGB Curve node, like this example? I want to improve colors of my PLY mesh. (This screenshot is not mine, I've found in this forum.)
sborfedor's user avatar
  • 408
2 votes
2 answers
1k views

How to properly set VERTEX_PAINT mode from a python script?

My goal is to get a rendered image of an PLY mesh from command line. I wrote this script: ...
sborfedor's user avatar
  • 408
2 votes
0 answers
251 views

Why is the vertex color interpolated differently in different cube faces?

I realise this might be a very simple and stupid question as I am just getting started with Blender. I am trying to procedurally colour vertices to produce pseudo-colour maps. I created this simple ...
Rui Costa's user avatar