movieSpin3d: Create a movie by rotating a 3D rgl scene.

movieSpin3dR Documentation

Create a movie by rotating a 3D rgl scene.

Description

movieSpin3d is basically just a wrapper for movie3d(spin3d(axis=axis, rpm = rpm), fps = fps, ...) that sets the duration to the value of '60/rpm-1/fps', which results in a sequence of frames that form a continuous animation when repeated. This is in contrast to setting the duration to the value of 60/rpm, which results in rendering the last frame identical to the first one, thus making the animation non-smooth.

sealso<< rgl::movie3d, play3d

Usage

movieSpin3d(axis, rpm, 
    fps = 5, ...)

Arguments

axis

axis to rotate around

rpm

the speed of rotation (rotations per minute)

fps

frame rate (frames per second)

...

additional arguments passed to movie3d

Author(s)

Tomas Sieger

Examples

##dontrun:
#movieSpin3d(axis=c(1,1,1),rpm=5,fps=4)

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.