Panorama warping cylinder


#1

Hello, i would like to create this warp


(source: http://paulbourke.net/stereographics/cylinder/)

i Just found a way to use opencv but i am not super clear

do you know any way to create in real time the cylinder warping image?
I want to project in a cylinder structure

Thanks!


#2

There are several ways to approach this. I think you want to use the Shapes3D library – perhaps the Tube type:

http://lagers.org.uk/s3d4p/index.html

If you want to use shaders, the Shaders tutorial also shows several examples of images on cylinders. The example uses texture on a PShape.

https://processing.org/tutorials/pshader/