Forums > Jitter

jit.gl.graph that starts and ends at two given points

December 17, 2006 | 1:22 pm

Dear all, I’m having some mathematic problem using jit.gl.graph.

I have the coordinates of two points (x1,y1) and (x2,y2) and I would like that the jit.gl.graph will start from the first point and will end at the second point.

I think I should use something like "rotatexyz" or "position", isn’t it?
That’s it:

#P user ezdac~ 144 231 188 264 0;
#P toggle 21 159 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 40 277 62 9109513 jit.unpack 2;
#P newex 40 338 296 9109513 jit.gl.graph ai @depth_enable 1 @color 0. 0. 1. 1. @rotatexyz 0. 0. 0.;
#B color 5;
#P newex 7 457 156 9109513 jit.gl.handle ai @inherit_transform 1;
#P newex 21 376 55 9109513 t b erase b;
#P newex 21 433 139 9109513 jit.gl.render ai @depth_enable 1;
#P number 65 160 28 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 21 184 54 9109513 qmetro 23;
#P newex 21 233 106 9109513 jit.catch~ 2 @mode 2;
#P user gain~ 145 131 13 37 158 0 1.071519 7.94321 10.;
#P user gain~ 178 130 13 37 158 0 1.071519 7.94321 10.;
#P message 210 59 33 9109513 loop 1;
#P message 186 59 14 9109513 1;
#P message 145 59 28 9109513 open;
#N sfplay~ 2 120960 0 ;
#P newobj 145 96 77 9109513 sfplay~ 2;
#P hidden newex 903 511 105 9109513 bgcolor 255 230 230;
#P comment 568 77 18 9109513 y2;
#P comment 511 79 18 9109513 x2;
#P comment 457 78 18 9109513 y1;
#P flonum 568 96 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 512 96 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 456 96 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 400 96 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 518 227 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 552 227 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 589 227 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 519 251 86 9109513 pak 0. 0. 0.;
#P flonum 405 227 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 441 227 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 478 227 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 408 252 86 9109513 pak 0. 0. 0.;
#P message 518 275 79 9109513 position $1 $2 $3;
#P message 408 275 86 9109513 rotatexyz $1 $2 $3;
#P newex 400 116 179 9109513 pak 0. 0. 0. 0.;
#P comment 403 80 18 9109513 x1;
#P window setfont "Sans Serif" 14.;
#P comment 454 167 100 9109518 … some stuff…;
#B frgb 255 9 9;
#P window setfont "Sans Serif" 9.;
#P message 16 628 68 9109513 fullscreen $1;
#P toggle 16 605 15 0;
#P newex 16 578 35 9109513 sel 27;
#P newex 16 554 40 9109513 key;
#P newex 16 653 126 9109513 jit.window ai @depthbuffer 1;
#P user panel 385 71 247 230;
#X brgb 255 255 255;
#X frgb 244 10 4;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P window linecount 5;
#P comment 639 75 100 9109513 I would like that the jit.gl.graph will be exactly from the point (x1 , y1) to the point (x2 , y2);
#P connect 6 0 2 0;
#P fasten 5 0 6 0 21 624 21 624;
#P fasten 4 0 5 0 21 601 21 601;
#P fasten 3 0 4 0 21 575 21 575;
#P fasten 33 0 34 0 150 223 26 223;
#P connect 33 0 43 0;
#P fasten 32 0 34 1 183 223 122 223;
#P connect 32 0 43 1;
#P fasten 10 0 40 0 413 313 45 313;
#P fasten 11 0 40 0 523 313 45 313;
#P connect 17 0 16 2;
#P connect 23 0 9 3;
#P connect 18 0 16 1;
#P connect 19 0 16 0;
#P connect 16 0 11 0;
#P connect 22 0 9 2;
#P connect 13 0 12 2;
#P connect 21 0 9 1;
#P connect 14 0 12 1;
#P connect 12 0 10 0;
#P connect 15 0 12 0;
#P connect 20 0 9 0;
#P connect 34 0 38 0;
#P fasten 34 0 41 0 26 255 45 255;
#P connect 28 1 32 0;
#P connect 28 0 33 0;
#P fasten 31 0 28 0 215 86 150 86;
#P connect 29 0 28 0;
#P fasten 30 0 28 0 191 86 150 86;
#P connect 36 0 35 1;
#P connect 41 0 40 0;
#P fasten 38 1 37 0 48 414 26 414;
#P connect 38 0 37 0;
#P fasten 39 0 37 0 12 473 4 473 4 428 26 428;
#P connect 35 0 34 0;
#P fasten 42 0 35 0 26 180 26 180;
#P window clipboard copycount 44;


