Manabu Sakamoto
2012-Jan-21 18:02 UTC
[R] Function movie3d in rgl library resulting in black/blank output
Dear list, I have encountered a problem with the movie3d function in the rgl library where the output movie (gif) or the individual frames (png) are completely black. I have looked on the internet and found a thread titled "movie3d function in the rgl package" posted to the R-help mailing list in 2008 by Dan McGlinn. Apparently the problem was not solved. I could not find a solution anywhere on the internet and am hoping someone on this list will be able to help me. After I plot a 3D scatter plot using plot3d, I use this command to output a gif movie: movie3d(spin3d(axis=c(0,0,1), rpm=4), duration=15, movie="3D-SPIN", convert=TRUE, clean=TRUE, verbose=TRUE, type="gif") and this command to output individual png files: movie3d(spin3d(axis=c(0,0,1), rpm=4), duration=15, movie="3D-SPIN", convert=FALSE, clean=FALSE, verbose=TRUE) Does anyone know what the problem may be and how it can be solved? I am using Windows7 and have ImageMagick installed properly (as far as I can tell)... best regards, Manabu -- Manabu Sakamoto, PhD School of Earth Sciences University of Bristol manabu.sakamoto at gmail.com
Duncan Murdoch
2012-Jan-22 01:57 UTC
[R] Function movie3d in rgl library resulting in black/blank output
On 12-01-21 1:02 PM, Manabu Sakamoto wrote:> Dear list, > > I have encountered a problem with the movie3d function in the rgl > library where the output movie (gif) or the individual frames (png) > are completely black. I have looked on the internet and found a thread > titled "movie3d function in the rgl package" posted to the R-help > mailing list in 2008 by Dan McGlinn. Apparently the problem was not > solved. I could not find a solution anywhere on the internet and am > hoping someone on this list will be able to help me. > > After I plot a 3D scatter plot using plot3d, I use this command to > output a gif movie: > movie3d(spin3d(axis=c(0,0,1), rpm=4), duration=15, movie="3D-SPIN", > convert=TRUE, clean=TRUE, verbose=TRUE, type="gif") > > and this command to output individual png files: > movie3d(spin3d(axis=c(0,0,1), rpm=4), duration=15, movie="3D-SPIN", > convert=FALSE, clean=FALSE, verbose=TRUE) > > Does anyone know what the problem may be and how it can be solved? I > am using Windows7 and have ImageMagick installed properly (as far as I > can tell)... > > best regards, > ManabuDoes rgl.snapshot work for you to create a single frame? Duncan Murdoch