4

An input of 3D graphics of points with specific opacities for each gives a correct output graphic in its worksheet, but its exported graphic with vector format (e.g. eps, pdf, etc) gives wrong opacities. The following is an example of this trouble:

g1 = Graphics3D[
  {
    {Black, Table[{Opacity[(n/100)^2], Point[{n, n, n}]}, {n, 0, 100}]},
    {Green, Table[{Opacity[(n/100)^2], Point[{n, n, 100 - n}]}, {n, 0, 100}]}
  },
  PlotRange -> {{0, 100}, {0, 100}, {0, 100}}
]

This gives the following as its output:

enter image description here

But its exported vector image via the code Export["g1.pdf", Graphics[Inset[g1, Automatic, Automatic, Scaled[1]]]] gives the following:

enter image description here

How do I get a correct, consistent vector image?

Alexey Popkov
  • 61,809
  • 7
  • 149
  • 368
User061829
  • 41
  • 1

0 Answers0