Message Boards Message Boards

2
|
8251 Views
|
7 Replies
|
4 Total Likes
View groups...
Share
Share this post:

[?] Issue with label backgrounds in Graphics3D

Posted 7 years ago

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
7 Replies
Posted 7 years ago

This is fixed in MMA 11.1.1

POSTED BY: Hans Milton

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

POSTED BY: Henrik Schachner

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

POSTED BY: Moderation Team
Posted 7 years ago

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

POSTED BY: Alexey Popkov

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
Posted 7 years 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

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
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract