Forums > Jitter

xray.jit.crossproduct help

January 13, 2008 | 9:52 pm

Hey yall

I am trying to get a handle on this xray.jit stuff. I would like to figure out how to do something like this (just the visuals not the lemur stuff): http://www.youtube.com/watch?v=ZvKOm7a8uoQ

how is the crossproduct object used to manipulate the shapes surface?

Or do I need to manipulate a shader?
Heres what I have so far:

max v2;
#N vpatcher 20 266 958 823;
#P origin 0 -14;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 294 575 66 9109513 prepend_color;
#P user ezdac~ 490 163 534 196 0;
#P message 586 221 27 9109513 start;
#P newex 489 204 63 9109513 spigot~ audio;
#P message 682 204 48 9109513 soc audio;
#P message 648 222 26 9109513 stop;
#P message 634 204 26 9109513 read;
#P newex 641 247 55 9109513 jit.qt.movie;
#P user jit.pwindow 670 479 154 18 0 1 0 0 1 0;
#P toggle 519 249 15 0;
#P newex 671 396 33 9109513 edge~;
#P newex 671 372 29 9109513 < ~ 0.;
#P newex 668 345 33 9109513 delta~;
#P newex 671 424 185 9109513 jit.matrix amplituder 1 float32 512 1;
#P newex 519 366 124 9109513 jit.poke~ amplituder 1 0;
#P newex 519 273 31 9109513 adc~;
#P newex 519 334 60 9109513 cartopol~;
#P newex 519 303 87 9109513 fft~ 512 512 0;
#P window linecount 2;
#P comment 688 448 100 9109513 amplitude values come out here;
#P window linecount 1;
#P newex 514 553 89 9109513 jit.catch~ @mode 3;
#P user jit.fpsgui 173 562 60 9109513 3;
#P newex 15 513 108 9109513 t l b;
#B color 5;
#P user jit.pwindow 133 523 154 18 0 1 0 0 1 0;
#P newex 114 497 90 9109513 jit.matrix amplituder;
#P window linecount 2;
#P comment 306 490 100 9109513 amplitude values come out here;
#P window linecount 1;
#P newex 15 492 44 9109513 jit.matrix;
#B color 5;
#P newex 1 164 30 9109513 t b b;
#P window setfont "Sans Serif" 12.;
#P comment 678 580 137 9109516 smoother drop and kick;
#P window setfont "Sans Serif" 9.;
#P newex 514 580 162 9109513 jit.slide @slide_up 1. @slide_down 4.;
#P newex 139 156 48 9109513 loadbang;
#P newex 17 22 48 9109513 loadbang;
#P window setfont "Sans Serif" 10.;
#P comment 546 133 133 9109514 [first inlet , second inlet];
#B frgb 133 131 115;
#P comment 531 87 216 9109514 takes 2 3-plane float32 , float64 matrices;
#B frgb 178 180 167;
#P comment 566 160 108 9109514 1 = normalization on;
#B frgb 133 131 115;
#P comment 531 103 57 9109514 attributes:;
#B frgb 178 180 167;
#P comment 566 146 109 9109514 0 = normalization off;
#B frgb 133 131 115;
#P comment 531 119 118 9109514 -normalize [2] (0 , 1);
#B frgb 133 131 115;
#P window setfont "Sans Serif" 20.;
#P comment 528 35 202 9109524 xray.jit.crossproduct;
#B frgb 184 201 229;
#P window setfont "Sans Serif" 10.;
#P window linecount 2;
#P comment 531 59 216 9109514 calculates the crossproduct of 2 vectors starting at the origin;
#B frgb 178 180 167;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 16 546 108 9109513 jit.op @op * @val 0.2;
#P newex 251 156 27 9109513 t b l;
#P user ubumenu 101 137 311 9109513 0 1 1 0;
#X add "snorm[0]" "snorm[1]" "1-hypot(snorm[0], snorm[1])";
#X add "snorm[0]" "snorm[1]" "cos(snorm[0]*PI)*cos(snorm[1]*PI)";
#X add "snorm[0]" "snorm[1]" "0";
#X add "snorm[0]" "snorm[1]" " noise.gradient(snorm[0]*2, snorm[1]*2,
@seed 313)";
#X prefix_set 1 0 expr 0;
#X pattrmode 1;
#P newex 16 355 30 9109513 t b b;
#P newex 153 381 70 9109513 jit.matrix P3;
#P newex 16 381 70 9109513 jit.matrix P2;
#P newex 88 295 70 9109513 jit.matrix P2;
#P newex 52 315 70 9109513 jit.matrix P1;
#P newex 16 335 70 9109513 jit.matrix P3;
#P newex 16 567 133 9109513 jit.op @op + @in2_name P1;
#P newex 16 589 135 9109513 jit.multiplex @in2_name P1;
#P newex 153 402 201 9109513 jit.op @op – @in2_name P1 @out_name V1;
#P newex 16 402 132 9109513 jit.op @op – @in2_name P1;
#P newex 16 610 223 9109513 jit.gl.mesh xproduct @draw_triquads @color 1 0 0 1;
#P newex 16 430 250 9109513 xray.jit.crossproduct @normalize 1 1 @in2_name V1;
#B color 5;
#P newex 16 274 118 9109513 jit.scissors @columns 3;
#P newex 139 274 207 9109513 jit.gl.mesh xproduct @draw_mode triangles;
#P newex 139 247 85 9109513 xray.jit.grid2tri;
#P button 139 180 15 0;
#P newex 139 198 130 9109513 jit.matrix 3 float32 20 20;
#P newex 139 223 341 9109513 jit.expr @expr "snorm[0]" "snorm[1]" "1-hypot(snorm[0]\, snorm[1])";
#P newex 119 62 206 9109513 jit.window xproduct @depthbuffer 1 @floating 1;
#P message 80 62 34 9109513 reset;
#P newex 80 83 396 9109513 jit.gl.handle xproduct @inherit_transform 1 @position 0 0 -1.18 @rotate -22.8 1 0 0;
#P toggle 17 43 15 0;
#P newex 17 62 57 9109513 qmetro 60;
#P newex 17 83 53 9109513 t b b erase;
#P newex 17 108 296 9109513 jit.gl.render xproduct @position 0 0 -1.18@rotate – 22.8 1 0 0;
#P user panel 13 427 256 23;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P comment 64 456 147 9109513 no need to reprocess every bang;
#P connect 3 1 42 0;
#P connect 15 0 43 0;
#P fasten 42 0 43 0 6 452 20 452;
#P connect 43 0 47 0;
#P fasten 12 0 14 0 144 268 21 268;
#P connect 14 0 21 0;
#P connect 21 0 26 0;
#P connect 26 0 24 0;
#P connect 24 0 17 0;
#P connect 17 0 15 0;
#P connect 47 0 29 0;
#P connect 29 0 20 0;
#P connect 20 0 19 0;
#P connect 68 0 16 0;
#P connect 19 0 16 0;
#P connect 38 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 3 0;
#P fasten 6 0 2 0 85 107 22 107;
#P fasten 3 0 2 0 22 104 22 104;
#P connect 3 2 2 0;
#P connect 14 1 22 0;
#P connect 7 0 6 0;
#P connect 14 2 23 0;
#P connect 47 1 45 0;
#P connect 45 0 29 1;
#P fasten 45 0 46 0 119 519 139 519;
#P connect 39 0 11 0;
#P fasten 28 0 11 0 256 176 144 176;
#P connect 11 0 10 0;
#P fasten 28 1 9 0 273 219 144 219;
#P connect 10 0 9 0;
#P connect 9 0 12 0;
#P fasten 12 0 13 0 144 268 144 268;
#P fasten 26 1 25 0 41 376 158 376;
#P connect 25 0 18 0;
#P fasten 12 0 13 3 144 268 216 268;
#P connect 27 1 28 0;
#P fasten 18 0 15 1 158 423 261 423;
#P connect 65 0 67 0;
#P connect 59 0 53 0;
#P connect 65 0 51 0;
#P connect 53 0 51 0;
#P connect 51 0 52 0;
#P connect 52 0 54 0;
#P connect 65 1 67 1;
#P connect 51 1 52 1;
#P connect 51 2 54 1;
#P connect 62 0 61 0;
#P connect 63 0 61 0;
#P connect 64 0 61 0;
#P connect 66 0 61 0;
#P connect 51 2 56 0;
#P connect 56 0 57 0;
#P connect 57 0 58 0;
#P connect 58 0 55 0;
#P connect 55 0 60 0;

