I can’t really find any information on this when searching, so I figured this is probably a decent place to ask.
I need to create my own custom data overlay for my add-on.
What is the “Best Practice” approach? since there is no data on it?
So far, I’m just gpu batching what I need. this creates obvious issues like having to manually determine backface culling etc. for something that blender can already do WITH a data overlay (vertex normal).
Is it possible to hook up directly into the existing functions, and force a re-draw with a different length/color per vertex?
Perhaps a better question… where could I find the functions that generate the overlays in the source? (so as to maybe pull and push a change?)
Additionally. since i’m not even sure what I’m looking for… how do I get batch_for_shader LINES to not always draw above the object? there should/must be an easy way to do this…
Quick update on this.
I decided to force a redraw to happen only on right click. The lag is still fairly bad even with a proper vertex buffer and using mathutils to update. anything above 150,000 verts causes a slight lag for the re-draw process.