Hi,
I am drawing into a 3D texture with a brush and I am looking for the most efficient way to implement this so that there is minimal lag. My 3D texture can be 512^3 and the brush typically 1-30 pixels squared.
The brush can be any shape, so I do need to perform and OR operation upon pasting the brush into the target texture.
Currently I use glGetTeximage to retrieve what is already in the texture and then I OR that with the Brush (CPU side), finally I send back the result withglTexSubimage3D.
Is this the quickest way?
I’m not seeing unreasonable performance (if the user moves the cursor quickly, the stroke will be discontinuous, but I guess this is due to the frequency of the mouse-motion call-backs) but I’d like know if there is a quicker way to do it!
Thanks,
Soren