Forums > Jitter

Rendering on a invisible context

April 24, 2008 | 10:34 am

I’m not able to render on jit.window when its @visible attribute is set to 0 . >> " couldn’t make OpenGl on window xxx"
Was working in Max 4.x

Bests

Pascal


April 24, 2008 | 11:27 am

yes i can confirm that…

g

2008/4/24, pascal :
>
>
> I’m not able to render on jit.window when its @visible attribute is set to
> 0 . >> " couldn’t make OpenGl on window xxx"
> Was working in Max 4.x
>
> Bests
>
> Pascal
>
>
>


April 24, 2008 | 5:19 pm

On Apr 24, 2008, at 3:34 AM, pascal wrote:
>
> I’m not able to render on jit.window when its @visible attribute is
> set to 0 . >> " couldn’t make OpenGl on window xxx"
> Was working in Max 4.x

Thanks for the report. Known issue. We’re looking into it.

-Joshua


April 24, 2008 | 5:30 pm

If I may ask, what are you all using this feature for? Perhaps
there’s a better way or at least a workaround.
wes

On Thu, Apr 24, 2008 at 10:19 AM, Joshua Kit Clayton wrote:
>
> On Apr 24, 2008, at 3:34 AM, pascal wrote:
>
> >
> > I’m not able to render on jit.window when its @visible attribute is set to
> 0 . >> " couldn’t make OpenGl on window xxx"
> > Was working in Max 4.x
> >
>
> Thanks for the report. Known issue. We’re looking into it.
>
> -Joshua
>
>
>

EW


April 25, 2008 | 9:31 am

Well …I had a patch with multiple rendering context ( one of them used as the main rendering context ..so with a jit.window visible ) .I used invisible contexts ( with usetexture , to_texture messages ) to capture the content of those invisble contexts ..Another way to achieve that ?

Cheers

Pascal


April 25, 2008 | 4:30 pm

Yes,
You can render to texture. jit.gl.texture @capture. Most likely this
will be more efficient as you won’t have the overhead of multiple
windows/contexts and it will draw directly to the texture instead of
having to copy the framebuffer of the window to the texture. Search
the forums for render to texture. There are tons of threads on this
subject.

best,
wes

On Fri, Apr 25, 2008 at 2:31 AM, pascal wrote:
>
> Well …I had a patch with multiple rendering context ( one of them used as the main rendering context ..so with a jit.window visible ) .I used invisible contexts ( with usetexture , to_texture messages ) to capture the content of those invisble contexts ..Another way to achieve that ?
>
> Cheers
>
> Pascal
>
>
>


April 25, 2008 | 7:32 pm

Hi,
I’ve been using oscillators in jit.gl.gridshape to modify the shape,
color and position of a sequence of shaped spheres. The patch below
leaves a 2D trail of the instancing history. I want to be able to
leave a 3D trail of shapes so I can move the camera and be able to
view the 3D trail/cluster while it is forming.

I noticed that the jit.gl.multiple help patch creates a 3D cluster of
elements which can be viewed from many directions.

In the patch below, you can see that inputs to the xyz of the camera
control its position with respect to the sphere that is being made but
the trail seems to be locked to the camera (in 2D) and is not locked
to the world space.

How can I build the instancing history in 3D so I can view it from the
camera that moves around in the world space?

Should I use jit.gl.multiple to build the instancing history? If so,
How can I do it? I couldn’t find any examples that show how to
instance single elements with jit.gl.multiple.

Any help will be greatly appreciated … I’ve been on this for quite a
while with limited success.
Cheers, Chuck Henry

