Description Usage Arguments Examples
Function uses hierarchical model definition from hierarchy list however data of channels are taken from data frame.
1 | write.bvh(skeleton.helper, path)
|
skeleton.helper |
mocap object to be save. |
path |
path to the file. |
1 2 3 4 5 6 7 8 9 10 11 | data("header.mocap")
data("heian.shodan")
heian.shodan.corrected <- calculate.kinematic(heian.shodan, show.plot = "TRUE", plot.title = "Heian Shodan")
original.bvh <- set.data.frame(header.mocap, heian.shodan)
corrected.bvh <- set.data.frame(header.mocap, heian.shodan.corrected)
#plotting BVH
plot(original.bvh, frames.fraction = 0.1, my.color = "red", alpha = 0.1, spheres = FALSE)
plot(corrected.bvh, frames.fraction = 0.1, my.color = "green", alpha = 0.1, spheres = FALSE, append = TRUE)
#writing BVH to disk
write.bvh(original.bvh, "original.bvh")
write.bvh(corrected.bvh, "corrected.bvh")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.