@twilliability This is roughly how one could implement this mapping in #GLSL as a fragment shader. The constants in this example are chosen somewhat arbitrarily.
The camera image comes from a USB web cam and the effect can be calculated in real time. This is a screen shot of my test / development environment.
Conformal map: It is a mathematical mapping of all points (pixels) of a plane (the original camera image) onto a distorted plane (the image published here).
Dipole: The formula is chosen so that 2 poles are created.
The pixel coordinates (x, y) can also be understood as complex numbers. Then it is possible to define the formula for the image mapping using arithmetic for complex numbers.
@twilliability So far, i have always done my graphical tricks during the post-processing stage. In other words: first recorded the material and then develop the distortions later.
@twilliability Now i want to perform some optical tricks directly on the smartphone. First develop a specific filter and then look for motifs along the way where this filter creates a surprising effect. More like a glitch, not for beauty.
I can already do a lot with the colors directly in the smartphone. I still have to rely on post processing for the images mapping.
Add comment