Vertex Color Interpolation

The interface, modeling, 3d editing tools, import/export, feature requests, etc

Moderators: jesterKing, stiv

Post Reply
Chris136
Posts: 2
Joined: Tue Oct 29, 2013 11:28 am

Vertex Color Interpolation

Post by Chris136 » Tue Oct 29, 2013 2:47 pm

I am trying to recreate a shader in Blender from a game engine. I want to paint dirt masks with vertex colors over tileable base textures.

So far the shader works perfect, the vertex color painting too.

But: I noticed that the vertex color interpolation between vertices in Blender seems not to be linear. In the game engine the interpolation is linear, so the output of the shader is different when the mesh is imported into the game engine.

I rebuilt the shader with UDK to compare. There the interpolation is not linear, too.

I searched for detail information but could not find any about this topic.

What kind of interpolation does Blender use for vertex colors and is it possible to change it or compensate in the shader with curves to mimic the linear interpolation of the game engine?

Chris136
Posts: 2
Joined: Tue Oct 29, 2013 11:28 am

Post by Chris136 » Thu Oct 31, 2013 7:41 am

After testing some more it turned out that the vertex color interpolation actually is linear. It's the vertex color output slot of the geometry node in the node editor that is not linear. Please can somebody shed some light onto the conversion that takes place in this node?

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests