Generating 2D bump/displacement maps from 3d geometry

There’s also a good plugin someone made here which improves the functionality.