Density Maps in OpenGl

I’m trying to come up with the best way to to do a 2d density map of an opengl scene. It would be able to take rotation into account, and objects that have been clipped. Any just basic ideas on how to accomplish it?

what do you mean by density?