December 18, 2006 | 2:09 pm

Problem solved :)

Thank you anyway.


December 18, 2006 | 2:54 pm

I need a sonar sensor to work with an interactive video project, where can I
get a USB version and fast!

Merry christmas

richard


December 18, 2006 | 5:33 pm

get this – http://www.create.ucsb.edu/~dano/CUI/
and this http://www.sparkfun.com/commerce/product_info.php?products_id=639
and run!

On 12/18/06, Richard Grehan wrote:
>
> I need a sonar sensor to work with an interactive video project, where can
> I
> get a USB version and fast!
>
> Merry christmas
>
> richard
>
>
>


December 18, 2006 | 6:45 pm

On Dec 18, 2006, at 9:33 AM, yair reshef wrote:

> get this – http://www.create.ucsb.edu/~dano/CUI/
> and this http://www.sparkfun.com/commerce/product_info.php?
> products_id=639

Not to discount PIC programming, but it seems like there’s a lot of
energy surrounding the avr ATMel chips these days. Two great options
for using avr chips in an easy to use integrated HW and SW setup are
the wiring or arduino boards. They both use the wiring/processing
lang/IDE to make C programs compiled with avr-gcc, and downloaded to
the board without the need for a dedicated programmer. The arduino
board is cheaper, but has less program memory and IO ports as the
wiring board has. I just got one this past weekend and had it up and
running in roughly an hour.

http://www.arduino.cc

http://www.sparkfun.com/commerce/product_info.php?products_id=666

http:www.wiring.org

http://www.sparkfun.com/commerce/product_info.php?products_id=744

-Joshua


December 19, 2006 | 1:10 am

not a USB but MIDI output
but…

http://www.ladyada.net/make/midisense/

http://www.ladyada.net/make/midisense/makesensor.html

http://www.parallax.com/detail.asp?product_id=28015

they are coming out with a MIDIsense board that will accommodate the
sonar xducer soon…check the site for more info…

On Dec 18, 2006, at 9:33 AM, yair reshef wrote:

> get this – http://www.create.ucsb.edu/~dano/CUI/
> and this http://www.sparkfun.com/commerce/product_info.php?
> products_id=639
> and run!
>
> On 12/18/06, Richard Grehan wrote:
> I need a sonar sensor to work with an interactive video project,
> where can I
> get a USB version and fast!
>


December 19, 2006 | 10:27 am

Many thanks!

On 18/12/2006 18:45, "Joshua Kit Clayton" wrote:

>
> On Dec 18, 2006, at 9:33 AM, yair reshef wrote:
>
>> get this – http://www.create.ucsb.edu/~dano/CUI/
>> and this http://www.sparkfun.com/commerce/product_info.php?
>> products_id=639
>
> Not to discount PIC programming, but it seems like there’s a lot of
> energy surrounding the avr ATMel chips these days. Two great options
> for using avr chips in an easy to use integrated HW and SW setup are
> the wiring or arduino boards. They both use the wiring/processing
> lang/IDE to make C programs compiled with avr-gcc, and downloaded to
> the board without the need for a dedicated programmer. The arduino
> board is cheaper, but has less program memory and IO ports as the
> wiring board has. I just got one this past weekend and had it up and
> running in roughly an hour.
>
> http://www.arduino.cc
> http://www.sparkfun.com/commerce/product_info.php?products_id=666
>
> http:www.wiring.org
> http://www.sparkfun.com/commerce/product_info.php?products_id=744
>
> -Joshua
>


December 19, 2006 | 10:32 am


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