marius schebella a écrit :
cyrille henry wrote:
marius schebella a écrit :
hey cyrille, thanks a lot! everything is working now!
cool
I also think it is strange that you have to render the last texture (23) before the shader (13).
23 is rendered after 13. what i think is strange is that the last framebuffer can not be computed after rendering to texunit 1 and 2 (gemhead 21 and 22)
it is difficult to tell, whether a frame is delayed by 1, but change 13 to 24, and it still works.
yes, your're right. but then, changing the 23 to 25 does not work.
is there any possibility to influence the pix size other than loading images that have the same dimen as the gemframebuffer?
yes, you can. in your shader, just use texcoord0 * size_frambuffer.xy / size_dummy_image.xy
naa, I don't want to send additional parameters to the shader, rather use a set of images with predefined sizes and swap them.
or use a pix_resize, or any object that can change/ create the size of create a dummy image
cyrille
I guess gemframebuffer dimen will be one of 256*256 or 320*240 or 512*512 or 1024*1024 or maybe some more. this is really a problem on the Pd side, and I would like to keep all the hacks and workarounds inside Pd, then it will work with standard shaders. marius.