4

I get the output that I need from

r = 100000000000;
ParametricPlot3D[r {Cos[ϕ]*Sin[θ], Sin[ϕ]*Sin[θ], Cos[θ]}, {ϕ, 0, 2 π}, {θ, 0, π}, 
  ColorFunction -> Function[{x, y, z}, Glow[GrayLevel[z]]],
  Lighting -> None, Axes -> False, Mesh -> None]

However if r = 1, then the sphere goes black.
Why does it do that, and how to get the correct color despite r = 1?

Output in V11.3 on windows with Intel(R) HD Graphics 5500: enter image description here I think it's a bug now, I tried V11.2 and it worked.

Jens
  • 97,245
  • 7
  • 213
  • 499
MeMyselfI
  • 1,116
  • 5
  • 12

1 Answers1

4

On MacOS 10.13.6 and Mathematica 11.3, I also observed this issue. I was able to fix it by going to the advanced options (Preferences), and setting

"3DRenderingMethod" $\rightarrow$ "BSPTree"

You can find this option by entering it in the search field.

I do think this should be tagged as a bug.

See also Weird behaviour of multiple transparent Raster3D objects in one Graphics3D

Jens
  • 97,245
  • 7
  • 213
  • 499