Vertex Colors display in Viewport

Hi Guys,

Simple question: I got informed that ideasman claimed it would be possible to render vertex colors (REAL vertex colors, not the ones only available per face) in the viewport by overriding a draw callback. I would love to know how to do that.
Ideally, someone could post a minimum working example, but actually I take the tiniest hint I can get! :slight_smile: Thank you!

Background (unnecessary additional info):
Recently Gottfried Hofmann informed me that he talked to ideasman via IRC the other day and he mentioned that it would be possible to add an own custom-data layer to vertices and then call my own drawing callback. Ideally vertex buffers would be used instead of glVertex, ofc.

I am looking for around 4 years to do that and although I already wanted to give up multiple times, this gave me a little hope. Last year, I mentioned in my BCon17 talk (, that I desperately miss this feature - unfortunately my original BlenderArtists posting was not converted to the new version. But today I saw this thread on here: Gradient vertex color for proportional editing which already shows how nice this will look, but is this even accessable yet for us? I know the Python API is subject to change, but maybe someone is kind and can shed some light on this topic. I would really buy a beer for someone who can provide a minimum working example (just send me your PayPal address and I will transfer 2 Euros :smiley: honestly… )

As I already said above - every tiny little help in this regard is greatly appreciated! Thank you!

Kind regards,

BlenderEi (Adam)

Ok, excuse the double posting, but I somehow cannot edit my post due to an error. Just wanted to add this:

Here is a video from my Bachelors Thesis how this could look (only the visualization part in the middle)

And if you need a testing file, here is a very stripped down version with only a few points:
Although this is not the topic of my post, for importing I would use something like here