thanx


January 13, 2008 | 10:17 pm

Well,
In the video they’re using a sphere with no lighting whatsoever. You
can just display along the vector from the sphere surface to its
center either with simple matrix math or in a shader. I don’t think
you need the xproduct for sphere displacement.

wes

On Jan 13, 2008 1:52 PM, Mike wrote:
>
> Hey yall
>
> I am trying to get a handle on this xray.jit stuff. I would like to figure out how to do something like this (just the visuals not the lemur stuff): http://www.youtube.com/watch?v=ZvKOm7a8uoQ
>
> how is the crossproduct object used to manipulate the shapes surface?
>
> Or do I need to manipulate a shader?
> Heres what I have so far:
>
>
> max v2;
> #N vpatcher 20 266 958 823;
> #P origin 0 -14;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P message 294 575 66 9109513 prepend_color;
> #P user ezdac~ 490 163 534 196 0;
> #P message 586 221 27 9109513 start;
> #P newex 489 204 63 9109513 spigot~ audio;
> #P message 682 204 48 9109513 soc audio;
> #P message 648 222 26 9109513 stop;
> #P message 634 204 26 9109513 read;
> #P newex 641 247 55 9109513 jit.qt.movie;
> #P user jit.pwindow 670 479 154 18 0 1 0 0 1 0;
> #P toggle 519 249 15 0;
> #P newex 671 396 33 9109513 edge~;
> #P newex 671 372 29 9109513 < ~ 0.;
> #P newex 668 345 33 9109513 delta~;
> #P newex 671 424 185 9109513 jit.matrix amplituder 1 float32 512 1;
> #P newex 519 366 124 9109513 jit.poke~ amplituder 1 0;
> #P newex 519 273 31 9109513 adc~;
> #P newex 519 334 60 9109513 cartopol~;
> #P newex 519 303 87 9109513 fft~ 512 512 0;
> #P window linecount 2;
> #P comment 688 448 100 9109513 amplitude values come out here;
> #P window linecount 1;
> #P newex 514 553 89 9109513 jit.catch~ @mode 3;
> #P user jit.fpsgui 173 562 60 9109513 3;
> #P newex 15 513 108 9109513 t l b;
> #B color 5;
> #P user jit.pwindow 133 523 154 18 0 1 0 0 1 0;
> #P newex 114 497 90 9109513 jit.matrix amplituder;
> #P window linecount 2;
> #P comment 306 490 100 9109513 amplitude values come out here;
> #P window linecount 1;
> #P newex 15 492 44 9109513 jit.matrix;
> #B color 5;
> #P newex 1 164 30 9109513 t b b;
> #P window setfont "Sans Serif" 12.;
> #P comment 678 580 137 9109516 smoother drop and kick;
> #P window setfont "Sans Serif" 9.;
> #P newex 514 580 162 9109513 jit.slide @slide_up 1. @slide_down 4.;
> #P newex 139 156 48 9109513 loadbang;
> #P newex 17 22 48 9109513 loadbang;
> #P window setfont "Sans Serif" 10.;
> #P comment 546 133 133 9109514 [first inlet , second inlet];
> #B frgb 133 131 115;
> #P comment 531 87 216 9109514 takes 2 3-plane float32 , float64 matrices;
> #B frgb 178 180 167;
> #P comment 566 160 108 9109514 1 = normalization on;
> #B frgb 133 131 115;
> #P comment 531 103 57 9109514 attributes:;
> #B frgb 178 180 167;
> #P comment 566 146 109 9109514 0 = normalization off;
> #B frgb 133 131 115;
> #P comment 531 119 118 9109514 -normalize [2] (0 , 1);
> #B frgb 133 131 115;
> #P window setfont "Sans Serif" 20.;
> #P comment 528 35 202 9109524 xray.jit.crossproduct;
> #B frgb 184 201 229;
> #P window setfont "Sans Serif" 10.;
> #P window linecount 2;
> #P comment 531 59 216 9109514 calculates the crossproduct of 2 vectors starting at the origin;
> #B frgb 178 180 167;
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 16 546 108 9109513 jit.op @op * @val 0.2;
> #P newex 251 156 27 9109513 t b l;
> #P user ubumenu 101 137 311 9109513 0 1 1 0;
> #X add "snorm[0]" "snorm[1]" "1-hypot(snorm[0], snorm[1])";
> #X add "snorm[0]" "snorm[1]" "cos(snorm[0]*PI)*cos(snorm[1]*PI)";
> #X add "snorm[0]" "snorm[1]" "0";
> #X add "snorm[0]" "snorm[1]" " noise.gradient(snorm[0]*2, snorm[1]*2,
> @seed 313)";
> #X prefix_set 1 0 expr 0;
> #X pattrmode 1;
> #P newex 16 355 30 9109513 t b b;
> #P newex 153 381 70 9109513 jit.matrix P3;
> #P newex 16 381 70 9109513 jit.matrix P2;
> #P newex 88 295 70 9109513 jit.matrix P2;
> #P newex 52 315 70 9109513 jit.matrix P1;
> #P newex 16 335 70 9109513 jit.matrix P3;
> #P newex 16 567 133 9109513 jit.op @op + @in2_name P1;
> #P newex 16 589 135 9109513 jit.multiplex @in2_name P1;
> #P newex 153 402 201 9109513 jit.op @op – @in2_name P1 @out_name V1;
> #P newex 16 402 132 9109513 jit.op @op – @in2_name P1;
> #P newex 16 610 223 9109513 jit.gl.mesh xproduct @draw_triquads @color 1 0 0 1;
> #P newex 16 430 250 9109513 xray.jit.crossproduct @normalize 1 1 @in2_name V1;
> #B color 5;
> #P newex 16 274 118 9109513 jit.scissors @columns 3;
> #P newex 139 274 207 9109513 jit.gl.mesh xproduct @draw_mode triangles;
> #P newex 139 247 85 9109513 xray.jit.grid2tri;
> #P button 139 180 15 0;
> #P newex 139 198 130 9109513 jit.matrix 3 float32 20 20;
> #P newex 139 223 341 9109513 jit.expr @expr "snorm[0]" "snorm[1]" "1-hypot(snorm[0]\, snorm[1])";
> #P newex 119 62 206 9109513 jit.window xproduct @depthbuffer 1 @floating 1;
> #P message 80 62 34 9109513 reset;
> #P newex 80 83 396 9109513 jit.gl.handle xproduct @inherit_transform 1 @position 0 0 -1.18 @rotate -22.8 1 0 0;
> #P toggle 17 43 15 0;
> #P newex 17 62 57 9109513 qmetro 60;
> #P newex 17 83 53 9109513 t b b erase;
> #P newex 17 108 296 9109513 jit.gl.render xproduct @position 0 0 -1.18@rotate – 22.8 1 0 0;
> #P user panel 13 427 256 23;
> #X brgb 191 191 191;
> #X frgb 0 0 0;
> #X border 1;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P comment 64 456 147 9109513 no need to reprocess every bang;
> #P connect 3 1 42 0;
> #P connect 15 0 43 0;
> #P fasten 42 0 43 0 6 452 20 452;
> #P connect 43 0 47 0;
> #P fasten 12 0 14 0 144 268 21 268;
> #P connect 14 0 21 0;
> #P connect 21 0 26 0;
> #P connect 26 0 24 0;
> #P connect 24 0 17 0;
> #P connect 17 0 15 0;
> #P connect 47 0 29 0;
> #P connect 29 0 20 0;
> #P connect 20 0 19 0;
> #P connect 68 0 16 0;
> #P connect 19 0 16 0;
> #P connect 38 0 5 0;
> #P connect 5 0 4 0;
> #P connect 4 0 3 0;
> #P fasten 6 0 2 0 85 107 22 107;
> #P fasten 3 0 2 0 22 104 22 104;
> #P connect 3 2 2 0;
> #P connect 14 1 22 0;
> #P connect 7 0 6 0;
> #P connect 14 2 23 0;
> #P connect 47 1 45 0;
> #P connect 45 0 29 1;
> #P fasten 45 0 46 0 119 519 139 519;
> #P connect 39 0 11 0;
> #P fasten 28 0 11 0 256 176 144 176;
> #P connect 11 0 10 0;
> #P fasten 28 1 9 0 273 219 144 219;
> #P connect 10 0 9 0;
> #P connect 9 0 12 0;
> #P fasten 12 0 13 0 144 268 144 268;
> #P fasten 26 1 25 0 41 376 158 376;
> #P connect 25 0 18 0;
> #P fasten 12 0 13 3 144 268 216 268;
> #P connect 27 1 28 0;
> #P fasten 18 0 15 1 158 423 261 423;
> #P connect 65 0 67 0;
> #P connect 59 0 53 0;
> #P connect 65 0 51 0;
> #P connect 53 0 51 0;
> #P connect 51 0 52 0;
> #P connect 52 0 54 0;
> #P connect 65 1 67 1;
> #P connect 51 1 52 1;
> #P connect 51 2 54 1;
> #P connect 62 0 61 0;
> #P connect 63 0 61 0;
> #P connect 64 0 61 0;
> #P connect 66 0 61 0;
> #P connect 51 2 56 0;
> #P connect 56 0 57 0;
> #P connect 57 0 58 0;
> #P connect 58 0 55 0;
> #P connect 55 0 60 0;
>
> thanx
>


