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
3 answers
41k 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
23 votes
2 answers
41k 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,819
23 votes
1 answer
41k 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
  • 233
14 votes
5 answers
15k 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
13 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
  • 799
12 votes
2 answers
3k views

Is there a way to compute vertex density?

I've got a mesh and am trying to figure out if there is a way to get a map of its vertex density. Ideally it would be something that I could put into a color ramp node and visualize. The goal is to ...
ajwood's user avatar
  • 10k
11 votes
2 answers
26k 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
11 votes
1 answer
599 views

How can I get the color in the middle of a face using Python?

Say I have a mesh and I have colored the vertices using vertex paint, how can I then get the average of the colors or rather the color in the middle of the face or the color under the normal (shown ...
Scales's user avatar
  • 328
9 votes
1 answer
17k 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
  • 388
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
8 votes
3 answers
8k 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
8 votes
2 answers
19k 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
8 votes
2 answers
761 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
3 answers
2k views

Smoothing vertex_colors values

I'm coloring a mesh using vertex colors: ...
Noam Peled's user avatar
8 votes
2 answers
3k views

How to animate vertex color of an object?

Is it possible to animate the vertex color of an object?
GabrielS's user avatar
  • 1,370
7 votes
5 answers
14k 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
1k 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.3k
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
7 votes
1 answer
747 views

Blender for scientific visualization - Point color interpolation from vertex color data based on distance

TL;DR: For a given point in a face/polygon how can I compute the distance between that point and all the vertices on the given face with shader nodes? Overall intent: I want to visualize complex ...
Rui Costa's user avatar
7 votes
1 answer
5k views

When is vertex painting the right choice to color a model? [closed]

I am asking this question because I cannot think of any advantage to vertex painting over automatic uv unwrapping followed by texture painting.
rbtyod's user avatar
  • 333
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
6 votes
3 answers
2k views

How to hide vertex colors in Texture Paint?

I am currently trying to paint a texture onto a character model. However, I cannot actually see what I am doing because one of the vertex color layers is being overlaid on top of the texture, causing ...
Zauberin Stardreamer's user avatar
6 votes
1 answer
494 views

Are Vertex Color layers limited to 8?

Why is there a limit for vertex-colour layers? Is this a bug or is there a reason, why I cant add more than 8 vertex-color layers? I will make a bug-report if it is a bug - but I'm not sure for now. ...
Andi 's user avatar
  • 691
6 votes
1 answer
607 views

Geometry Nodes Separate out Alpha Channel from Vertex Colors

I'm using the RGBA channels of the vertex colors on geometry for various effects but I can't find a way to separate out the alpha channel in geometry nodes. Is there a way to access the Alpha channel ...
BenignBrett's user avatar
5 votes
2 answers
18k 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
642 views

for all objects, rename 'Vertex Colors" that has a certain name :: using python

Many objects in my scene has Vertex color (left image) that is used in Shader Node (right image). ^ I want to change color1 to a more meaningful name e.g. ...
cppBeginner's user avatar
5 votes
1 answer
483 views

Is it possible to use multiple active vertex colors?

I'm using vertex colors to control features of a material. This works well for one of them, but I'm out of channels and need to handle pigmentation now. The other option is of course using a texture, ...
Michael Macha's user avatar
5 votes
2 answers
2k views

Vertex color gradient is not linear

I am painting the default cube through vertex coloring. I paint the bottom four vertices as (0.25, 0.25, 0.25) and the top four vertices as (0.75, 0.75, 0.75). When I inspect the result in VERTEX ...
Math_Max's user avatar
  • 183
5 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,469
5 votes
2 answers
1k views

Does Blender support linear colorspace for vertex colors?

It looks like the vertex colors in Blender are stored using sRGB colorspace. The game engine I'm using (Apple SceneKit) uses linear colorspace. As I export the vertex painted model either using the ...
Teemu Harju's user avatar
5 votes
1 answer
1k views

Vertex color values over one

Is it possible to paint vertex colors that are higher than one? Vertex colors are exposed through the python API as floating point numbers. If this is how they're stored, they should happily accept ...
SmashMaster's user avatar
5 votes
4 answers
1k views

Disconnected (exported) mesh because of vertex paint?

I have a model that was imported from an erronous file where each triangle was disconnected from the others. After "reconnecting" it via removing duplicate vertices and exporting (to .ply with vertex ...
Nobody moving away from SE's user avatar
4 votes
1 answer
12k 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
  • 485
4 votes
2 answers
6k 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
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
4 votes
2 answers
5k 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,556
4 votes
1 answer
1k 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
  • 73.9k
4 votes
2 answers
725 views

Is it possible to convert Matcap colours to vertex or material colours?

What I would like to do is simply to apply a Matcap while editing, and then use its base colour as the colour of the object for test rendering etc. Is this possible? To put it another way, if the ...
A Wild RolandiXor Has Appeared's user avatar
4 votes
1 answer
231 views

Setting vertex color with ob.data.vertex_colors["Col"].data[0].color stores values wrong

when I set the color of vertex data with; ob.data.vertex_colors["Col"].data[0].color = [0.7, 0.5, 0.3] and then look at the values, they are different ...
Chris's user avatar
  • 41
4 votes
1 answer
6k 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
1k views

How to access vertex_color layer directly from inside BMVert

I want to access vertex colors directly from inside BMVerts, but I don't know how. I am able to access vertex colors indirect for inside BMFaces: ...
beta-tester's user avatar
4 votes
1 answer
540 views

Is there a way to not limit vertex painting to visible geometry?

Is there a setting for vertex painting which allows you to paint on geometry that is visually obscured from the view by geometry in front of it? (I am looking for something similar to the limit ...
PGmath's user avatar
  • 25k
4 votes
0 answers
403 views

Vertex colors with skin modifier

I have some curves that I want to render in Cycles; these are not blender curves, instead they are composed of a set of vertices, each having a color, and edges (but no faces). Using the skin ...
Synxis's user avatar
  • 141
4 votes
0 answers
1k views

Retrieve vertex colors in 2.8

2.79 allowed you to set shading to flat, which would render the vertex color 1:1 on screen (assuming the entire normal had been solidly colored and noting else is being set to diffuse, of course ...
Super Cat's user avatar
  • 237
4 votes
1 answer
2k views

Weight paint only working on some vertices? [v2.73]

I am trying to weight paint a mesh for a unity game, and only a few if any of the vertices are being painted. This is something I was able to do a while back in version 2.49, but now it doesn't work. ...
Geoffrey Van Gieson's user avatar
3 votes
2 answers
861 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
2 answers
4k views

Gradient between two materials on the same mesh

I am trying to colorize a mesh for a 3d illustration, and I have been using Steven's technique so far. The problem is that, as Stephen notes at the end of his answer, the contrast between the two ...
MicroMachine's user avatar
  • 4,601
3 votes
2 answers
6k 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,819
3 votes
1 answer
1k 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
3 votes
1 answer
630 views

Is there a Blender api to fill a color to a certain vertex_colors?

Taking a cue from this question, I'm testing to make a one-color fill to a vertex_colors. Works fine, but is very slow on meshes with many polygons. ...
Noob Cat's user avatar
  • 1,144

1
2 3 4 5
7