Now that I've put a [pix_image] with an image, I can see the image correctly.
However,
beginning) and I can't understand why 2) Changing the uniform variable "curtex" with the [curtext...( message does not work (which did without rectangle textures).
The images have now 3 different sizes, but before I can test whether I get the results I expect or not, I am stuck with these 2 problems which don't make sense to me.
Anybody can see what's wrong in the patch or shader?
thanks m.
cyrille henry escribió:
there is no pix_image for the shader pix_texture. so there is no coordinate : gl_MultiTexCoord0 is not initialised.
c
Matteo Sisti Sette a écrit :
Hi,
I must be stupid or something. I can't see any relevant difference between the attached patch (and its shader) and the example "01 simple texture" in the "10 GLSL" folder.
However, the abovementioned example works fine here, while the attached example shows up as a all-one-color square (probably the color of one corner pixel of the image).
It looks much like an attempt to use normalized coordinates (0..1) where whatevertheyarecalled coordinates are expected (0..width,0..height). However, "my" shader seems identical to Cyrille's one and I'm sending the [rectangle 1( message to all textures, so I can't understand why one works while the other doesn't...
It must be right in front of my eyes but I don't see it.
(oh you need img1,2,3.jpg from the example folder to test it)
thanks m.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list