January 13, 2008 | 10:21 pm

lotsa expensive hardware for a kind of cheapy effect…

On Jan 13, 2008, at 5:17 PM, Wesley Smith wrote:

> Well,
> In the video they’re using a sphere with no lighting whatsoever. You
> can just display along the vector from the sphere surface to its
> center either with simple matrix math or in a shader. I don’t think
> you need the xproduct for sphere displacement.
>
> wes
>
> On Jan 13, 2008 1:52 PM, Mike wrote:
>>
>> Hey yall
>>
>> I am trying to get a handle on this xray.jit stuff. I would like
>> to figure out how to do something like this (just the visuals not
>> the lemur stuff): http://www.youtube.com/watch?v=ZvKOm7a8uoQ
>>
>> how is the crossproduct object used to manipulate the shapes surface?
>>
>> Or do I need to manipulate a shader?
>> Heres what I have so far:
>>
>>
>> max v2;
>> #N vpatcher 20 266 958 823;
>> #P origin 0 -14;
>> #P window setfont "Sans Serif" 9.;
>> #P window linecount 1;
>> #P message 294 575 66 9109513 prepend_color;
>> #P user ezdac~ 490 163 534 196 0;
>> #P message 586 221 27 9109513 start;
>> #P newex 489 204 63 9109513 spigot~ audio;
>> #P message 682 204 48 9109513 soc audio;
>> #P message 648 222 26 9109513 stop;
>> #P message 634 204 26 9109513 read;
>> #P newex 641 247 55 9109513 jit.qt.movie;
>> #P user jit.pwindow 670 479 154 18 0 1 0 0 1 0;
>> #P toggle 519 249 15 0;
>> #P newex 671 396 33 9109513 edge~;
>> #P newex 671 372 29 9109513 < ~ 0.;
>> #P newex 668 345 33 9109513 delta~;
>> #P newex 671 424 185 9109513 jit.matrix amplituder 1 float32 512 1;
>> #P newex 519 366 124 9109513 jit.poke~ amplituder 1 0;
>> #P newex 519 273 31 9109513 adc~;
>> #P newex 519 334 60 9109513 cartopol~;
>> #P newex 519 303 87 9109513 fft~ 512 512 0;
>> #P window linecount 2;
>> #P comment 688 448 100 9109513 amplitude values come out here;
>> #P window linecount 1;
>> #P newex 514 553 89 9109513 jit.catch~ @mode 3;
>> #P user jit.fpsgui 173 562 60 9109513 3;
>> #P newex 15 513 108 9109513 t l b;
>> #B color 5;
>> #P user jit.pwindow 133 523 154 18 0 1 0 0 1 0;
>> #P newex 114 497 90 9109513 jit.matrix amplituder;
>> #P window linecount 2;
>> #P comment 306 490 100 9109513 amplitude values come out here;
>> #P window linecount 1;
>> #P newex 15 492 44 9109513 jit.matrix;
>> #B color 5;
>> #P newex 1 164 30 9109513 t b b;
>> #P window setfont "Sans Serif" 12.;
>> #P comment 678 580 137 9109516 smoother drop and kick;
>> #P window setfont "Sans Serif" 9.;
>> #P newex 514 580 162 9109513 jit.slide @slide_up 1. @slide_down 4.;
>> #P newex 139 156 48 9109513 loadbang;
>> #P newex 17 22 48 9109513 loadbang;
>> #P window setfont "Sans Serif" 10.;
>> #P comment 546 133 133 9109514 [first inlet , second inlet];
>> #B frgb 133 131 115;
>> #P comment 531 87 216 9109514 takes 2 3-plane float32 , float64
>> matrices;
>> #B frgb 178 180 167;
>> #P comment 566 160 108 9109514 1 = normalization on;
>> #B frgb 133 131 115;
>> #P comment 531 103 57 9109514 attributes:;
>> #B frgb 178 180 167;
>> #P comment 566 146 109 9109514 0 = normalization off;
>> #B frgb 133 131 115;
>> #P comment 531 119 118 9109514 -normalize [2] (0 , 1);
>> #B frgb 133 131 115;
>> #P window setfont "Sans Serif" 20.;
>> #P comment 528 35 202 9109524 xray.jit.crossproduct;
>> #B frgb 184 201 229;
>> #P window setfont "Sans Serif" 10.;
>> #P window linecount 2;
>> #P comment 531 59 216 9109514 calculates the crossproduct of 2
>> vectors starting at the origin;
>> #B frgb 178 180 167;
>> #P window setfont "Sans Serif" 9.;
>> #P window linecount 1;
>> #P newex 16 546 108 9109513 jit.op @op * @val 0.2;
>> #P newex 251 156 27 9109513 t b l;
>> #P user ubumenu 101 137 311 9109513 0 1 1 0;
>> #X add "snorm[0]" "snorm[1]" "1-hypot(snorm[0], snorm[1])";
>> #X add "snorm[0]" "snorm[1]" "cos(snorm[0]*PI)*cos(snorm[1]*PI)";
>> #X add "snorm[0]" "snorm[1]" "0";
>> #X add "snorm[0]" "snorm[1]" " noise.gradient(snorm[0]*2,
>> snorm[1]*2,
>> @seed 313)";
>> #X prefix_set 1 0 expr 0;
>> #X pattrmode 1;
>> #P newex 16 355 30 9109513 t b b;
>> #P newex 153 381 70 9109513 jit.matrix P3;
>> #P newex 16 381 70 9109513 jit.matrix P2;
>> #P newex 88 295 70 9109513 jit.matrix P2;
>> #P newex 52 315 70 9109513 jit.matrix P1;
>> #P newex 16 335 70 9109513 jit.matrix P3;
>> #P newex 16 567 133 9109513 jit.op @op + @in2_name P1;
>> #P newex 16 589 135 9109513 jit.multiplex @in2_name P1;
>> #P newex 153 402 201 9109513 jit.op @op – @in2_name P1 @out_name V1;
>> #P newex 16 402 132 9109513 jit.op @op – @in2_name P1;
>> #P newex 16 610 223 9109513 jit.gl.mesh xproduct @draw_triquads
>> @color 1 0 0 1;
>> #P newex 16 430 250 9109513 xray.jit.crossproduct @normalize 1 1
>> @in2_name V1;
>> #B color 5;
>> #P newex 16 274 118 9109513 jit.scissors @columns 3;
>> #P newex 139 274 207 9109513 jit.gl.mesh xproduct @draw_mode
>> triangles;
>> #P newex 139 247 85 9109513 xray.jit.grid2tri;
>> #P button 139 180 15 0;
>> #P newex 139 198 130 9109513 jit.matrix 3 float32 20 20;
>> #P newex 139 223 341 9109513 jit.expr @expr "snorm[0]" "snorm[1]"
>> "1-hypot(snorm[0]\, snorm[1])";
>> #P newex 119 62 206 9109513 jit.window xproduct @depthbuffer 1
>> @floating 1;
>> #P message 80 62 34 9109513 reset;
>> #P newex 80 83 396 9109513 jit.gl.handle xproduct
>> @inherit_transform 1 @position 0 0 -1.18 @rotate -22.8 1 0 0;
>> #P toggle 17 43 15 0;
>> #P newex 17 62 57 9109513 qmetro 60;
>> #P newex 17 83 53 9109513 t b b erase;
>> #P newex 17 108 296 9109513 jit.gl.render xproduct @position 0 0
>> -1.18@rotate – 22.8 1 0 0;
>> #P user panel 13 427 256 23;
>> #X brgb 191 191 191;
>> #X frgb 0 0 0;
>> #X border 1;
>> #X rounded 0;
>> #X shadow 0;
>> #X done;
>> #P comment 64 456 147 9109513 no need to reprocess every bang;
>> #P connect 3 1 42 0;
>> #P connect 15 0 43 0;
>> #P fasten 42 0 43 0 6 452 20 452;
>> #P connect 43 0 47 0;
>> #P fasten 12 0 14 0 144 268 21 268;
>> #P connect 14 0 21 0;
>> #P connect 21 0 26 0;
>> #P connect 26 0 24 0;
>> #P connect 24 0 17 0;
>> #P connect 17 0 15 0;
>> #P connect 47 0 29 0;
>> #P connect 29 0 20 0;
>> #P connect 20 0 19 0;
>> #P connect 68 0 16 0;
>> #P connect 19 0 16 0;
>> #P connect 38 0 5 0;
>> #P connect 5 0 4 0;
>> #P connect 4 0 3 0;
>> #P fasten 6 0 2 0 85 107 22 107;
>> #P fasten 3 0 2 0 22 104 22 104;
>> #P connect 3 2 2 0;
>> #P connect 14 1 22 0;
>> #P connect 7 0 6 0;
>> #P connect 14 2 23 0;
>> #P connect 47 1 45 0;
>> #P connect 45 0 29 1;
>> #P fasten 45 0 46 0 119 519 139 519;
>> #P connect 39 0 11 0;
>> #P fasten 28 0 11 0 256 176 144 176;
>> #P connect 11 0 10 0;
>> #P fasten 28 1 9 0 273 219 144 219;
>> #P connect 10 0 9 0;
>> #P connect 9 0 12 0;
>> #P fasten 12 0 13 0 144 268 144 268;
>> #P fasten 26 1 25 0 41 376 158 376;
>> #P connect 25 0 18 0;
>> #P fasten 12 0 13 3 144 268 216 268;
>> #P connect 27 1 28 0;
>> #P fasten 18 0 15 1 158 423 261 423;
>> #P connect 65 0 67 0;
>> #P connect 59 0 53 0;
>> #P connect 65 0 51 0;
>> #P connect 53 0 51 0;
>> #P connect 51 0 52 0;
>> #P connect 52 0 54 0;
>> #P connect 65 1 67 1;
>> #P connect 51 1 52 1;
>> #P connect 51 2 54 1;
>> #P connect 62 0 61 0;
>> #P connect 63 0 61 0;
>> #P connect 64 0 61 0;
>> #P connect 66 0 61 0;
>> #P connect 51 2 56 0;
>> #P connect 56 0 57 0;
>> #P connect 57 0 58 0;
>> #P connect 58 0 55 0;
>> #P connect 55 0 60 0;
>>
>> thanx
>>
>


