[sharing is sharing] slitscan

barry threw's icon
Rob Ramirez's icon

ahhh, beautiful.
and so simple yet so mind boggling...

barry threw's icon

Hey, actually, I screwed that patch up.

The dimensions in the first texture should be 1 x 480, not 720 x 480.

Also, try playing with the values in rota, changing them from 1 or 0
to 0.5. Pretty nice effects that way.

b

On Mar 5, 2008, at 12:20 PM, Robert Ramirez wrote:

>
> ahhh, beautiful.
> and so simple yet so mind boggling...

barry threw
Media Art and Technology

San Francisco, CA
Work: 857-544-3967
Email: bthrew (at) gmail (dot) com
Web: www.barrythrew.com

yair reshef's icon

real fun patch, on windows you only get green slit, removing uyvy color
space fixed that for this lowly windows youser

On Thu, Mar 6, 2008 at 12:02 AM, barry threw wrote:

> Hey, actually, I screwed that patch up.
>
> The dimensions in the first texture should be 1 x 480, not 720 x 480.
>
> Also, try playing with the values in rota, changing them from 1 or 0
> to 0.5. Pretty nice effects that way.
>
> b
>
> On Mar 5, 2008, at 12:20 PM, Robert Ramirez wrote:
>
> >
> > ahhh, beautiful.
> > and so simple yet so mind boggling...
>
> barry threw
> Media Art and Technology
>
> San Francisco, CA
> Work: 857-544-3967
> Email: bthrew (at) gmail (dot) com
> Web: www.barrythrew.com
>
>

barry threw's icon
vade's icon

or use the uyvy2rgba shader for cross platform-y uyvy texture upload
speedy goodyness - y -y stuff...

On Mar 5, 2008, at 5:15 PM, yair reshef wrote:

> real fun patch, on windows you only get green slit, removing uyvy
> color space fixed that for this lowly windows youser
>
> On Thu, Mar 6, 2008 at 12:02 AM, barry threw wrote:
> Hey, actually, I screwed that patch up.
>
> The dimensions in the first texture should be 1 x 480, not 720 x 480.
>
> Also, try playing with the values in rota, changing them from 1 or 0
> to 0.5. Pretty nice effects that way.
>
> b
>
> On Mar 5, 2008, at 12:20 PM, Robert Ramirez wrote:
>
> >
> > ahhh, beautiful.
> > and so simple yet so mind boggling...
>
> barry threw
> Media Art and Technology
>
> San Francisco, CA
> Work: 857-544-3967
> Email: bthrew (at) gmail (dot) com
> Web: www.barrythrew.com
>
>

Dg's icon

very strange, nothing appears for me ?

Tyler Nitsch's icon

faster maybe?

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

and the shader

barry threw's icon

Yes, but I can't get it to behave like an actual slitscan for me.

b

On Mar 6, 2008, at 3:57 PM, Tyler Nitsch wrote:

