On 12-01-22 10:22 AM, Manabu Sakamoto wrote:
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?

That's what it sounds like. If you are on Windows, check that your graphics drivers are up to date; on other platforms, you may also want to check whether OpenGL is updated. And if that doesn't solve it, post details here about exactly reproducible cases that don't work, the version numbers of rgl, R, your OS, and your graphics hardware. We probably can't help you if it's a driver/hardware problem, but others with the same configuration might be able to see if the problem is reproducible.

Duncan Murdoch


best regards,
Manabu

On 22 January 2012 01:57, Duncan Murdoch<[email protected]>  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





______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to