1. A computer-implemented method for compressing data representing animated hair in a computer generated imagery (CGI) scene, the method comprising: receiving data representing animated hair, wherein the data comprises a plurality of arrays of hair data parameters; determining a set of new basis vectors for the plurality of arrays of hair data parameters using principal component analysis (PCA), wherein the number of new basis vectors corresponds to the number of hair data parameters in an array; determining an allocation of bits to dimensions corresponding to the set of new basis vectors based on the relative lengths of the new basis vectors, wherein a new basis vector with the greatest length is allocated more bits than a new basis vector that is shorter; quantizing the hair data in the dimensions corresponding to the set of new basis vectors based on the allocation of bits; bit-packing the quantized hair data; compressing the bit-packed quantized hair data, wherein the compression is lossless; and storing the compressed hair data.