A reference for using P3D is found at https://processing.org/tutorials/p3d/ in a tutorial by Daniel Shiffman.