[PD] gem, shader and framebuffer
marius schebella
marius.schebella at gmail.com
Sat Dec 8 19:20:24 CET 2007
you have to attach a mode 1 to the left texture.
osx by default uses mode 0 (recangular)
and then set the mode for the framebuffer and the texture to 1,
or, change all sample2d to sample2dRect
marius.
vade wrote:
> Thank you Cyrille - id love for this to work, but alas;
>
> Under OS X 10.5.1 with PD 0.40.3-extended 20071117 I only see the
> square, no sphere:
>
> http://abstrakt.vade.info/ILOVETHEPDLIST/gem_shader_framebuffer.jpg
>
> Ill try playing with it to see what I can get.
>
> Thanks a lot!
>
> On Dec 8, 2007, at 9:50 AM, cyrille henry wrote:
>
>> hello,
>> In the recent discution on this list regarding gem an shader, i read
>> that shader could not be used with framebuffer.
>> i did not realize when i read this (and i can't find it anymore on
>> the archieve). in fact it is not true.
>> shader has to be loaded before the framebuffer objet but it work.
>>
>> here is an exemple of how to use a shader and render on the
>> framebuffer and then using the framebuffer as a texture send to an
>> other shader.
>>
>> hope that help
>>
>> Cyrille
>>
>>
>> <
>> shader_and_framebuffer
>> .zip>_______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>
More information about the Pd-list
mailing list