Forums > Jitter

a circular plane (how simple should that be?)

May 7, 2009 | 4:20 am

Hi

I’m an extreme newbie in jitter.

I’ve been on this one for hours. And after searching the forum and trying out different things, I semi give up and come here for help.

Is creating a circular plane doable w. [jit.gl.videoplane]?
I haven’t found how?

Also, i’ve tried selecting a circle shape w. [jit.gl.texture] but then the video’s motion is displayed in a circular manner!

All I want is a circular plane.

OR
maybe even better would be to have a circular (fade to black) shader on top, surrounding of my vid. < - keeping a plane. Then i would send [jit.gl.render] an (@erase_color 0. 0. 0. 1.).

I’m sure this is extremely simple for most if not all of you.

Any help you be greatly appreciated.

Thanks a million

phil


May 7, 2009 | 7:11 am


May 7, 2009 | 4:33 pm

jit.gl.gridshap @shape sphere @scale 1. 1. 0.0001

otherwise, not sure what you are asking.


May 7, 2009 | 5:09 pm

Hi Robtherich

thanks for the reply. here is a patch, hopefully, better displaying what I want.

Thanks again

#P window setfont "Sans Serif" 14.;
#P window linecount 4;
#P comment 289 386 297 196622 Basically , I think all i need is to put a circular shader on top that’s all thanks a lot !;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 29 459 75 196617 jit.window foo;
#P toggle 113 418 15 0;
#P newex 74 417 35 196617 sel 27;
#P newex 29 417 40 196617 key;
#P newex 29 439 91 196617 prepend fullscreen;
#P user ubumenu 451 159 100 196617 0 1 1 0;
#X add auto;
#X add alpha;
#X add luminance;
#X add intensity;
#X add depth;
#X add lumalpha;
#X add rgb;
#X add argb;
#X add uyvy;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P newex 448 183 93 196617 prepend colormode;
#P message 411 89 80 196617 read dozer.mov;
#P message 526 88 27 196617 stop;
#P message 492 87 31 196617 start;
#P toggle 354 68 15 0;
#P newex 354 89 55 196617 metro 20;
#P newex 354 121 103 196617 jit.qt.movie 256 256;
#P comment 370 70 149 196617 • read a movie and start metro.;
#P user jit.pwindow 353 166 66 66 0 1 0 0 1 0;
#P newex 424 211 143 196617 jit.gl.texture foo @name tex2;
#B color 5;
#P newex 203 168 71 196617 prepend shape;
#P user ubumenu 203 142 72 196617 0 1 1 0;
#X add sphere;
#X add torus;
#X add cylinder;
#X add opencylinder;
#X add cube;
#X add opencube;
#X add plane;
#X add circle;
#X prefix_set 0 0
0;
#P number 112 113 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 112 141 54 196617 dim $1 $1;
#P newex 220 194 43 196617 r grimy;
#P user jit.fpsgui 66 219 60 196617 0;
#P newex 22 162 43 196617 jit.qball;
#P number 67 113 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 22 113 15 0;
#P newex 22 139 55 196617 metro 20;
#P newex 22 193 55 196617 t b erase b;
#P newex 203 254 258 196617 jit.gl.gridshape foo @shape sphere @scale 1. 1. 0.0001;
#B color 5;
#P newex 23 360 80 196617 jit.gl.render foo;
#P window setfont "Sans Serif" 14.;
#P window linecount 3;
#P comment 285 309 297 196622 all I want is for my image to be output simply as if it where a cirular plane , that’s all. Not distorted like in this patch.;
#P connect 17 0 15 0;
#P fasten 17 0 14 0 359 144 429 144;
#P connect 25 0 29 0;
#P fasten 28 0 25 0 118 437 34 437;
#P fasten 26 0 27 0 34 436 71 436 71 415 79 415;
#P fasten 27 0 28 0 79 435 110 435 110 415 118 415;
#P fasten 2 0 1 0 208 305 28 305;
#P fasten 3 1 1 0 49 221 28 221;
#P connect 3 0 1 0;
#P connect 5 0 4 0;
#P connect 4 0 7 0;
#P connect 7 0 3 0;
#P connect 3 2 8 0;
#P connect 6 0 4 1;
#P connect 11 0 10 0;
#P fasten 12 1 13 0 239 163 208 163;
#P fasten 9 0 2 0 225 232 208 232;
#P connect 13 0 2 0;
#P fasten 10 0 2 0 117 205 208 205;
#P connect 24 1 23 0;
#P fasten 23 0 14 0 453 203 429 203;
#P fasten 18 0 17 0 359 115 359 115;
#P fasten 22 0 17 0 416 115 359 115;
#P fasten 21 0 17 0 531 115 359 115;
#P fasten 20 0 17 0 497 115 359 115;
#P connect 19 0 18 0;
#P fasten 14 0 2 0 429 241 208 241;
#P window clipboard copycount 31;


May 7, 2009 | 5:50 pm

try @texmap 1 or 3 on your gridshape, and search the forum for the texcoordmagic patch


May 8, 2009 | 1:12 am

Hi robtherich,

Thanks for the hint. I tried your tex_map (0-3) on a circle in [jit.gl.gridshape].< - but it didn't work. What comes closet is tex_map (2) on a sphere. Which is nice, but then you get spherical distortion.

Here let me tweak-change what I want. How do you put a mask on top of a jit.videoplane.

Instead of describing what I want, you can see it the jitter tutorial 1.6 documentation that was included w. max 4.6 on

p.475
gaussian

p.476
lanczossinc

p 479
cubic

So, is there a way to put a vid instead of where is white in the above pictures.

Endless thanks

phil


May 8, 2009 | 2:11 am

I think I’m getting closer to what I want.

So when using the jit.gl.imageunit w. the Gaussian Gradient effect i get the circular mask I want.
The only problem now is: THERE IS NO MORE CLIP TO BE SEEN!!?
How would it be possible to see my clip w. this effect?

W. the spotlight effect you can see still see the clip but the spotlight shape is not circular. < - I want a circular spotlight;-)

I,m sure this is so easy for most of you. A joke even.
But not for me , not @ all.

If anyone feels he can help I would greatly appreciate it.

thanks

phil


May 8, 2009 | 4:49 pm

Hello,
Included with Jitter Recipe 38: BrightLights is a shader called ab.spotmask.jxs. This can be used to create a circular alpha mask for your texture with a feathering option. The recipe can be found here:
http://www.cycling74.com/story/2006/2/17/153427/406

And here is an example of a way to use it in the way you want:

– Pasted Max Patch, click to expand. –

May 8, 2009 | 7:08 pm

Thanks a lot Andrew.

Only problem is, is that i’m on max 4.6. Can you recipe been done in 4.6 ??

thanks again.


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