When I output an rgl
scene using OpenGL that includes text and a dark background, the text does not display properly.
Sample code:
library(rgl); library(htmlwidgets)
open3d()
bg3d(color = "black")
text3d(0, 0, 0, text = "Text", color = "blue")
saveWidget(rglwidget(), "Example.html")
Output in R's default device:
Output from HTML widget (displayed here in Google Chrome):
What can I do to correct for this behavior?