here is an example of realtime texture painting in BGE.
following these commits
i was interested in setting up a paint engine in the BGE using Buffers and VideoTexture. As documentation is sparse I contacted Benoit Bolsee and he was kind to share this resource.
It uses VideoTexture.Texture and the textures source is set to a VideoTexture.ImageBuff. A brush (a simple bytearray in this case) is then plotted into the ImageBuff at a specified UV location (which is taken from the mouse sensors hitUV in this case).
I will elaborate this more in the comming week (kinda got eraser and layers working now). Plotting images instead of bytearrays for dynamic damage also comes to my mind.
Hope this is useful and the starting point of some more documentation on this powerful feature. And thax again Benoit!
testTexPaint_25.blend (99.4 KB)