openGL provides for ortho and perspective projections, but has anyone ever tried to create a different projection matrix?

In particular, Im looking for help generating stereographic and mercator projections from my 3D model, and google hasnt helped me.

Any hints on what a stereographic transformation matrix might look like, or is it even possible; or hints on what the transformation matrix is expecting?