Upvote:2
You asked a general question, and the very general answer is that you have to apply as a citizen of your nation, but you will mention the residency in Germany.
The German residence permit may help to get the visa, but you still need one.
There is a short list of countries that will allow entry to people with a Schengen visa without being part of the Schengen system, e.g. Macedonia.
Upvote:3
A residence permit does not make you a citizen, and other countries visa requirements are almost universally based on the citizenship of the traveler. So you need to apply for the same visas that everyone else with your nationality do -- except for very few and unsystematic exceptions.
The Schengen rule that a residence permit from one member implicitly works like a short-stay visa for the others is one of these specific exceptions. Another exception is that having a residence permit from an EU country can under some conditions qualify you for visa-less transit through the UK even if your nationality is one that would otherwise need it.
But unless you know that a specific exception of that kind applies to you, the safe bet in general will be that there isn't one.