Text this: Computer animation of swaying trees based on physical simulation