Using processing for the HTC Vive

Hello everyone,

I have a HTC Vive and am interested in creating processing sketches to use in VR.
I found a great library that does exactly that:

It has been great so far but I found have found it be quite limited with a lot less code than I would have expected.
What I want to do in the HTC Vive is to use a barrel distortion so I can fix the pincushion distortion vr devices have. Here is a link to what I mean:
And a solution to lens distortion:

I have found another library that uses the barrel distortion - Camera3D

However this can only be used for the Oculus Rift and Google cardboard, and both Camera3D and Vive.p5 librarys wont work together as they both need to control the camera.

So from what I have researched this problem has not been done on the HTC Vive yet in processing.
I am not an expert in processing so any help or direction on how to implement this barrel distortion would be great!

I also found the display code for the HTC Vive, which may help:

If you post your question to multiple sites, please link between the posts.

This question has also been asked here: