Poor text display in rgl output with dark background

Viewed 566

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:

Default

Output from HTML widget (displayed here in Google Chrome):

HTML

What can I do to correct for this behavior?

1 Answers
Related