jit.gl.render @point_sprite 1

Jul 8, 2007 at 3:52pm

jit.gl.render @point_sprite 1

hi all seems that jit.gl.render doesn’t support anymore that attribute..i get error here
ppc g4 max 4.5.7 jitter 1.5.2

i found in the archive that tips, i want to render a texture over a particles system (particle_primitives example)
thanks
michele

#32802
Jul 9, 2007 at 1:10am

I would recommend using jit.gl.mesh for this sort of thing instead of
jit.gl.render. If you are interested in different techniques for
rendering particles, have a look at the Jitter Recipes on the C74
website. There are several examples with very different methods.

Andrew B.

#108468
Jul 9, 2007 at 11:43pm

..well how to render a texture over these particles..every particle the same entire texture, a movie..

max v2;
#N vpatcher 208 72 1063 820;
#P origin 0 -8;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 420 383 48 196617 loadbang;
#P user jit.fpsgui 20 174 60 196617 0;
#P button 436 418 15 0;
#P window linecount 3;
#P newex 446 446 316 196617 jit.gl.gridshape particles @shape plane @automatic 0 @depth_enable 1 blend_enable 1 @smooth_shading 1 @lighting_enable 1 @scale 0.07 0.07 0.07 @displaylist 0 @matrixoutput 1;
#P window linecount 1;
#P newex 146 327 100 196617 jit.split @splitdim 1;
#P window linecount 2;
#P newex 187 546 277 196617 jit.gl.mesh particles @lighting_enable 1 @smooth_shading 1 @depth_enable 1 @blend_enable 1 @scale 0.07 0.07 0.07;
#P window linecount 1;
#P message 344 517 90 196617 position $1 $2 $3;
#P message 89 517 111 196617 color $1 0. 0. 1. , bang;
#P newex 187 493 139 196617 expr 1. – ((65. – $f1) / 65.);
#P newex 187 466 167 196617 zl slice 1;
#P newex 187 439 41 196617 jit.iter;
#P newex 187 412 53 196617 jit.pack 4;
#P newex 173 377 80 196617 jit.unpack 5;
#P newex 140 255 80 196617 jit.matrix point;
#P newex 316 196 110 196617 pak force 0. 0. 0.;
#P newex 319 153 100 196617 pak pos 0. 0. 0.;
#P flonum 418 177 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 367 177 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 316 177 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 423 134 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 371 134 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 321 135 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 118 226 172 196617 jit.p.vishnu @pitch 0.1 @yaw 0.1;
#P newex 118 185 143 196617 jit.p.shiva @life 60 @emit 10;
#P newex 118 163 149 196617 jit.matrix point 5 float32 50 2;
#P newex 3 662 214 196617 jit.window particles @depthbuffer 1 @sync 0;
#P newex 2 636 300 196617 jit.gl.render particles @erase_color 0. 0. 0. 1. @automatic 0;
#P newex 2 69 66 196617 t b b b erase;
#P newex 2 42 51 196617 qmetro 2;
#P toggle 1 0 40 0;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P fasten 2 3 3 0 61 148 7 148;
#P connect 2 0 28 0;
#P connect 21 0 22 0;
#P connect 2 1 5 0;
#P connect 5 0 6 0;
#P connect 6 0 7 0;
#P connect 15 0 7 0;
#P connect 14 0 7 0;
#P connect 7 0 16 0;
#P connect 7 0 25 0;
#P connect 25 0 17 0;
#P connect 17 1 18 0;
#P connect 18 0 19 0;
#P connect 19 0 20 0;
#P connect 20 0 21 0;
#P connect 22 0 24 0;
#P fasten 23 0 24 0 349 539 192 539;
#P connect 26 0 24 0;
#P connect 17 2 18 1;
#P connect 17 3 18 2;
#P connect 17 4 18 3;
#P connect 20 1 23 0;
#P fasten 8 0 14 1 326 151 354 151;
#P fasten 11 0 15 1 321 194 354 194;
#P fasten 9 0 14 2 376 151 384 151;
#P fasten 12 0 15 2 372 194 387 194;
#P fasten 10 0 14 3 428 151 414 151;
#P fasten 13 0 15 3 423 194 420 194;
#P connect 29 0 27 0;
#P connect 27 0 26 0;
#P pop;

