Process control, modeling and applications of spray casting