Is it possible to extend the classes PGraphics/ PGraphics3D?

Hello,

I am currently working with the Keystone library, which enables to map projections onto surfaces. The library uses an offscreen buffer (PGraphics object) to draw the sketch. I’ve written a simple programm, consisting of a costum class and some methodes, which I would like to display on the offscreen. I’ve tried to extend the PGraphic3D class with my methodes and classes inorder to invoke them with the offscreen object, however, I’ve failed implementing them correctly. Consequently, I was wondering, if it is even possible to extend the classes PGraphics/ PGraphics3D ?

Greets,
Teresa

I’ve done to PGraphicsJava2D here. But never tried PGraphics3D yet: :roll_eyes:

1 Like

It’s definitely possible. I have to do this in PraxisLIVE to work around some Processing issues. Make sure you’re setting up the parent, primary and size.

5 Likes

Thank you very much! Your code helped me a lot! :slight_smile:

Thank you for your help. I’ve set up the parent, primary and size. it worked! :slight_smile: