Forums > Jitter

Xfade PNG files

October 1, 2008 | 9:05 pm

Hi.
I try to crossfade png files (still version)
Is fpic the only object to read a png properly ? (It’s ok when I stack fpic objects but can’t play with opacity)
If I read png with jit.qt.movie… it’s Waterloo – and I’m french !
Do I miss options to define first ?
I can’t find an open door in open gl either (textures ?)
please where’s the way ? I’m lost.
tank you
Charles


October 2, 2008 | 7:14 am

Did you look at jitter tutorials?
The first few ones explain crossfading.
You should start here …


October 2, 2008 | 8:42 am

Thanx but problem is not xfade, it’s png


October 2, 2008 | 10:06 am

So What? ;)

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 189 60 48 196617 loadbang;
#P toggle 189 85 15 0;
#P newex 189 106 52 196617 metro 66;
#P newex 323 276 86 196617 scale -1. 1. 0. 1.;
#P user jit.pwindow 165 401 82 62 0 1 0 0 1 0;
#P newex 242 187 129 196617 jit.matrix 4 char 320 240;
#P flonum 323 297 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 323 256 76 196617 snapshot~ 100;
#P user ezdac~ 455 308 499 341 0;
#P newex 323 235 66 196617 cycle~ 0.1;
#P message 323 318 50 196617 xfade $1;
#P newex 182 351 49 196617 jit.xfade;
#P message 97 157 94 196617 importmovie , bang;
#P newex 97 187 129 196617 jit.matrix 4 char 320 240;
#P connect 7 0 3 0;
#P connect 10 0 7 0;
#P connect 6 0 10 0;
#P connect 4 0 6 0;
#P fasten 1 0 8 0 102 179 247 179;
#P connect 11 0 0 0;
#P connect 11 0 8 0;
#P connect 8 0 2 1;
#P connect 12 0 11 0;
#P connect 13 0 12 0;
#P connect 3 0 2 0;
#P connect 0 0 2 0;
#P connect 2 0 9 0;
#P connect 1 0 0 0;
#P window clipboard copycount 14;


October 2, 2008 | 4:24 pm

That’s exactly what I’m talking about.
import movie does not read properly a .png
Try to open the attached file in photoshop or with fpic and then with jit.qt.movie or with the patch you sent and you’ll see.
Thanks anyway.
Does someone have a clue ?


October 2, 2008 | 7:24 pm

it displays your image fine. your image has an alpha channel which means you need to use it with jit.alphablend (or something similar). if you want it to have a solid background, then you need to give it one in photoshop or whatever.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 133 227 70 196617 jit.alphablend;
#B color 5;
#P message 275 130 83 196617 read dishes.mov;
#P newex 211 185 103 196617 jit.qt.movie 320 240;
#B color 5;
#P user jit.pwindow 132 307 82 62 0 1 0 0 1 0;
#P flonum 208 71 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 208 91 42 196617 rate $1;
#P message 268 71 28 196617 read;
#P flonum 167 71 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 133 71 15 0;
#P newex 133 91 52 196617 metro 20;
#P newex 133 128 103 196617 jit.qt.movie 320 240;
#B color 5;
#P fasten 1 0 0 0 138 121 138 121;
#P connect 1 0 8 0;
#P connect 10 0 7 0;
#P connect 0 0 10 0;
#P connect 8 0 10 1;
#P connect 2 0 1 0;
#P connect 3 0 1 1;
#P connect 9 0 8 0;
#P connect 6 0 5 0;
#P fasten 4 0 0 0 273 118 138 118;
#P fasten 5 0 0 0 213 118 138 118;
#P window clipboard copycount 11;


October 3, 2008 | 11:34 am

It’s Ok now.
Thank you everybody.

– Pasted Max Patch, click to expand. –

Viewing 7 posts - 1 through 7 (of 7 total)