[GEM-dev] 2textures + gemframebuffer

marius schebella marius.schebella at gmail.com
Mon Mar 31 00:43:14 CEST 2008


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.

>> 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. 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.




More information about the GEM-dev mailing list