Jit.rota question

Sep 19, 2007 at 12:14pm

Jit.rota question

Hi,

I want, using jit.rota, to ‘transpose’ the image (in a feedback patch,
at the same time I am rotating and zooming).

If I use the anchor_x attribute (int) I do not obtain a smooth effect.

What else can I use ?

Can you please explain me the following attributes:

sinoffset_x
sinoffset_y
sinscale_x
sinscale_y

Many thanks

All the best


Alessandro Fogar

http://www.fogar.it

#33737
Sep 20, 2007 at 8:31am

Anyone ?

Please I need this info asap.

All the best


Alessandro Fogar

http://www.fogar.it

2007/9/19, Alessandro Fogar :
> Hi,
>
> I want, using jit.rota, to ‘transpose’ the image (in a feedback patch,
> at the same time I am rotating and zooming).
>
> If I use the anchor_x attribute (int) I do not obtain a smooth effect.
>
> What else can I use ?
>
> Can you please explain me the following attributes:
>
> sinoffset_x
> sinoffset_y
> sinscale_x
> sinscale_y
>
> Many thanks
>
> All the best
>
> –
> Alessandro Fogar
>
> http://www.fogar.it
>

#112780
Sep 20, 2007 at 9:01am

How about using jit.gl.slab and/or videoplanes instead? It will be
both smoother and faster.

wes

#112781
Sep 20, 2007 at 9:19am

Wesley,

I am a beginner in Jitter (not in Max/Msp) so don’t know how to apply
your suggestions.

So I had a working patch and liked to optimize it…

I am already using videoplanes.

This is a part of the patch, hope you can understand the problem and
suggest a solution…

All the best


Alessandro Fogar

