Imagine a car whose windows and sunroof can help top up its battery while parked under the sun, or a pair of smart glasses whose lenses can harvest light to power built-in electronics.