My goal is to render two images: one for an object that I created in Blender which I understand how to do and the other image is for the shadow that the object casts.
The background on which the shadow is projected should be invisible, in fact these two images must be transparent and I understand how to do that with an object, but doing this for object's shadow is what I don't have a slightest idea about. The image of an object and its shadow will be then drawn in a separate program - think of a tile in a game with the shadow that object on that tile is casting on other tiles above, so at first a shadow will be drawn then an object itself.
A shadow must be transparent, i.e. it should have a transparent background and ideally it should have an alpha channel reflecting the strength of the light source.
I found one similar question that refers to shadow catcher, but I'm still not sure how to separate shadow rendering from the object rendering so that I could get a separate render of a shadow: 2.81 Transparent Background Shadow Catcher
https://blender.stackexchange.com/questions/518/how-to-make-a-model-cast-shadows-onto-the-world-texture-background/72354#72354
– Edgel3D Aug 09 '22 at 23:14