January 13, 2008 | 11:54 pm

thanx for the help. Im not sure how to use vector math to displace the sphere. Is there an example patch that I could learn from?


January 14, 2008 | 10:26 am

hi wes,

dunno if u saw my post over in jitter forum…

but the help files arent in the mac distribution of xray objects.
i had to DL the windows version to get them.

just thought i’d point this out… and thanx for xray stuff!

j

Quote: wesley.hoke@gmail.com wrote on Sun, 13 January 2008 22:17
—————————————————-
> Well,
> In the video they’re using a sphere with no lighting whatsoever. You
> can just display along the vector from the sphere surface to its
> center either with simple matrix math or in a shader. I don’t think
> you need the xproduct for sphere displacement.
>
> wes
>
> On Jan 13, 2008 1:52 PM, Mike wrote:
> >
> > Hey yall
> >
> > I am trying to get a handle on this xray.jit stuff. I would like to figure out how to do something like this (just the visuals not the lemur stuff): http://www.youtube.com/watch?v=ZvKOm7a8uoQ
> >
> > how is the crossproduct object used to manipulate the shapes surface?
> >
> > Or do I need to manipulate a shader?
> > Heres what I have so far:
—————————————————-


January 14, 2008 | 10:32 am

Yes, Sorry about that. My a** just hasn’t taken the time to do that.
I’ll will up it to code red and get that taken care of finally.
wes

