first i draw the image (toothpaste), then i set the blendfunc and then i use 3d bezier-splines and draw an unsharp filled circle on every beszierpoint to get the lines. the problem is, i need to set the depthmask to false, to get the blendig, but the image of the toothpaste (png with transparence) is then not transparent. this is just an pimage which is always orientated to the cam.
i think i need a stencil-buffer, to cut out those points and their pixels, which are behind the image.
do i need also a depthbuffer?
i found some stencil examples on the net, and try to implement them.