In the pictures below you can see 2 vertex channels in the bottom right, in this example "meshId15-color0" and "meshId15-color1". The first channel uses green (hex code BEFFD0 approx) and red (FF0000) vertex painting to define where X4 will apply its hue values which are set in the paintmods.xml file. The second channel uses pure red (FF0000) and pure black (000000) to define on which parts of the mesh paintmods will be applied. Red for paintmod, black for no paintmod.
- Thanks Lino!


Here is a video of me working with vertex colours, perhaps it might help some modders https://www.youtube.com/watch?v=YwmZq3Vx_i8
______________
I'm trying to figure out how vertex colours and weights work, and how they interact with paintmods.
Heres a picture of a magnetar imported into blender, the red parts seem to translate to what appears in game - but the green does not so im a bit confused by it.
Are those 2 colours what the game looks for to apply xml hue variables? If so its not working on my custom ship for some reason.
https://i.imgur.com/fZKmiI9.jpg
I also dont understand how weight painting is working, weight controls where paintmods are applied, right? Its not clear how this works to me by just looking at the models.
Edit: Also, sharp edges between different vertex colours in blender are blurred in game.