Creating an Alpha Map

Hello. I was wondering how I might create an alpha map in Blender for use in Blender and or Substance Painter. Something similar to the image shown below.


the above looks like a height map ( negative z-axis )

what are you using a transparency image for ?