Hi,
Simple question, how to get an image in a DAT with all pixels in 4 singles rows (r,g,b, alpha) instead of having r0, r1, r2 etc… ?
I have a lack of knowledge in Top to Chop and Chop to dat…
the purpose is to drive a grid with many forms and to control row/column animations, and finally each form…
I use geometry instancing and need an array to control each points/instances of my grid…
Cheers
Sebastien
Do you even need to go to the DAT stage? DAT Tables with a lot of information a slow to update, you’re better of going from TOP to CHOP and staying CHOPs, unless you specifically need some DAT functionality.
I do not really need the DAT steps, that’s true… but i would like to have a chop with only four channels (rgba) and all pixels inside.
the top to chop box do not propose that behaviour, i always get series of channels (r0,g0,b0 + r1,b1,g1 + etc…) , each serie corresponding to a pixel row.
I think there a way to join all channels together but i don’t know how…
Hmm I’m not sure I understand. When you make a TOP to CHOP, by default it gives you 4 channels with all the pixels as samples of the channel. Can you upload your project?
You can select all of the red, green, and blue channels using wild cards in several select chops then use a shuffle chop after each of these to sequence all channels (putting all the rows into one long row)
then merge those back together and rename to r/g/b/a.
This can get super expensive depending on how big your image is, check the attached file and see if that helps any!
imageToChop.toe (4.75 KB)
@elburz :
TOPtoCHOP does it as I expected if one single row is selected,
but in case of full image there is a indexed bunch of 4 channels for each row.
Edit : Well, i got it. Shuffle is the way. Markus did some help in this post :
[url]Change point colors individually - Beginners - TouchDesigner forum