On Jan 14, 2008 2:26 AM, justin wrote:
>
> hi wes,
>
> dunno if u saw my post over in jitter forum…
>
> but the help files arent in the mac distribution of xray objects.
> i had to DL the windows version to get them.
>
> just thought i’d point this out… and thanx for xray stuff!
>
> j
>
>
> Quote: wesley.hoke@gmail.com wrote on Sun, 13 January 2008 22:17
> —————————————————-
> > Well,
> > In the video they’re using a sphere with no lighting whatsoever. You
> > can just display along the vector from the sphere surface to its
> > center either with simple matrix math or in a shader. I don’t think
> > you need the xproduct for sphere displacement.
> >
> > wes
> >
> > On Jan 13, 2008 1:52 PM, Mike wrote:
> > >
> > > Hey yall
> > >
> > > I am trying to get a handle on this xray.jit stuff. I would like to figure out how to do something like this (just the visuals not the lemur stuff): http://www.youtube.com/watch?v=ZvKOm7a8uoQ
> > >
> > > how is the crossproduct object used to manipulate the shapes surface?
> > >
> > > Or do I need to manipulate a shader?
> > > Heres what I have so far:
> —————————————————-
>
>
>
>


January 14, 2008 | 10:57 am

BTW, where are the java scripts meant to go?

