<div dir="ltr"><div>I am getting closer to the solution, however have a bigger problem than expected.</div><div>As the camera is pointing at the projection surface, I have the classical video feedback effect. As a result, the corrected image is getting bigger and bigger, and I loose more of the image,</div><div>than the fish eye correction was made with the [curve3d].</div><div>how could I move the image after gemframebuffer and move back with the offset of the pix_snap?</div><div>Or what for the offset is made?</div><div>Is there any method to avoid the video feedback in pix_buffer?</div><div>Looking forward to any brilliant idea :)</div><div><br></div><div>Popesz<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 17, 2019 at 10:00 PM Christof Ressi <<a href="mailto:christof.ressi@gmx.at">christof.ressi@gmx.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Verdana;font-size:12px"><div>
<div>Personally, I would always prefer a fragment shader over fiddling with curve3d in GEM :-) This is probably what you want: <a href="https://www.geeks3d.com/20140213/glsl-shader-library-fish-eye-and-dome-and-barrel-distortion-post-processing-filters/5/" target="_blank">https://www.geeks3d.com/20140213/glsl-shader-library-fish-eye-and-dome-and-barrel-distortion-post-processing-filters/5/</a></div>

<div> </div>

<div>It might need some modification depending on the kind of texture and GLSL version your using.</div>

<div> </div>

<div>Christof</div>

<div> </div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px;padding:10px 0px 10px 10px;border-left:2px solid rgb(195,217,229)">
<div style="margin:0px 0px 10px"><b>Gesendet:</b> Mittwoch, 17. Juli 2019 um 21:27 Uhr<br>
<b>Von:</b> "Csaba Láng" <<a href="mailto:langcsaba@gmail.com" target="_blank">langcsaba@gmail.com</a>><br>
<b>An:</b> <a href="mailto:pd-list@lists.iem.at" target="_blank">pd-list@lists.iem.at</a><br>
<b>Betreff:</b> Re: [PD] fish eye camera distortion correction</div>

<div name="quoted-content">
<div>
<div>Thanks for the ideas.</div>
</div>

<div>Luckily I will snap the pix just once a second or two. Hope the processor can handle it.</div>

<div>Which correction is easier, curve3d or the shader?</div>

<div> 
<div class="gmail_quote">
<div class="gmail_attr">On Wed, 17 Jul 2019 at 21:04, Jack <<a href="mailto:jack@rybn.org" target="_blank">jack@rybn.org</a>> wrote:</div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Sure, use a framebuffer with [gemframebuffer] to capture offscreen your<br>
scene.<br>
The problem is to send back your texture produce by [gemframebuffer] in<br>
pix_ domain to use [pix_movement] and [pix_multiblob], fortunately there<br>
is [pix_snap] for this (this process is quite slow, it depends on your<br>
hardware).<br>
Look at :<br>
Help => Gem => examples => 04.pix/ => 26.framebuffer_readback.pd<br>
to see how to use it.<br>
<br>
A note, instead off [curve3d] it is also possible to use shaders (on<br>
fragment) to do the correction of the lens distorsion.<br>
++<br>
<br>
Jack<br>
<br>
<br>
<br>
Le 17/07/2019 à 20:36, Csaba Láng a écrit :<br>
> Looks good, but now a bigger problem came up.<br>
><br>
> My aim is to correct the fish eye distortion for pix_movement and<br>
> pix_multiblob analyses.<br>
> Which means first I have to make the curve3d correction and then use<br>
> those pixels in pix_multiblob.<br>
> Is it possible?<br>
><br>
> On Wed, Jul 17, 2019 at 8:16 PM Johnny Mauser<br>
> <<a href="mailto:joson.android@googlemail.com" target="_blank">joson.android@googlemail.com</a> <mailto:<a href="mailto:joson.android@googlemail.com" target="_blank">joson.android@googlemail.com</a>>> wrote:<br>
><br>
>     Maybe gems [curve3d]? <br>
><br>
>     Csaba Láng <<a href="mailto:langcsaba@gmail.com" target="_blank">langcsaba@gmail.com</a> <mailto:<a href="mailto:langcsaba@gmail.com" target="_blank">langcsaba@gmail.com</a>>><br>
>     schrieb am Mi., 17. Juli 2019, 20:10:<br>
><br>
>         Hi list,<br>
>         is there an easy way to correct fish eye camera image distortion?<br>
>         I think if a vortex kind of tool.<br>
>         Best,<br>
>         Popesz<br>
>         _______________________________________________<br>
>         <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> <mailto:<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a>> mailing list<br>
>         UNSUBSCRIBE and account-management -><br>
>         <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
><br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a></blockquote>
</div>
</div>
_______________________________________________ <a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" target="_blank">https://lists.puredata.info/listinfo/pd-list</a></div>
</div>
</div>
</div></div></div>
</blockquote></div>