#108469
Jul 9, 2007 at 11:46pm

..i’ve looked at shatters and tiny video but actualy i can’t really understand how they do the trick..
thanks a lot for patience

#108470
Jul 10, 2007 at 4:09pm

if i understood you correctly, you just have to assign a texture to
jit.gl.mesh:

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 589 597 172 196617 jit.gl.texture particles @name noise;
#P newex 420 383 48 196617 loadbang;
#P user jit.fpsgui 20 174 60 196617 0;
#P button 436 418 15 0;
#P window linecount 3;
#P newex 446 446 316 196617 jit.gl.gridshape particles @shape plane
@automatic 0 @depth_enable 1 blend_enable 1 @smooth_shading 1
@lighting_enable 1 @scale 0.07 0.07 0.07 @displaylist 0 @matrixoutput 1;
#P window linecount 1;
#P newex 146 327 100 196617 jit.split @splitdim 1;
#P window linecount 2;
#P newex 187 546 339 196617 jit.gl.mesh particles @lighting_enable 1
@smooth_shading 1 @depth_enable 1 @blend_enable 1 @scale 0.07 0.07
0.07 @texture noise;
#P window linecount 1;
#P message 344 517 90 196617 position $1 $2 $3;
#P message 89 517 111 196617 color $1 0. 0. 1. , bang;
#P newex 187 493 139 196617 expr 1. – ((65. – $f1) / 65.);
#P newex 187 466 167 196617 zl slice 1;
#P newex 187 439 41 196617 jit.iter;
#P newex 187 412 53 196617 jit.pack 4;
#P newex 173 377 80 196617 jit.unpack 5;
#P newex 140 255 80 196617 jit.matrix point;
#P newex 316 196 110 196617 pak force 0. 0. 0.;
#P newex 319 153 100 196617 pak pos 0. 0. 0.;
#P flonum 418 177 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 367 177 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 316 177 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 423 134 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 371 134 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 321 135 72 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 118 226 172 196617 jit.p.vishnu @pitch 0.1 @yaw 0.1;
#P newex 118 185 143 196617 jit.p.shiva @life 60 @emit 10;
#P newex 118 163 149 196617 jit.matrix point 5 float32 50 2;
#P newex 3 662 214 196617 jit.window particles @depthbuffer 1 @sync 0;
#P newex 2 636 300 196617 jit.gl.render particles @erase_color 0. 0.
0. 1. @automatic 0;
#P newex 2 69 66 196617 t b b b erase;
#P newex 2 42 51 196617 qmetro 2;
#P toggle 1 0 40 0;
#P comment 536 561 122 196617
#P user panel 505 525 278 114;
#X brgb 255 255 255;
#X frgb 232 0 0;
#X border 4;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 24 0 26 0;
#P fasten 25 0 26 0 349 539 192 539;
#P connect 28 0 26 0;
#P connect 4 0 5 0;
#P connect 4 0 30 0;
#P connect 29 0 28 0;
#P connect 31 0 29 0;
#P fasten 15 0 17 3 423 194 420 194;
#P fasten 12 0 16 3 428 151 414 151;
#P fasten 14 0 17 2 372 194 387 194;
#P fasten 11 0 16 2 376 151 384 151;
#P fasten 13 0 17 1 321 194 354 194;
#P fasten 10 0 16 1 326 151 354 151;
#P connect 22 1 25 0;
#P connect 19 4 20 3;
#P connect 19 3 20 2;
#P connect 19 2 20 1;
#P connect 22 0 23 0;
#P connect 21 0 22 0;
#P connect 20 0 21 0;
#P connect 19 1 20 0;
#P connect 27 0 19 0;
#P connect 9 0 27 0;
#P connect 9 0 18 0;
#P connect 16 0 9 0;
#P connect 17 0 9 0;
#P connect 8 0 9 0;
#P connect 7 0 8 0;
#P connect 4 1 7 0;
#P connect 23 0 24 0;
#P fasten 4 3 5 0 61 148 7 148;
#P connect 3 0 4 0;
#P connect 2 0 3 0;
#P window clipboard copycount 33;

hth,
nesa

#108471
Jul 10, 2007 at 11:55pm

thank you nesa!

#108472

You must be logged in to reply to this topic.