Barnyard 's production was done mostly in San Clemente , California .
Barnyard was released on August 4 , 2006 , to negative reviews and grossed $ 116.5 million worldwide against a $ 51 million production budget .