> faster maybe?
>
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 70 194 90 9109513 jit.gl.texture Render;
> #P flonum 289 104 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 245 144 92 9109513 pak param offset 0.;
> #P newex 59 119 195 9109513 jit.gl.slab Render @file
> cc.uyvy2rgba.lite.jxs;
> #P number 477 24 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 178 70 33 9109513 vol 0;
> #P message 147 70 30 9109513 read;
> #B color 6;
> #P newex 59 95 219 9109513 jit.qt.movie 720 480 @colormode uyvy
> @unique 1;
> #P newex 59 171 170 9109513 jit.gl.slab Render @file
> td.still_slide.jxs;
> #P newex 59 223 334 9109513 jit.gl.videoplane Render @interp 1
> @scale 1.333 1. 1. @colormode uyvy;
> #P newex 26 64 86 9109513 r 1_draw_movie;
> #P window linecount 2;
> #P message 439 96 101 9109513 ; 1_draw_movie bang;
> #P user jit.fpsgui 410 160 60 9109513 0;
> #P window linecount 1;
> #N vpatcher 20 74 210 238;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 2;
> #P message 81 109 87 9109513 ; jitter cursor $1;
> #P window linecount 1;
> #P newex 81 89 31 9109513 == 0;
> #P outlet 9 107 15 0;
> #P window linecount 0;
> #P message 9 89 70 9109513 fullscreen $1;
> #P toggle 9 65 15 0;
> #P newex 9 46 38 9109513 sel 27;
> #P newex 9 26 40 9109513 key;
> #P connect 0 0 1 0;
> #P connect 1 0 2 0;
> #P connect 2 0 3 0;
> #P connect 3 0 4 0;
> #P connect 5 0 6 0;
> #P pop;
> #P newobj 410 193 63 9109513 p fullscreen;
> #P newex 410 65 68 9109513 t b b erase;
> #P window linecount 2;
> #P newex 410 212 276 9109513 jit.window Render @floating 1
> @depthbuffer 0 @fsmenubar 0 @fsaa 0 @sync 1 @idlemouse 1 @size 720
> 480;
> #P newex 410 127 319 9109513 jit.gl.render Render @blend_enable 1
> @depth_enable 0 @erase_color 0. 0. 0. 1. @scale 1.333 1 1 @ortho 2
> @camera 0 0 2;
> #P toggle 410 26 15 0;
> #P objectname qmetro;
> #P window linecount 1;
> #P newex 410 45 45 9109513 qmetro 5;
> #P window setfont "Sans Serif" 18.;
> #P comment 12 32 100 9109522 SlitScan;
> #P connect 9 0 12 0;
> #P connect 9 0 11 0;
> #P connect 12 0 16 0;
> #P fasten 14 0 12 0 183 90 64 90;
> #P fasten 13 0 12 0 152 90 64 90;
> #P connect 15 0 1 1;
> #P connect 1 0 5 0;
> #P connect 2 0 1 0;
> #P connect 17 0 11 0;
> #P connect 16 0 11 0;
> #P connect 11 0 10 0;
> #P connect 11 0 19 0;
> #P fasten 19 0 11 1 75 215 241 215 241 163 224 163;
> #P connect 18 0 17 2;
> #P fasten 5 2 3 0 473 90 415 90;
> #P connect 5 0 3 0;
> #P connect 3 0 7 0;
> #P connect 6 0 4 0;
> #P connect 5 1 8 0;
> #P window clipboard copycount 20;
>
> and the shader

barry threw
Media Art and Technology

San Francisco, CA
Work: 857-544-3967
Email: bthrew (at) gmail (dot) com
Web: www.barrythrew.com

Tyler Nitsch's icon

Hey Barry,

The patch I posted recreates the exact effect you posted on my windows machine upon loading. Perhaps I'm missing something or your patch isn't working properly on my machine. My impression was a slitscan samples a scanline of a picture shifts it to the left and then samples the same scanline and keeps shifting. Can you clarify this for me? I really liked your patch and it gave me a bunch of cool ideas for shaders.

mark henrickson's icon

when i run this on my machine the resulting looks as follows... does anyone else get similar results?

mark henrickson

macbook pro core 2 duo 2.33
2 GB RAM
ATI RadeonX1600
256MB VRAM
10.5.2
MaxMsp 4.6.3
Jitter 1.6.3

Wesley Smith's icon
Wesley Smith's icon
Wesley Smith's icon
thierry@thierryfourni's icon
Peter Nyboer's icon

I've been having fun with the tex_plane_t/s and figured out a super simple way of doing slitscan. It may not be the most versatile implementation, since it relies on jit.gl.render to have an erase_color 0 0 0 0 and fsaa 0 on your jit.window. But it's damn simple, that's for sure!!

Peter.

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

frank desben's icon

Hi all,
the patch above uses the shader td.still_slide.jxs

Does someone still have it, or where can I find it?

Thanks!
Frank