XML Feeds

.

[jitter] other peoples shapes bug

Andreas Wetterberg awetterberg at post.cybercity.dk
Sun Sep 9 14:41:30 MDT 2007


Matthieu,
I posted the picture to give an idea of the underlying mechanisms involved.

I think instead of attempting to copy over that picture into a real 
patch it might be wiser to actually take apart Wesleys "Psychedelic" 
patch, as linked earlier - that's what I did to give you that example!

I would presumably also provide better learning material.

Best of luck,
Andreas.

matthieu.tercieux at free.fr skrev:
> thanks for the link but i'have a bug.
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 336 312 41 196617 r draw;
> #P user jit.pwindow 484 219 82 62 0 1 0 0 1 0;
> #P button 58 268 15 0;
> #P window linecount 2;
> #P message 384 400 386 196617 jit.gl.multiple foo 3 @glparams position color
> scale @targetname sphere @scale 0.1 0.1 0.1 @targetmode 1 @blend_enable 1
> @lighting_enable 1 @smooth_shading 1;
> #P newex 385 360 386 196617 jit.gl.multiple foo 3 @glparams position color scale
> @targetname sphere @scale 0.1 0.1 0.1 @targetmode 1 @blend_enable 1
> @lighting_enable 1 @smooth_shading 1;
> #P window linecount 1;
> #P message 288 151 34 196617 reset;
> #P user jit.pwindow 817 413 82 62 0 1 0 0 1 0;
> #P flonum 211 103 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 121 101 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 100 126 142 196617 pak erase_color 0. 0. 0. 0.38;
> #P message 32 151 72 196617 lens_angle \$1;
> #P flonum 32 128 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 789 326 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 573 213 30 196617 read;
> #P newex 604 239 41 196617 r draw;
> #P newex 573 239 33 196617 r rez;
> #P newex 573 265 178 196617 jit.qt.movie 20 20 @unique 1 @vol 0.;
> #P newex 444 163 41 196617 r draw;
> #P newex 875 326 41 196617 r draw;
> #P newex 828 326 33 196617 r rez;
> #P newex 761 342 130 196617 jit.matrix 3 float32 20 20;
> #P newex 595 293 33 196617 r rez;
> #P newex 573 322 209 196617 jit.matrix 3 float32 20 20 @planemap 1 2 3;
> #P newex 346 232 33 196617 r rez;
> #P newex 385 286 130 196617 jit.matrix 3 float32 20 20;
> #P newex 343 194 33 196617 s rez;
> #P newex 491 166 71 196617 prepend shape;
> #P user ubumenu 491 140 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 <none> 0;
> #P newex 385 194 307 196617 jit.gl.gridshape foo @automatic 0 @matrixoutput 1
> @shape sphere;
> #P message 385 162 56 196617 dim \$1 \$1;
> #P number 385 139 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 385 117 66 196617 loadmess 20;
> #P toggle 158 373 15 0;
> #P message 158 391 55 196617 floating \$1;
> #P toggle 85 373 15 0;
> #P newex 46 372 35 196617 sel 27;
> #P message 85 391 68 196617 fullscreen \$1;
> #P newex 3 415 281 196617 jit.window foo @depthbuffer 1 @fsaa 1 @sync 1
> @floating 1;
> #P newex 1 372 40 196617 key;
> #P newex 109 295 71 196617 prepend shape;
> #P user ubumenu 109 269 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 <none> 0;
> #P newex 1 323 374 196617 jit.gl.gridshape foo @depth_enable 1 @scale 1. 1. 1.
> @automatic 1 @name sphere;
> #P message 1 291 56 196617 dim \$1 \$1;
> #P number 1 268 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 1 246 66 196617 loadmess 20;
> #P user jit.fpsgui 1 205 60 196617 0;
> #P newex 121 150 174 196617 jit.gl.handle foo inherit_transform 1;
> #P newex 1 175 337 196617 jit.gl.render foo @camera 0. 0. 0. 12 @lens_angle 90
> @lighting_enable 1;
> #P newex 56 106 41 196617 s draw;
> #P newex 1 84 58 196617 t erase b b;
> #P toggle 1 22 15 0;
> #P newex 1 44 57 196617 qmetro 10;
> #P connect 1 0 0 0;
> #P connect 0 0 2 0;
> #P hidden fasten 2 1 4 0 30 138 6 138;
> #P connect 2 0 4 0;
> #P connect 41 0 4 0;
> #P connect 42 0 4 0;
> #P connect 5 0 4 0;
> #P connect 4 0 6 0;
> #P connect 7 0 8 0;
> #P connect 8 0 9 0;
> #P connect 2 2 10 0;
> #P connect 9 0 10 0;
> #P connect 12 0 10 0;
> #P connect 49 0 10 0;
> #P fasten 18 0 14 0 163 410 8 410;
> #P fasten 15 0 14 0 90 410 8 410;
> #P connect 40 0 41 0;
> #P fasten 13 0 16 0 6 391 43 391 43 370 51 370;
> #P connect 2 2 3 0;
> #P fasten 16 0 17 0 51 390 82 390 82 370 90 370;
> #P connect 17 0 15 0;
> #P fasten 11 1 12 0 145 290 114 290;
> #P connect 46 0 5 0;
> #P connect 43 0 42 1;
> #P connect 19 0 18 0;
> #P connect 43 0 42 2;
> #P connect 43 0 42 3;
> #P connect 44 0 42 4;
> #P connect 22 0 26 0;
> #P connect 20 0 21 0;
> #P connect 21 0 22 0;
> #P connect 22 0 23 0;
> #P connect 34 0 23 0;
> #P connect 25 0 23 0;
> #P connect 23 0 27 0;
> #P connect 28 0 27 0;
> #P connect 27 0 47 0;
> #P connect 51 0 47 0;
> #P connect 27 0 50 0;
> #P fasten 24 1 25 0 527 161 496 161;
> #P connect 38 0 35 0;
> #P connect 37 0 35 0;
> #P connect 36 0 35 0;
> #P connect 35 0 29 0;
> #P connect 30 0 29 0;
> #P connect 29 0 47 1;
> #P connect 32 0 31 0;
> #P connect 39 0 31 0;
> #P connect 33 0 31 0;
> #P connect 31 0 47 2;
> #P connect 31 0 45 0;
> #P window clipboard copycount 52;
>
>
>
>
> Selon Andreas Wetterberg <awetterberg at post.cybercity.dk>:
>
>   
>> matthieu.tercieux at free.fr skrev:
>>     
>>> how it's possible to put the respective color of the pixels movie at the
>>> respective sphere?
>>> thank's
>>>
>>>       
>> Here's how, in a full working example:
>> http://tinyurl.com/39cywl
>>
>> -thanks to Wesley Smith for being bright about using jit.gl.multiple, my
>> new favourite helper-object.
>>
>> I hope this helps,
>> Andreas.
>> _______________________________________________
>> jitter mailing list
>> jitter at cycling74.com
>> http://www.cycling74.com/mailman/listinfo/jitter
>>
>>     
>
>
> _______________________________________________
> jitter mailing list
> jitter at cycling74.com
> http://www.cycling74.com/mailman/listinfo/jitter
>
> .
>
>   



More information about the jitter mailing list