1) in a frame buffer object, you can run a laplacian shader in the GPU to obtain the contour. 2) you have to use the depth buffer when you draw your object in the FBO, that way you will be drawing only the visible part of your object in the FBO, and the laplacian will contour only the visible part.