In the military, we used to rub toothpaste on the inside of our scuba masks. Rub it on, let it dry and then rinse in off with water. It worked great to prevent fogging. I wouldn't see why it wouldn't work for glasses as well. One concern may be the leftover fresh minty smell.