Databending - Convert raw data into image

grigou's icon

Hello,

I want to do databending with Jitter, but I can't find an efficient way to do it.

I made some images by opening raw files in Photoshop and I want to do the same with Jitter.
I made the file "raw_example.jpg" with Photoshop, and it's exactly this kind of visual I want to achieve with Jitter.

I try to open raw files with sfplay and convert it into image with jit.catch and jit.gl.texture, but the result is not even close to what I made with Photoshop.

Max Patch
Copy patch and select New From Clipboard in Max.

Any idea ?
Thanks !

raw_example.jpg
jpg
grigou's icon

Hello,

I'm still stuck with my raw data conversion. Any clues ?
Is there another way to achieve raw data conversion in Max like the one I made with Photoshop ?

Thanks again for your help !

metamax's icon

This reminds me of something I built by saving each row of a matrix in an audio buffer and playing them back with spectrocope~ in sonogram mode.

grigou's icon

Hello Metamax !
Thanks for you help.

Your matrix was generated by an audio file at first or you created a random matrix ?

Holland Hopson's icon

I got your patch to work by adding a toggle to jit.world. Changing the framesize attribute of jit.catch~ provided some nice variety.

Dario's icon

this patch rules!

grigou's icon

Thanks Holland Hopson.
Using the toggle on jit.world was so simple and clever that I didn't even think to do it !

For now, the result is too much clean. I want something more noisy / dirty like the one I made with Photoshop.
And with jit.gl.videoplane, it's very blurry and ugly.

I'm pretty sure that the resolution is too low, so I increase the dim attribute. It look likes less blurry, but with a huge drop of framerate.
Is it possible to keep hi resolution in fullscreen without losing too much FPS ?

With Photoshop, I can made fixed images, but my will is to make an evolving texture with Max keeping the same noisy visual.
Maybe jit.catch~ is not the good tool for that purpose ?

Max Patch
Copy patch and select New From Clipboard in Max.

This is the new patch :

Rob Ramirez's icon

you could try throwing a jit.scanwrap in there and playing with different dimension values, also try disabling gl.texture filtering (@filter none):

Max Patch
Copy patch and select New From Clipboard in Max.

grigou's icon

Thank you Rob ! It's perfect !
I didn't know jit.scanwrap and the filter attribute.

yaniki's icon

That's a nice topic.

I also rebuilt a bit the previous patch. It's just a sketch, but maybe my method will be useful for dealing with bigger textures.

databendingtotex.maxpat.zip
zip
grigou's icon

Woo !!

Your patch is so great !
Thanks a lot for sharing. I love the visual.
I will study this patch to understand how you made it.

Thank you again

Yoann's icon

oh, I just wanted to bring this post up to see if someone had some new ideas to bring in ;)

grigou's icon

Haha ! Thanks Yoann !
Yeah, there's always a lot of fun to do with glitch and databending !

yaniki's icon

Yeah... I should definitely do something new...