added some debugging routines to visualize occlusion