Trapezoidal deformation ?


    Feb 08 2008 | 9:24 am
    Hello all,
    Does anyone know how it would be possible to produce a _trapezoidal_ deformation (not pin / barrel) with jit.repos or jt.mxform2d (or a shader...) ?
    The reason is : my camera isn't absolutely in the front axis of the object I want to capture, and I need to compensate this deformation of perspective. I browsed the helps and documentations but perhaps does it exceed my knowledge in maths ;-)
    Thank you very much...
    Thierry
    ---------------------------------------- Thierry Fournier http://www.thierryfournier.net

    • Feb 08 2008 | 12:36 pm
      hello thierry,
      i think the most interesting way to achieve this performance-wise is to move this processing into OpenGL. There geometry transform gives you all trapeze-correction practically for free. when combining this with a nurbs type surface you end up having an extremely flexible lens- correction. moving individual points of the nurb controlgrid lets you manipulate parts of the image independantly. the whole trick is to capture the nurb in a texture for further processing.
      see patch below
      hth
      /*j
      save as:
      OpenGL_lens_correction
    • Feb 08 2008 | 1:58 pm