Realistic 3D simulation of garments