Message Boards Message Boards

[✓] Issue with label backgrounds in Graphics3D

GROUPS:

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
enter image description here

MMA 11.1
enter image description here

POSTED BY: Hans Milton
Answer
1 month ago

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?

enter image description here

POSTED BY: Sam Carrettie
Answer
1 month ago

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)"

enter image description here

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

enter image description here

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

POSTED BY: Hans Milton
Answer
1 month ago

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

POSTED BY: Sander Huisman
Answer
1 month ago

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

POSTED BY: Moderation Team
Answer
1 month ago

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

POSTED BY: Henrik Schachner
Answer
1 month ago

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

POSTED BY: Alexey Popkov
Answer
1 month ago

This is fixed in MMA 11.1.1

POSTED BY: Hans Milton
Answer
2 days ago

Group Abstract Group Abstract