max v2;
#N vpatcher 3 23 1232 677;
#P origin 0 -20;
#P window setfont "Sans Serif" 9.;
#P newex 978 605 43 9109513 s grimy;
#P newex 816 273 43 9109513 s grimy;
#P toggle 532 71 15 0;
#P toggle 17 447 15 0;
#P user multiSlider 1148 354 14 42 0.2 0.6 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 1114 352 14 42 0.01 0.05 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 1071 352 14 42 0.2 0.6 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 1041 353 14 42 0.01 0.05 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 999 359 14 42 0.2 0.6 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 969 357 14 42 0.01 0.05 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 1138 28 14 42 0.01 0.15 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 1099 30 14 42 0.01 0.05 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 1040 33 14 42 0.01 0.15 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 998 31 14 42 0.01 0.05 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 943 29 14 42 0.01 0.15 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 908 31 14 42 0.01 0.05 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 835 44 14 42 0.01 0.15 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 803 46 14 42 0.01 0.05 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 730 45 14 42 0.01 0.15 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 694 46 14 42 0.01 0.05 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 622 44 14 42 0.01 0.15 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 585 45 14 42 0.01 0.05 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P window setfont "Sans Serif" 12.;
#P newex 532 111 35 9109516 dac~;
#P window setfont "Sans Serif" 9.;
#P flonum 142 523 33 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 101 522 33 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 60 521 33 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 19 546 134 9240586 pak camera 0. 0. -32.;
#P window setfont "Sans Serif" 12.;
#P newex 1111 196 33 9109516 *~ 1.;
#P newex 1137 160 33 9109516 *~ 7.;
#P newex 1036 170 33 9109516 *~ 7.;
#P newex 941 167 33 9109516 *~ 7.;
#P newex 1139 80 25 9109516 sin;
#P window setfont "Sans Serif" 9.;
#P newex 1136 133 36 9109513 cycle~;
#P newex 1139 108 28 9109513 sig~;
#B color 5;
#P window setfont "Sans Serif" 12.;
#P newex 1040 84 25 9109516 sin;
#P window setfont "Sans Serif" 9.;
#P newex 1037 142 36 9109513 cycle~;
#P newex 1040 112 28 9109513 sig~;
#B color 5;
#P window setfont "Sans Serif" 12.;
#P newex 944 83 25 9109516 sin;
#P window setfont "Sans Serif" 9.;
#P newex 941 141 36 9109513 cycle~;
#P newex 944 111 28 9109513 sig~;
#B color 5;
#P window setfont "Sans Serif" 12.;
#P newex 1099 81 25 9109516 sin;
#P window setfont "Sans Serif" 9.;
#P newex 1096 139 36 9109513 cycle~;
#P newex 1099 109 28 9109513 sig~;
#B color 5;
#P window setfont "Sans Serif" 12.;
#P newex 1011 198 33 9109516 *~ 1.;
#P newex 997 83 25 9109516 sin;
#P window setfont "Sans Serif" 9.;
#P newex 994 141 36 9109513 cycle~;
#P newex 997 111 28 9109513 sig~;
#B color 5;
#P window setfont "Sans Serif" 12.;
#P newex 919 197 33 9109516 *~ 1.;
#P newex 908 85 25 9109516 sin;
#P newex 1112 502 46 9109516 *~ 0.5;
#P newex 1035 498 46 9109516 *~ 0.5;
#P newex 1114 467 35 9109516 +~ 1.;
#P window setfont "Sans Serif" 9.;
#P newex 1113 433 36 9109513 cycle~;
#P newex 1115 403 28 9109513 sig~;
#B color 5;
#P window setfont "Sans Serif" 12.;
#P newex 1037 465 35 9109516 +~ 1.;
#P window setfont "Sans Serif" 9.;
#P newex 1039 434 32 9109513 cycle~;
#P newex 1041 404 24 9109513 sig~;
#B color 5;
#P window setfont "Sans Serif" 12.;
#P newex 968 469 35 9109516 +~ 1.;
#P window setfont "Sans Serif" 9.;
#P newex 967 439 36 9109513 cycle~;
#P newex 969 409 28 9109513 sig~;
#B color 5;
#P window setfont "Sans Serif" 12.;
#P newex 978 575 110 9109516 pak color 1. 1. 1. 1.;
#P window setfont "Sans Serif" 9.;
#P user number~ 1110 533 1161 548 9 139 3 2 0. 0. 0 0.139543 250 0. 0
0 0 221 221 221 222 222 222 0 0 0;
#P user number~ 1038 534 1089 549 9 139 3 2 0. 0. 0 -0.049979 250 0. 0
0 0 221 221 221 222 222 222 0 0 0;
#P user number~ 965 537 1016 552 9 139 3 2 0. 0. 0 0.789072 250 0. 0 0
0 221 221 221 222 222 222 0 0 0;
#P message 22 416 106 9109513 light_position 8. 3. 18. t;
#P message 16 473 118 9109513 light_ambient 0.3 0.3 0.3 1.;
#P toggle 36 367 17 0;
#P window setfont "Sans Serif" 12.;
#P message 36 389 88 9109516 erase_color -1;
#P message 210 254 63 9109516 displaylist;
#P window setfont "Sans Serif" 9.;
#P user number~ 1110 227 1161 242 9 139 3 2 0. 0. 0 0. 250 0. 0 0 0
221 221 221 222 222 222 0 0 0;
#P user number~ 1009 230 1060 245 9 139 3 2 0. 0. 0 0. 250 0. 0 0 0
221 221 221 222 222 222 0 0 0;
#P user number~ 915 232 966 247 9 139 3 2 0. 0. 0 0. 250 0. 0 0 0 221
221 221 222 222 222 0 0 0;
#P newex 902 140 36 9109513 cycle~;
#P newex 908 113 28 9109513 sig~;
#B color 5;
#P window setfont "Sans Serif" 12.;
#P message 266 340 15 9109516 1;
#P newex 230 308 60 9109516 loadbang;
#P newex 826 148 42 9109516 +~ 1.2;
#P newex 722 147 42 9109516 +~ 1.2;
#P newex 786 181 70 9109516 maximum~;
#P newex 677 178 70 9109516 maximum~;
#P newex 621 150 42 9109516 +~ 1.2;
#P newex 578 182 70 9109516 maximum~;
#P window setfont "Sans Serif" 9.;
#P newex 828 124 36 9109513 cycle~;
#P newex 833 96 28 9109513 sig~;
#B color 5;
#P user number~ 788 212 839 227 9 139 3 2 0. 0. 0 0. 250 0. 0 0 0 221
221 221 222 222 222 0 0 0;
#P newex 790 125 36 9109513 cycle~;
#P newex 797 95 28 9109513 sig~;
#B color 5;
#P newex 726 124 36 9109513 cycle~;
#P newex 731 96 28 9109513 sig~;
#B color 5;
#P user number~ 676 215 727 230 9 139 3 2 0. 0. 0 0. 250 0. 0 0 0 221
221 221 222 222 222 0 0 0;
#P newex 684 125 36 9109513 cycle~;
#P newex 691 94 28 9109513 sig~;
#B color 5;
#P newex 621 118 36 9109513 cycle~;
#P newex 622 92 28 9109513 sig~;
#B color 5;
#P user number~ 588 216 639 231 9 139 3 2 0. 0. 0 0. 250 0. 0 0 0 221
221 221 222 222 222 0 0 0;
#P newex 579 125 36 9109513 cycle~;
#P newex 582 95 28 9109513 sig~;
#B color 5;
#P message 347 127 50 9109513 reset;
#P toggle 377 57 15 0;
#P message 377 75 55 9109513 floating $1;
#P message 276 181 61 9109513 rad_minor $1;
#P flonum 276 158 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 196 180 71 9109513 prepend shape;
#P user ubumenu 196 154 72 9109513 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 newex 655 245 81 9109513 pak scale 1. 1. 1.;
#P window linecount 5;
#P newex 347 157 92 9109513 jit.gl.handle foo @depth_enable 1 @radius
5. @auto_rotate 1 @blend_enable 1;
#P toggle 304 57 15 0;
#P window linecount 1;
#P newex 265 56 35 9109513 sel 27;
#P message 304 75 68 9109513 fullscreen $1;
#P newex 222 99 270 9109513 jit.window foo @size 400 400 @depthbuffer
1 @doublebuffer 0;
#P newex 220 56 40 9109513 key;
#P number 105 125 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 105 153 54 9109513 dim $1 $1;
#P newex 213 206 43 9109513 r grimy;
#P user jit.fpsgui 50 220 60 9109513 0;
#P newex 143 432 43 9109513 s grimy;
#P toggle 234 367 15 0;
#P message 234 390 94 9109513 smooth_shading $1;
#P toggle 333 367 15 0;
#P message 333 390 102 9109513 lighting_enable 5. 5. 5.;
#P number 41 125 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 146 367 15 0;
#P message 146 390 81 9109513 depth_enable $1;
#P toggle 6 29 15 0;
#P newex 6 151 45 9109513 metro 25;
#P newex 6 176 55 9109513 t b erase b;
#P newex 196 280 85 9109513 jit.gl.gridshape foo;
#B color 5;
#P newex 6 586 71 9109513 jit.gl.render foo;
#P newex 976 256 91 9109513 pak position 1. 1. 1.;
#P comment 280 202 55 9109513 for torus;
#P window setfont "Sans Serif" 12.;
#P newex 964 498 46 9109516 *~ 0.5;
#P connect 7 0 6 0;
#P connect 6 0 5 0;
#P fasten 104 0 3 0 24 575 11 575;
#P fasten 4 0 3 0 201 302 11 302;
#P fasten 5 1 3 0 33 233 11 233;
#P connect 5 0 3 0;
#P fasten 63 0 3 0 41 412 11 412;
#P fasten 66 0 3 0 27 439 11 439;
#P fasten 65 0 3 0 21 496 11 496;
#P connect 127 0 65 0;
#P fasten 55 0 104 0 235 345 136 345 136 505 24 505;
#P fasten 56 0 64 0 271 363 41 363;
#P connect 64 0 63 0;
#P connect 10 0 6 1;
#P connect 5 2 16 0;
#P connect 105 0 104 1;
#P connect 106 0 104 2;
#P connect 19 0 18 0;
#P connect 107 0 104 3;
#P fasten 8 0 15 0 151 409 148 409;
#P fasten 13 0 15 0 239 409 148 409;
#P fasten 11 0 15 0 338 409 148 409;
#P fasten 56 0 9 0 271 363 151 363;
#P connect 9 0 8 0;
#P fasten 27 1 28 0 232 175 201 175;
#P fasten 25 0 4 0 352 250 201 250;
#P connect 62 0 4 0;
#P fasten 18 0 4 0 110 213 201 213;
#P connect 28 0 4 0;
#P fasten 17 0 4 0 218 244 201 244;
#P fasten 30 0 4 0 281 231 201 231;
#P fasten 31 0 21 0 382 94 227 94;
#P fasten 22 0 21 0 309 94 227 94;
#P fasten 56 0 14 0 271 363 239 363;
#P connect 14 0 13 0;
#P fasten 20 0 23 0 225 75 262 75 262 54 270 54;
#P fasten 55 0 56 0 235 335 271 335;
#P connect 29 0 30 0;
#P fasten 23 0 24 0 270 74 301 74 301 54 309 54;
#P connect 24 0 22 0;
#P fasten 56 0 12 0 271 363 338 363;
#P connect 12 0 11 0;
#P connect 33 0 25 0;
#P connect 32 0 31 0;
#P connect 128 0 108 0;
#P connect 35 0 49 0;
#P connect 34 0 35 0;
#P connect 109 0 34 0;
#P connect 49 0 36 0;
#P connect 37 0 38 0;
#P connect 38 0 50 0;
#P connect 110 0 37 0;
#P connect 50 0 49 1;
#P connect 51 0 41 0;
#P connect 40 0 51 0;
#P connect 36 1 26 1;
#P connect 39 0 40 0;
#P connect 111 0 39 0;
#P connect 41 1 26 2;
#P connect 43 0 53 0;
#P connect 46 1 26 3;
#P connect 42 0 43 0;
#P connect 112 0 42 0;
#P connect 53 0 51 1;
#P connect 45 0 52 0;
#P connect 52 0 46 0;
#P connect 44 0 45 0;
#P connect 113 0 44 0;
#P fasten 26 0 129 0 660 268 821 268;
#P fasten 2 0 129 0 981 280 962 280 962 265 821 265;
#P connect 48 0 54 0;
#P connect 47 0 48 0;
#P connect 114 0 47 0;
#P connect 54 0 52 1;
#P connect 57 0 58 0;
#P connect 115 0 82 0;
#P connect 82 0 57 0;
#P connect 83 0 59 0;
#P connect 58 0 83 0;
#P connect 91 0 92 0;
#P connect 92 0 100 0;
#P connect 100 0 83 1;
#P connect 116 0 93 0;
#P connect 93 0 91 0;
#P connect 73 0 0 0;
#P connect 0 0 67 0;
#P connect 71 0 72 0;
#P connect 72 0 73 0;
#P connect 121 0 71 0;
#P connect 70 0 130 0;
#P connect 84 0 85 0;
#P connect 117 0 86 0;
#P connect 86 0 84 0;
#P connect 122 0 0 1;
#P connect 59 1 2 1;
#P connect 67 1 70 1;
#P connect 87 0 60 0;
#P connect 85 0 87 0;
#P connect 68 1 70 2;
#P connect 60 1 2 2;
#P connect 101 0 87 1;
#P connect 76 0 80 0;
#P connect 95 0 101 0;
#P connect 94 0 95 0;
#P connect 75 0 76 0;
#P connect 80 0 68 0;
#P connect 74 0 75 0;
#P connect 118 0 96 0;
#P connect 96 0 94 0;
#P connect 123 0 74 0;
#P connect 69 1 70 3;
#P connect 61 1 2 3;
#P connect 124 0 80 1;
#P connect 88 0 89 0;
#P connect 119 0 90 0;
#P connect 90 0 88 0;
#P connect 103 0 61 0;
#P connect 81 0 69 0;
#P connect 89 0 103 0;
#P connect 79 0 81 0;
#P connect 77 0 78 0;
#P connect 78 0 79 0;
#P connect 125 0 77 0;
#P connect 102 0 103 1;
#P connect 97 0 98 0;
#P connect 98 0 102 0;
#P connect 120 0 99 0;
#P connect 99 0 97 0;
#P connect 126 0 81 1;
#P pop;


