[?] Issue with label backgrounds in Graphics3D

A new, undesired, “feature” in MMA 11.1 is that labels in Graphics3D seems to always be rendered against a white background. These screenshots below are from a recent Demonstration by Izidor Hafner

MMA 10.4

MMA 11.1

2 Likes

Seems fine to me on

In[1]:= $Version
Out[1]= "11.1.0 for Mac OS X x86 (64-bit) (March 13, 2017)"

can you post actual minimal code and system info?

Here is a code example

spherePlot = Graphics3D[{
  RGBColor[0, 0.74, 0.91], Opacity[0.7], Sphere[{0, 0, 0}, 0.998]
}];

labelPlot = Graphics3D[
  Style[{
    Text["A", {Cos[60 \[Degree]], 0, Sin[60 \[Degree]]}],
    Text["B", {Cos[45 \[Degree]], Sin[-45 \[Degree]], 0}]
    }, "Panel", 20, Background -> None
  ]
];

Show[
  spherePlot,
  labelPlot,
  Boxed -> False
]

Comparision (dont have 11.0.1 installed anymore):

In[4]:= $Version
Out[4]= "10.4.1 for Microsoft Windows (64-bit) (April 11, 2016)"

In[1]:= $Version
Out[1]= "11.1.0 for Microsoft Windows (64-bit) (March 13, 2017)"

Edit: If the Opacity directive is removed, or set to 1, the labels renders as expected

1 Like

Works fine for me in v11.1 on mac. Might be a Windows issue. Try setting an explicit background option for Text and Style.

Thanks for bringing this to our attention, we are looking into this.

Just for completeness: Works fine on "11.1.0 for Linux x86 (64-bit) (March 13, 2017)".

Probably this new-in-11.1 bug is related: http://mathematica.stackexchange.com/q/140437/280

This is fixed in MMA 11.1.1

1 Like