Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

PShapes in P2D

$
0
0

Hi,

My sketch is setup to run under P2D: size(1920,1080,P2D);

I'm using beginRecord(PDF, etc) & endRecord(); to output a PDF from 1 single frame.

If I draw shapes dynamically they appear in the PDF no problem using beginShape(), vertex(), endShape().

However if I create a PShape object and create a shape that way (which is more efficient) then that shape does not appear in the PDF but does appear on screen.

I'm guessing this is something to do with the way the P2D OPENGL works, but just want to see if it's intended behaviour or a "bug".

Any insight to help me understand this better would be great.

(BTW, I realise there is also a PDF mode, but ideally I'd like a screen preview too?)

Thank

Mike


Viewing all articles
Browse latest Browse all 2896

Trending Articles