April 26, 2008 | 11:35 am

this is a n answer to the instancing gridshapes question above.
please check that you respond to the correct thread or start a new thread if your topic is new.

Chuck, you’re doing a number of things inappropriately in your patch. FIrst, I’d change the method you use with the oscillators. If you want to use audio signals check out jit.poke~ and how to write to msp buffers~. For example, you can write your x,y,and z position values to a buffer called ‘scale’ and then access these values from a matrix with the same name by banging the matrix and using jit.iter. I think Andrew Benson gave a good example of doing this in one of his jitter recipes (which are available on the cycling site).

A number of your messages are incorrectly formatted. erase_color is followed by 4 values; lighting_enable takes one value (0 or 1). if you want to alter the values you could use the $1 argument (and $2 $3 $4 etc) in your messages.

One of the reasons you can’t move about in the space is because you are only ever drawing one gridshape and not erasing the buffer before rendering the next frame. To get the trace you are after you will need to draw more than one object each frame, and jit.gl.multiple may help you here – have a look at it’s help file and you’ll see that you can view the objects from different angles which you are not able to do with your example.

I’d also suggest looking into the doublebuffer setting for your window.

pelado


April 26, 2008 | 7:17 pm

> The patch below
> leaves a 2D trail of the instancing history. I want to be able to
> leave a 3D trail of shapes so I can move the camera and be able to
> view the 3D trail/cluster while it is forming.

well, not quite. it’s not leaving an "instancing history" if i understand your term correctly. it’s just leaving trails of what was previously drawn to the buffer, because your erase_color alpha is 0. your correct that this is just in 2d. it’s just pixels, not 3d geometry.

you will have to come up with something of your own in order to do what you want. gl.multiple might be a good place to start, but it’s not necessary. a gl.gridshape object encapsulated in a poly~ might also be a good place to start.


June 21, 2008 | 7:42 am

Hi Robert Ramirez and Pelado,

I’m still working on this … but the first step is to make an
oscillator that has a sine wave that does not go negative on the
Y-Axis of the scope.
The patcher below needs some help to achieve this property. I tried to
do it with abs with no success … I hope someone can direct me to the
solution.
This output will go into poke scale then into the gridshape sphere. I
need the oscillator positive so the sphere doesn’t go to 0 dim and
then turn inside out. There must be a way to reverse the polarity
and/or bias the Y-Axis to keep it above 0 by a certain amount.
Since the oscillator frequency and amplitude will be changing, the
biasing has to be a function of the input.

Any help on this will be greatly appreciated.

Cheers Chuck Henry

{
"patcher" : {
"fileversion" : 1,
"rect" : [ 31.0, 46.0, 686.0, 313.0 ],
"bgcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
"bglocked" : 0,
"defrect" : [ 31.0, 46.0, 686.0, 313.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 0,
"default_fontsize" : 10.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 1,
"metadata" : [ ],
"boxes" : [ {
"box" :
{
"maxclass" : "scope~",
"trigger" : 0,
"drawstyle" : 0,
"patching_rect" : [ 343.0,
156.0, 130.0, 130.0 ],
"numinlets" : 2,
"presentation" : 0,
"gridcolor" : [ 0.33, 0.33,
0.33, 1.0 ],
"numoutlets" : 0,
"background" : 0,
"bordercolor" : [ 0.2, 0.2,
0.2, 1.0 ],
"triglevel" : 0.0,
"rounded" : 8,
"fgcolor" : [ 0.4, 1.0, 0.2,
1.0 ],
"range" : [ -1.0, 1.0 ],
"bgcolor" : [ 0.53, 0.53,
0.53, 1.0 ],
"ignoreclick" : 0,
"bufsize" : 128,
"id" : "obj-5",
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"calccount" : 256,
"delay" : 0.0
}

}
, {
"box" :
{
"maxclass" : "number~",
"patching_rect" : [ 209.0,
209.0, 51.0, 17.0 ],
"numinlets" : 2,
"presentation" : 0,
"numdecimalplaces" : 0,
"numoutlets" : 2,
"background" : 0,
"bordercolor" : [ 0.5, 0.5,
0.5, 1.0 ],
"hbgcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"fontname" : "Arial",
"outlettype" : [ "signal",
"float" ],
"ft1" : 0.0,
"monitormode" : 1,
"bgcolor" : [ 0.866667,
0.866667, 0.866667, 1.0 ],
"ignoreclick" : 0,
"htextcolor" : [ 0.870588,
0.870588, 0.870588, 1.0 ],
"minimum" : "",
"sig" : 0.0,
"id" : "obj-170",
"sigoutmode" : 1,
"textcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"maximum" : "
",
"interval" : 250.0,
"fontface" : 0,
"fontsize" : 9.0,
"mode" : 2
}

}
, {
"box" :
{
"maxclass" : "gain~",
"inc" : 1.071519,
"patching_rect" : [ 59.0,
187.0, 28.0, 58.0 ],
"numinlets" : 2,
"presentation" : 0,
"numoutlets" : 2,
"background" : 0,
"orientation" : 2,
"bordercolor" : [ 0.33334,
0.33334, 0.33334, 1.0 ],
"size" : 158,
"stripecolor" : [ 0.86, 0.9,
0.68, 0.7 ],
"interp" : 10.0,
"outlettype" : [ "signal",
"int" ],
"bgcolor" : [ 0.66667,
0.66667, 0.66667, 1.0 ],
"knobcolor" : [ 0.86667,
0.86667, 0.86667, 1.0 ],
"ignoreclick" : 0,
"id" : "obj-2",
"scale" : 7.94321,
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"relative" : 0
}

}
, {
"box" :
{
"maxclass" : "flonum",
"triscale" : 0.9,
"patching_rect" : [ 281.0,
78.0, 67.0, 20.0 ],
"numinlets" : 1,
"presentation" : 0,
"outputonclick" : 0,
"numdecimalplaces" : 0,
"numoutlets" : 2,
"background" : 0,
"bordercolor" : [ 0.5, 0.5,
0.5, 1.0 ],
"mouseup" : 0,
"hbgcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"fontname" : "Arial",
"outlettype" : [ "float",
"bang" ],
"bgcolor" : [ 0.866667,
0.866667, 0.866667, 1.0 ],
"ignoreclick" : 0,
"htextcolor" : [ 0.870588,
0.870588, 0.870588, 1.0 ],
"minimum" : "",
"id" : "obj-28",
"textcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"maximum" : "
",
"cantchange" : 0,
"fontface" : 0,
"triangle" : 1,
"fontsize" : 11.595187
}

}
, {
"box" :
{
"maxclass" : "flonum",
"triscale" : 0.9,
"patching_rect" : [ 163.0,
56.0, 67.0, 20.0 ],
"numinlets" : 1,
"presentation" : 0,
"outputonclick" : 0,
"numdecimalplaces" : 0,
"numoutlets" : 2,
"background" : 0,
"bordercolor" : [ 0.5, 0.5,
0.5, 1.0 ],
"mouseup" : 0,
"hbgcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"fontname" : "Arial",
"outlettype" : [ "float",
"bang" ],
"bgcolor" : [ 0.866667,
0.866667, 0.866667, 1.0 ],
"ignoreclick" : 0,
"htextcolor" : [ 0.870588,
0.870588, 0.870588, 1.0 ],
"minimum" : "",
"id" : "obj-29",
"textcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"maximum" : "
",
"cantchange" : 0,
"fontface" : 0,
"triangle" : 1,
"fontsize" : 11.595187
}

}
, {
"box" :
{
"maxclass" : "flonum",
"triscale" : 0.9,
"patching_rect" : [ 58.0,
62.0, 67.0, 20.0 ],
"numinlets" : 1,
"presentation" : 0,
"outputonclick" : 0,
"numdecimalplaces" : 0,
"numoutlets" : 2,
"background" : 0,
"bordercolor" : [ 0.5, 0.5,
0.5, 1.0 ],
"mouseup" : 0,
"hbgcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"fontname" : "Arial",
"outlettype" : [ "float",
"bang" ],
"bgcolor" : [ 0.866667,
0.866667, 0.866667, 1.0 ],
"ignoreclick" : 0,
"htextcolor" : [ 0.870588,
0.870588, 0.870588, 1.0 ],
"minimum" : "",
"id" : "obj-30",
"textcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"maximum" : "
",
"cantchange" : 0,
"fontface" : 0,
"triangle" : 1,
"fontsize" : 11.595187
}

}
, {
"box" :
{
"maxclass" : "newobj",
"text" : "*~",
"patching_rect" : [ 163.0,
113.0, 32.5, 20.0 ],
"numinlets" : 2,
"presentation" : 0,
"numoutlets" : 1,
"background" : 0,
"color" : [ 0.8, 0.84, 0.71,
1.0 ],
"fontname" : "Arial",
"outlettype" : [ "signal" ],
"bgcolor" : [ 1.0, 1.0, 1.0,
1.0 ],
"ignoreclick" : 0,
"id" : "obj-31",
"textcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"fontface" : 0,
"fontsize" : 11.595187
}

}
, {
"box" :
{
"maxclass" : "newobj",
"text" : "cycle~",
"patching_rect" : [ 60.0,
103.0, 44.0, 20.0 ],
"numinlets" : 2,
"presentation" : 0,
"numoutlets" : 1,
"background" : 0,
"color" : [ 0.8, 0.84, 0.71,
1.0 ],
"fontname" : "Arial",
"outlettype" : [ "signal" ],
"bgcolor" : [ 1.0, 1.0, 1.0,
1.0 ],
"ignoreclick" : 0,
"id" : "obj-32",
"textcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"fontface" : 0,
"fontsize" : 11.595187
}

}
, {
"box" :
{
"maxclass" : "newobj",
"text" : "cycle~",
"patching_rect" : [ 163.0,
83.0, 44.0, 20.0 ],
"numinlets" : 2,
"presentation" : 0,
"numoutlets" : 1,
"background" : 0,
"color" : [ 0.8, 0.84, 0.71,
1.0 ],
"fontname" : "Arial",
"outlettype" : [ "signal" ],
"bgcolor" : [ 1.0, 1.0, 1.0,
1.0 ],
"ignoreclick" : 0,
"id" : "obj-33",
"textcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"fontface" : 0,
"fontsize" : 11.595187
}

}
, {
"box" :
{
"maxclass" : "newobj",
"text" : "*~",
"patching_rect" : [ 60.0,
130.0, 32.5, 20.0 ],
"numinlets" : 2,
"presentation" : 0,
"numoutlets" : 1,
"background" : 0,
"color" : [ 0.8, 0.84, 0.71,
1.0 ],
"fontname" : "Arial",
"outlettype" : [ "signal" ],
"bgcolor" : [ 1.0, 1.0, 1.0,
1.0 ],
"ignoreclick" : 0,
"id" : "obj-34",
"textcolor" : [ 0.0, 0.0, 0.0,
1.0 ],
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0,
"fontface" : 0,
"fontsize" : 11.595187
}

}
, {
"box" :
{
"maxclass" : "ezdac~",
"local" : 108,
"patching_rect" : [ 60.0,
252.0, 33.0, 33.0 ],
"numinlets" : 2,
"presentation" : 0,
"numoutlets" : 0,
"background" : 0,
"offgradcolor1" : [ 0.87,
0.87, 0.87, 1.0 ],
"ongradcolor1" : [ 0.75, 0.79,
0.93, 1.0 ],
"bgcolor" : [ 0.51, 0.51,
0.51, 1.0 ],
"ignoreclick" : 0,
"ongradcolor2" : [ 0.66, 0.66,
0.72, 1.0 ],
"id" : "obj-35",
"offgradcolor2" : [ 0.7, 0.7,
0.73, 1.0 ],
"presentation_rect" : [ 0.0,
0.0, 0.0, 0.0 ],
"hidden" : 0
}

}
],
"lines" : [ {
"patchline" :
{
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-5", 0
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-170", 0
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-30", 0 ],
"destination" : [ "obj-32", 0
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-32", 0 ],
"destination" : [ "obj-34", 0
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-34", 0 ],
"destination" : [ "obj-2", 0
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-35", 0
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-2", 0 ],
"destination" : [ "obj-35", 1
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-29", 0 ],
"destination" : [ "obj-33", 0
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-33", 0 ],
"destination" : [ "obj-31", 0
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-31", 0 ],
"destination" : [ "obj-34", 1
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
, {
"patchline" :
{
"source" : [ "obj-28", 0 ],
"destination" : [ "obj-31", 1
],
"hidden" : 0,
"color" : [ 0.0, 0.0, 0.0, 1.0
],
"midpoints" : [ ]
}

}
]
}

}


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