Why does my P3D sketch look weird as a PDF (and how to fix this?)

I have a sketch which looks very different in the Processing window than it does as an actual PDF. Would anyone be able to help me get this sketch to render well as a PDF?

1 Like

check again

about the PDF options,

When using beginRaw() and endRaw(), it’s possible to write to either a 2D or 3D renderer. For instance, beginRaw() with the PDF library will write the geometry as flattened triangles and lines.

you could try example from this section:

Using createGraphics() to Create a PDF File

1 Like

How would that be done here? I experimented and couldn’t get it to work

show that code please,
anyway stay close to the example you find in that manual.