[R] Function movie3d in rgl library resulting in black/blank output

Manabu Sakamoto manabu.sakamoto at gmail.com
Sun Jan 22 16:22:34 CET 2012


Dear Duncan,

Thank you for your reply.

I tried rgl.snapshot like this,

    rgl.snapshot("snapshot.png",fmt="png", top=TRUE)

but got a totally black png file. I'm really not sure what this means;
is there something wrong with some software or setting on my computer?

best regards,
Manabu

On 22 January 2012 01:57, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> 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,
>> Manabu
>
>
> Does rgl.snapshot work for you to create a single frame?
>
> Duncan Murdoch
>



-- 
Manabu Sakamoto, PhD
School of Earth Sciences
University of Bristol
manabu.sakamoto at gmail.com



More information about the R-help mailing list