1
$\begingroup$

By default Text has a transparent background. However, combined with other graphics with the opacity option, the text background turns to white and even overrides explicitly defined background.

For example:

Graphics3D[{{Opacity @.5, Cylinder[]}, Text @ Style["Text", Large]}, Boxed -> False]

How can one fix this behavior to display transparent background?

$\endgroup$
  • 1
    $\begingroup$ On 11.1 version it works well. $\endgroup$ – David Baghdasaryan May 12 '17 at 15:48
  • $\begingroup$ I am using 11.1 as well $\endgroup$ – arslancharyev31 May 12 '17 at 15:53
  • 1
    $\begingroup$ Please do not post images of your work, especially when the images display at a size that make them difficult to read. Please post your actual Mathematica code in the form of text that can be copied and pasted into a Mathematica notebook. Without such, it will be difficult to reproduce your problem and to experiment with possible solutions. $\endgroup$ – m_goldberg May 12 '17 at 18:13
  • $\begingroup$ Got it. Added sample code. $\endgroup$ – arslancharyev31 May 12 '17 at 18:33
  • $\begingroup$ Using you sample code, I can not reproduce your problem with V11.0.1 running on OS X 10.10.2. The graphics rendered when I evaluate your code looks exactly like the image you wanted, not like the image you post. $\endgroup$ – m_goldberg May 12 '17 at 18:36
1
$\begingroup$

It turns out that the problem only arises when DirectX is used as a rendering engine. Switching to OpenGL/Mesa fixed the problem in my case.

$\endgroup$
  • $\begingroup$ How do you switch between rendering engines? $\endgroup$ – Alexey Popkov May 13 '17 at 2:39
  • 1
    $\begingroup$ @AlexeyPopkov, the user-friendly way is Edit -> Preferences... -> Advanced tab -> Open Option Inspector button -> expand the 'Graphic Options' branch -> Rendering Options -> 3DRenderingEngine $\endgroup$ – arslancharyev31 May 13 '17 at 11:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.