http://www.fogar.it

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 880 190 143 9109513 line 0.;
#B color 5;
#P newex 880 168 76 9109513 unpack 1.1 1.1;
#P newex 880 145 101 9109513 r rota1_theta_ramp;
#P newex 75 329 76 9109513 unpack 1.1 1.1;
#P newex 19 306 97 9109513 r rota1_fade_ramp;
#P newex 31 434 40 9109513 line 0.;
#B color 5;
#P newex 613 488 109 9109513 r rota1_movey_value;
#P newex 352 489 109 9109513 r rota1_movex_value;
#P newex 575 370 102 9109513 r rota1_movey_trig;
#P newex 469 370 102 9109513 r rota1_movex_trig;
#P flonum 467 489 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter 0 1 4800;
#X flags 0 0;
#P newobj 469 447 89 9109513 counter 0 1 4800;
#P toggle 469 395 15 0;
#P newex 469 422 52 9109513 metro 10;
#P flonum 573 488 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#N counter 0 1 4800;
#X flags 0 0;
#P newobj 575 446 89 9109513 counter 0 1 4800;
#P toggle 575 394 15 0;
#P newex 575 421 52 9109513 metro 10;
#P message 467 512 67 9109513 anchor_x $1;
#P message 573 515 67 9109513 anchor_y $1;
#P newex 759 147 102 9109513 r rota1_theta_value;
#P newex 504 148 102 9109513 r rota1_zoom_value;
#P newex 19 361 67 9109513 r rota1_cmd;
#P message 501 65 31 9109513 1.33;
#P flonum 262 397 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 136 409 72 9109513 r rota1_scale;
#P newex 136 384 66 9109513 r rota1_trig;
#P newex 155 471 84 9109513 r rota1_position;
#P newex 31 409 68 9109513 r rota1_fade;
#P message 31 460 82 9109513 color 1. 1. 1. $1;
#P window linecount 2;
#P newex 116 525 228 9109513 jit.gl.videoplane sabion @depth_enable 0
@blend_enable 1 @colormode argb @automatic 0;
#P window linecount 1;
#P newex 136 433 85 9109513 pak scale 1. 1. 1.;
#P newex 155 496 95 9109513 pak position 0. 0. 0.;
#P newex 7 134 74 9109513 r rota1_xfade;
#P newex 819 28 64 9109513 r rota1_init;
#P inlet 116 207 15 0;
#P newex 741 28 72 9109513 r rota1_theta;
#P newex 618 29 72 9109513 r rota1_zoom;
#P message 819 52 14 9109513 0;
#P newex 618 149 34 9109513 + 1.1;
#P newex 618 126 59 9109513 * 0.00001;
#N counter 0 1 12000;
#X flags 0 0;
#P newobj 618 102 95 9109513 counter 0 1 12000;
#P toggle 618 50 15 0;
#P newex 618 77 52 9109513 metro 50;
#P newex 742 126 53 9109513 * 0.0003;
#N counter 0 1 12000;
#X flags 0 0;
#P newobj 742 101 95 9109513 counter 0 1 12000;
#P toggle 741 49 15 0;
#P newex 741 76 52 9109513 metro 50;
#P message 483 65 14 9109513 4;
#P message 458 65 23 9109513 0.7;
#P newex 487 28 48 9109513 loadbang;
#P number 375 288 35 9 0 4 3 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 375 313 73 9109513 boundmode $1;
#P flonum 618 174 66 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum;
#P message 618 208 118 9109513 zoom_x $1 , zoom_y $1;
#P flonum 7 168 61 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum[2];
#P message 7 203 89 9109513 xfade $1;
#P flonum 742 176 67 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P objectname flonum[1];
#P message 742 241 87 9109513 theta $1;
#P newex 116 246 233 9109513 jit.xfade @in2_name wow;
#P newex 116 360 319 9109513 jit.rota @anchor_x 320 @anchor_y 240
@out_name wow @interp 1;
#P comment 837 53 100 9109513 inizializza;
#P connect 28 0 6 0;
#P connect 12 0 6 0;
#P connect 6 0 5 0;
#P connect 58 0 56 0;
#P connect 33 0 56 0;
#P connect 56 0 32 0;
#P connect 58 1 56 1;
#P connect 57 0 58 0;
#P connect 26 0 2 0;
#P connect 5 0 2 0;
#P fasten 3 0 1 0 747 346 121 346;
#P fasten 7 0 1 0 623 338 121 338;
#P connect 2 0 1 0;
#P connect 9 0 1 0;
#P connect 43 0 1 0;
#P connect 42 0 1 0;
#P fasten 39 0 31 0 24 391 121 391;
#P connect 1 0 31 0;
#P fasten 35 0 31 0 141 406 121 406;
#P fasten 32 0 31 0 36 498 121 498;
#P fasten 30 0 31 0 141 505 121 505;
#P fasten 29 0 31 0 160 515 121 515;
#P connect 36 0 30 0;
#P connect 34 0 29 0;
#P connect 37 0 30 1;
#P connect 38 0 37 0;
#P connect 13 0 10 0;
#P connect 10 0 9 0;
#P connect 11 0 12 0;
#P connect 50 0 51 0;
#P connect 51 0 43 0;
#P fasten 54 0 43 0 357 509 472 509;
#P connect 52 0 49 0;
#P connect 49 0 48 0;
#P connect 48 0 50 0;
#P connect 11 0 13 0;
#P connect 11 0 38 0;
#P connect 46 0 47 0;
#P connect 47 0 42 0;
#P fasten 55 0 42 0 618 510 578 510;
#P connect 53 0 45 0;
#P connect 45 0 44 0;
#P connect 44 0 46 0;
#P connect 24 0 19 0;
#P connect 19 0 18 0;
#P connect 18 0 20 0;
#P connect 20 0 21 0;
#P connect 21 0 22 0;
#P fasten 40 0 8 0 509 170 623 170;
#P connect 22 0 8 0;
#P connect 8 0 7 0;
#P fasten 23 0 20 2 824 97 665 97;
#P connect 25 0 15 0;
#P connect 15 0 14 0;
#P connect 14 0 16 0;
#P connect 16 0 17 0;
#P fasten 41 0 4 0 764 168 747 168;
#P connect 17 0 4 0;
#P connect 4 0 3 0;
#P connect 61 0 3 0;
#P fasten 23 0 16 2 824 97 789 97;
#P connect 27 0 23 0;
#P connect 59 0 60 0;
#P connect 60 0 61 0;
#P connect 60 1 61 1;
#P window clipboard copycount 62;

#112782
Sep 20, 2007 at 3:17pm

the only way to get a sense of what those messages do is to see them
in action in the help file. if your math is not up to snuff, you’ve
got to see it to understand it.

On Sep 20, 2007, at 4:31 AM, Alessandro Fogar wrote:

> Anyone ?
>
> Please I need this info asap.
>
> All the best
>
> —
> Alessandro Fogar
>
> http://www.fogar.it
>
> 2007/9/19, Alessandro Fogar :
>> Hi,
>>
>> I want, using jit.rota, to ‘transpose’ the image (in a feedback
>> patch,
>> at the same time I am rotating and zooming).
>>
>> If I use the anchor_x attribute (int) I do not obtain a smooth
>> effect.
>>
>> What else can I use ?
>>
>> Can you please explain me the following attributes:
>>
>> sinoffset_x
>> sinoffset_y
>> sinscale_x
>> sinscale_y
>>
>> Many thanks
>>
>> All the best
>>
>> –
>> Alessandro Fogar
>>
>> http://www.fogar.it
>>
>

#112783

You must be logged in to reply to this topic.