Description Usage Arguments Value Author(s) Examples
Adjusting the rgl viewing position by first tilting to front and then spinning to right.
1 | view3dTiltSpin(spin = -20, tilt = 20)
|
spin |
spinning angle in degree |
tilt |
tilting angle in degree |
the tilted but not spinned userMatrix
Thomas Wutzler
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | .tmp.f <- function(){ # wrapped inside function, because it takes long
view3d(fov = 10, zoom = 0.8)
view3dTiltSpin()
plot3d( cube3d(col="green") )
dir <- movie3dRound("testCube")
#avi does not work dir <- movie3dRound("testCube",type="avi") #doees not work
#dir <- movie3dRound("testCube",1/22,type="mpeg", duration=12)
copy2clip(dir) # the directory where the movie was generated
}
.tmp.f.small <- function(){
open3d(windowRect=c(0,0,200,200)+20) # adjust window widht
plot3d( cube3d(col="green"), axes=FALSE )
view3dTiltSpin(spin=60) # and adjust zoom
copy2clip( movie3dRound("testCubeSmooth", 1/24, 6)) # 1/24 seems a real movement
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.