I've been inspired by this video of a 3D-printed ball joint and decided to make my own version.
(click for full size)
Not much to it. Works pretty well, but could be a bit tighter, maybe (I followed the video's suggestion of leaving 0.5 mm of play).
If you want to print it yourself, the OpenSCAD model is available for download.