i put them in "max-msp/java-doc/xray-jsextensions" but objects cant find them…

xray objects are in my default folder for 3rd party externals "max-msp/cycling 74/3rd party objects"

or maybe the java scripts i took from windows distrib are not osx compatible (?)

cheers,

j


January 14, 2008 | 3:55 pm

The should go in C74/jsextension. Javascript is not Java.
wes

On Jan 14, 2008 2:57 AM, justin wrote:
>
> BTW, where are the java scripts meant to go?
>
> i put them in "max-msp/java-doc/xray-jsextensions" but objects cant find them…
>
> xray objects are in my default folder for 3rd party externals "max-msp/cycling 74/3rd party objects"
>
> or maybe the java scripts i took from windows distrib are not osx compatible (?)
>
> cheers,
>
>
> j
>


January 14, 2008 | 4:20 pm

monday == brain dead

;)

Quote: wesley.hoke@gmail.com wrote on Mon, 14 January 2008 15:55
—————————————————-
> The should go in C74/jsextension. Javascript is not Java.
> wes
>
> On Jan 14, 2008 2:57 AM, justin wrote:
> >
> > BTW, where are the java scripts meant to go?
> >
> > i put them in "max-msp/java-doc/xray-jsextensions" but objects cant find them…
> >
> > xray objects are in my default folder for 3rd party externals "max-msp/cycling 74/3rd party objects"
> >
> > or maybe the java scripts i took from windows distrib are not osx compatible (?)
> >
> > cheers,
> >
> >
> > j
> >
>
—————————————————-


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