Australian scientists believe they are on the edge of a textiles revolution with "intelligent clothes" that automatically alter their structure in response to rain, sweat, heat and cold.