[GEM-dev] 2textures + gemframebuffer

cyrille henry cyrille.henry at la-kitchen.fr
Sun Mar 30 19:38:04 CEST 2008



marius schebella a écrit :
> cyrille henry wrote:
> 
>> a workaround is to use a dummy image :
>> [gemhead]
>>  |
>> [shader..]   |       [pix_image] [from_another_frambuffer]
>>  |          /
>> [pix_texture]
>>
>> you'll then use the texture coordinate of the image you load, but this 
>> image is replaced by the the one from the framebuffer.
> 
> thanks, I am not sure if I understand this.
> where exactly do I have to put the pix_image?
> I tried
> [gemhead]
>   |
> [shader..]
>   |
> [pix_image] [from_another_framebuffer]
>   |          /
> [pix_texture]
> 
> but that way, the pix_texture is always using the dummy image and not 
> the framebuffer.
oups, yes. your right.
solution is more complex than that.

look at example 06 in 10.glsl gem example folder.

(a patch is better than any explanation...)

cyrille


> marius.
> 
> _______________________________________________
> GEM-dev mailing list
> GEM-dev at iem.at
> http://lists.puredata.info/listinfo/gem-dev
> 
> 




More information about the GEM-dev mailing list