[PD] texunit, gemframebugger and pixsnap - was: Re: [GEM-dev] gl stack underflow

Matteo Sisti Sette matteosistisette at gmail.com
Fri Jan 1 18:34:07 CET 2010


Hi,

I have to use some shaders that blend multiple textures; the only way I 
know to select which textures to use within a shader is to "assign" them 
a "texunit" (dunnow if the terminology is correct) by sending a [texunit 
N( messge to a [pix_texture] object so that in the shader I access that 
texture by the number it has been assigned.

Now, in my patch I also have one [gemframebuffer] object, two 
[pix_snap]s and a [pix_write].

I have understood that gemframebuffer also use a texunit and that 
messing with texunits causes inconsistencies (I get stack 
over/underflows and weird texture mess)

So I have sent it a [texunit ...( message with a number that is not in 
conflict with any of the other textures,
but I still have problems.

I suspect [pix_snap] is also related: is that so? Can I send a texunit 
message to pix_snap also? And what about pix_write?
Can I use any arbitrary numbers provided I avoid conflicts?

Thanks
m.


Matteo Sisti Sette escribió:
> Wow wow wow!!!
> 
> It seems my underflow problem (now I was getting both underflows and 
> overflows) is in some way related to the use of texunits AND 
> [gemframebuffer]s.
> 


-- 
Matteo Sisti Sette
matteosistisette at gmail.com
http://www.matteosistisette.com




More information about the Pd-list mailing list