I have noticed that filters seem to be brand agnostic, i.e., they can be used with any lens as long as the diameter matches. Is this true for other lens accessories like hoods and lens caps as well? For ex., can a Nikon hood be used on a Canon lens with a matching diameter? I understand that the focal length range would govern the extent of vignetting, but will the hood fit?
The reason behind my question is that first party accessories are not always available, and was wondering whether they could be substituted.