PSTricks can project .eps images onto 2D planes in 3D. Here's an example from the documentation.

enter image description here

I would like to perform a similar projection with a bitmap image (.png or .jpg). I've tried converted the bitmap to .eps using ImageMagick, but PSTricks doesn't work with the .eps output from ImageMagick.

Has anyone displayed a bitmap in PSTricks?

Parallel question here: Can Asymptote project 2D images in 3D?

1 Answer 1


Yes, this works. Here is an example. Of course you need to come up with your eps files. I created those used in the example below with ImageMagick.

enter image description here

 \usepackage{graphicx} % including PostScript


   \psset{viewpoint=1 1.5 0.5}
   \psset{viewpoint=-1 -1.5 0.5}
   \ThreeDput(-4.5,-4.5,0){\Huge \white 4D space--time}
   \psset{viewpoint=1 1.5 0.5}
   \ThreeDput[normal=0 1 0](2,2,2.75){\includegraphics[scale=0.2]{calabi-yau-space-small.eps}}
    compact\\ space

  • Hmm I tried your snippet with my .eps files (and .png files) and I got a garbled image. How did you create the .eps file? Just convert input.png output.eps? Commented Feb 3, 2017 at 0:30
  • @Talon Chandler: Yes, I used convert. Did you ever view your eps file without including it in a PSTricks picture? (Notice also that I do not use pdflatex, rather I compile to ps and then convert the ps to eps and then to pdf.)
    – user121799
    Commented Feb 3, 2017 at 0:55
  • Excellent that works perfectly. As you guessed, I had an issue in my conversion chain. Commented Feb 3, 2017 at 1:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .