Re: [PD] Image from shader back to Gem

2021-03-26 Thread IOhannes m zmölnig
On 2/14/21 21:52, Miller Puckette via Pd-list wrote: I think the question is - within a shader, can you 'snap' an image to a texture so that it doesn't have to go back and forth between the GPU and CPU? I'm curious too... I guess there must be a way to do this... of course that' s

Re: [PD] Image from shader back to Gem

2021-02-15 Thread Jack
Snap a render scene as a texture, [gemframebuffer] is the way to go (for me). You render your scene as usual, just replace the [gemhead] with : [gemhead] | [gemframebuffer] | [translateXYZ 0 0 -4] | ... hop, you can grap the scene below [translateXYZ 0 0 -4] as a texture with the right outlet of

Re: [PD] Image from shader back to Gem

2021-02-15 Thread oliver
should we open a new category there ? or maybe that already exists and i missed it ? anybody else on this list that has some GEM shaders to share ? lot's have already been send on this list! i will recheck the archives. still, i think a central spot on the web containing GEM-ready shaders

Re: [PD] Image from shader back to Gem

2021-02-15 Thread cyrille henry
Le 15/02/2021 à 10:46, oliver a écrit : cyrille henry wrote: What I understand from the original question was how to feed an image generated with a shader to pix_movement. So one need an image, not a texture. I'm afraid pix_snap is the only solution. on a more general note: it would be

Re: [PD] Image from shader back to Gem

2021-02-15 Thread cyrille henry
you can replace [pix_draw] with [pix_texture] and [rectangle 16 9] But I don't think I understand the question. cheers c Le 15/02/2021 à 10:44, Csaba Láng a écrit : I am totally lost, I attach my shader and the patch which I made the screenshot of at the beginning of this thread. Could

Re: [PD] Image from shader back to Gem

2021-02-15 Thread oliver
cyrille henry wrote: What I understand from the original question was how to feed an image generated with a shader to pix_movement. So one need an image, not a texture. I'm afraid pix_snap is the only solution. on a more general note: it would be great to have something like a public

Re: [PD] Image from shader back to Gem

2021-02-15 Thread Csaba Láng
I am totally lost, I attach my shader and the patch which I made the screenshot of at the beginning of this thread. Could someone show me how to achieve the texture on a rectangle 16 9 so I can rotate and crop it and not only as a mask, as it is now in the patch. Probably totally easy just cannot

Re: [PD] Image from shader back to Gem

2021-02-15 Thread cyrille henry
What I understand from the original question was how to feed an image generated with a shader to pix_movement. So one need an image, not a texture. I'm afraid pix_snap is the only solution. Cheers c Le 15/02/2021 à 08:39, IOhannes m zmoelnig a écrit : On 2/14/21 9:52 PM, Miller Puckette via

Re: [PD] Image from shader back to Gem

2021-02-14 Thread IOhannes m zmoelnig
On 2/14/21 9:52 PM, Miller Puckette via Pd-list wrote: I think the question is - within a shader, can you 'snap' an image to a texture so that it doesn't have to go back and forth between the GPU and CPU? I'm curious too... I guess there must be a way to do this... [pix_snap2tex] or,

Re: [PD] Image from shader back to Gem

2021-02-14 Thread Csaba Láng
Thanks Miller, indeed this is exactly what I am looking for. Fighting with pix_snap no images coming to the texture. Is anybody interested in the shader? Should I share the folder? Popesz On Mon, 15 Feb 2021 at 00:30, Miller Puckette via Pd-list < pd-list@lists.iem.at> wrote: > I think the

Re: [PD] Image from shader back to Gem

2021-02-14 Thread Miller Puckette via Pd-list
I think the question is - within a shader, can you 'snap' an image to a texture so that it doesn't have to go back and forth between the GPU and CPU? I'm curious too... I guess there must be a way to do this... cheers Miller On Sun, Feb 14, 2021 at 08:57:19PM +0100, IOhannes m zm??lnig wrote: >

Re: [PD] Image from shader back to Gem

2021-02-14 Thread IOhannes m zmölnig
On 2/14/21 8:17 PM, Csaba Láng wrote: What do you mean? Too much? i think you have lost me. you wrote: > Can it be this too (shader and Gem) somehow connected? which i translated to: > Can I somehow run shaders in Gem? to which i replied (in a rather brusque way) by mentioning the

Re: [PD] Image from shader back to Gem

2021-02-14 Thread Csaba Láng
What do you mean? Too much? On Sun, 14 Feb 2021 at 19:14, IOhannes m zmölnig wrote: > On 2/14/21 5:49 PM, Csaba Láng wrote: > > I used pix_snap before for correction but it was a hand made correction, > > while with the shader I can make it automatic and more accurate.Can it be > > this too

Re: [PD] Image from shader back to Gem

2021-02-14 Thread IOhannes m zmölnig
On 2/14/21 5:49 PM, Csaba Láng wrote: I used pix_snap before for correction but it was a hand made correction, while with the shader I can make it automatic and more accurate.Can it be this too (shader and Gem) somehow connected? [glsl_program] + ([glsl_fragment], [glsl_vertex], ...)? fgmasr

Re: [PD] Image from shader back to Gem

2021-02-14 Thread Csaba Láng
I used pix_snap before for correction but it was a hand made correction, while with the shader I can make it automatic and more accurate.Can it be this too (shader and Gem) somehow connected? On Sun, Feb 14, 2021 at 5:46 PM cyrille henry wrote: > hello, > have a look at pix_snap > (be aware

Re: [PD] Image from shader back to Gem

2021-02-14 Thread cyrille henry
hello, have a look at pix_snap (be aware that this is a relatively slow process) cheers C Le 14/02/2021 à 17:29, Csaba Láng a écrit : Dear List, I am using a camera with a fisheye lens for motion detection. The distortion had to be corrected with a shader (method from Matlab) but now I need