How to plot shaded 3D balls


Any idea to plot shaded 3D balls in GMT? It seems there is no easy way to do it, but AFAIK, PostScript language has some basic supports for shading. Can GMT support it in the future?

1 Like

Do you want these shaded balls to appear on a map. Or just a single shaded ball?

It occurs to me that the Earth is a “ball”, so I can envisage how a global map projection (e.g. orthographic or a perspective projection) could have shading added to it (and simply leave off the coastlines).

grdimage with shadings may work, but I believe that’s the hard way. I expect to be able to plot the 3d balls just like plotting circles.

I’m guessing the shading on the 3D balls will represent some sort of data? Maybe make a collection of all the possible shaded balls as raster images, and overlay the appropriate ones with the image module?