Nice to meet U, every body...
i would like to be able to translate two series of images separately. I heared about the [separator] or the [pix_separator] but i cannot find how it works.
Someone got a idea?
thx a lot+
-
translateXYZ
-
As far as I know, [separator] is used when you render more than one thing with the same [gemhead]. For example, in recursion you use it like this:
[gemhead]
|
[t a b]
|
[repeat 4]
|
[separator]
|
[t a b]
|
[translateXYZ]
|
[rectangle]Where the bang from the top [t a b] should reset a counter that is banged from the bang of the lower [t a b] and it should get coordinates from a table (or do some equation instead of using a counter) to give input to [translateXYZ].
I think that if you're using separate [gemhead]s, you shouldn't need a [separator].
-
translate_one_by_one - copie.pd
Hi, thank u for the quick answer.
The fact is that i'm already using 2 [gemhead]s with different numbers.
I really can't fix it, i looking all around the net and nothing. I will be great if u or someone could have a deep look on it.
Thx..+ -
sorry but i haven't understood all of what you just aswer .. in your exemple do you render more than one thing ?
thx again -
Here's a patch that demonstrates the use of [separator] along with zexy's [repeat], in the fashion of the ASCII version above.
separator_use.pdYou can set the coordinates of each rectangle (two in this case) by writing values to the corresponding [tabwrite] (first rect will read values at indexes 0).
-
As for your patch and what you want to do, what happens is that you add both images with [pix_add] and render them in the same [rectangle]. When you translate the image, you translate the [rectangle] and since it's only one of them, you can't control the translation of the two images separately.
I guess the way to go is to use the alpha channel of each image to mix them, but render them in different [rectangle]s... -
Hi alexandros
unfortunately..
I tried that, but the thing is that the images are superimposed while in my patch with the [pix_add] the two images are superimposed but you can see both of them. That is to say here nothing.. until there is some "spatial translation" or "temporal translation". (!)
Mainly what i'm not managing to do is to superpose one image and the same image but with the opposite colors; ..and get a black in result.
As you can see in the "Screenshot 2014-12-06 at 13.12.23" when i use alpha] i got a gray scale. In this configuration i got one rectangle for every [gem head].
I also joined "Capture d’écran 2014-12-06 à 12.57.18" ; where i ain’t got no gray scale but a black because here i input the two gemhead]s to a [pix_add] object and i got two [rectangle]s .
If you can see something it’s because one image is a frame before a other frame of the same sequences. ( « a temporal translation ») .
So in short what i looking to do in the patch « translate_one_by_one » is a
« spatial translation » .
A « spatial translation » between two images (and after two or more series of images.)
i therefore need to be able to see the two images at once.
Sorry for my bad Englishthx for your generosity
Cheers -
This post is deleted!