Rgl.postscript when rgl.useNULL = TRUE

Shouldn't rgl.postscript () be used for a headless server, i.e. when the parameters (rgl.useNULL = TRUE)? I know rgl.snapshot () will not work.

library(rgl)
options(rgl.useNULL = TRUE)
open3d()
x <- sort(rnorm(1000))
y <- rnorm(1000)
z <- rnorm(1000) + atan2(x, y)
plot3d(x, y, z, col = rainbow(1000))
rgl.postscript("test.pdf",fmt="pdf")

This gives me "In rgl.postscript (" test.pdf ", fmt =" pdf "): with Postscript error."

+4
source share
1 answer

In some cases, this can be done, but at present it is not. One of the problems is that if rgl starts with a null device, it does not even bind to OpenGL functions, and rgl.postscript () uses some of them.

: , " " - , . , , (, ), .

Xvfb " ". , , , rgl.snapshot. , rgl.postscript .

, WebGL, . , .

+3

All Articles