Forums > Jitter

particle and model

March 7, 2006 | 12:03 pm

i


March 7, 2006 | 11:24 pm

I’m doing some similar stuff, Martin, but hard to know exactly what you’re trying here . . . got a sample patch, or can you give more details of what you’re doing and what’s going wrong?


March 8, 2006 | 8:08 pm

it seems to me quite simple but it is not like that, i suggest.
ok, i


March 8, 2006 | 9:39 pm

Hello Martin,
Most likely, this is a simple problem, but it is impossible for anyone
to help you unless you give us a look at your patch. I would be happy
to look at it and offer advice.

For reference, the Jitter Recipe Book has several examples of using
particle system techniques.

Cheers,
Andrew B.


March 8, 2006 | 9:47 pm

I would really take it apart and look closely at things like where you’re triggering erases, and even simple things like color. You can easily wind up erasing things before they’re ever drawn in OpenGL. (I know, because I made some simple mistakes when I was learning OpenGL in Jitter where I did just that!) Multiple particle systems in the same render context should absolutely be possible, but it does compound the possibilities for human error along the way.


March 8, 2006 | 10:10 pm

sorry for that … i know it


March 8, 2006 | 10:18 pm

Well,
You’ve obviously made some patches. It’s really really hard to see
what you’re doing without seeing them. Why don’t you post one of your
patches?

wes


March 8, 2006 | 11:43 pm

ok … what i found out is just simple add one and one matrix by using jit.concat and it is working but pretty ugly … so all i ask is is there a much nicer way to do so. may be way to change the mode for different systems …
martin. apologise …

#P flonum 407 116 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 355 116 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 303 116 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 123 195 130 9109513 jit.p.shiva @life 20 @emit 10;
#P newex 192 252 191 9109513 jit.matrix 3 float32 1000 2 @planemap 2 3 4;
#P newex 123 170 140 9109513 jit.matrix pointl 5 float32 1000 2;
#P message -462 155 27 9109513 lines;
#P newex -27 95 67 9109513 jit.matrix point;
#P newex -464 131 72 9109513 jit.matrix points;
#P newex 2 64 147 9109513 jit.p.vishnu @pitch 0.1 @yaw 0.1;
#P newex -416 387 85 9109513 jit.window particles;
#P newex 184 22 85 9109513 pak force 0. 0. 0.;
#P newex 182 -23 75 9109513 pak pos 0. 0. 0.;
#P flonum 286 3 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 235 3 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 184 3 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 286 -42 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 234 -42 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 182 -42 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex -237 42 85 9109513 pak force 0. 0. 0.;
#P newex -239 -3 75 9109513 pak pos 0. 0. 0.;
#P flonum -135 23 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum -186 23 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum -237 23 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum -135 -22 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum -187 -22 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum -237 -21 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex -424 62 147 9109513 jit.p.vishnu @pitch 0.1 @yaw 0.1;
#P newex -436 26 130 9109513 jit.p.shiva @life 20 @emit 10;
#P newex 2 37 130 9109513 jit.p.shiva @life 20 @emit 10;
#P newex 71 94 191 9109513 jit.matrix 3 float32 1000 2 @planemap 2 3 4;
#P newex 2 12 138 9109513 jit.matrix point 5 float32 1000 2;
#P newex -402 311 196 9109513 jit.gl.render particles @erase_color 0. 0. 0. 1.;
#P newex -402 283 53 9109513 t erase b s;
#P newex -368 102 191 9109513 jit.matrix 3 float32 1000 2 @planemap 2 3 4;
#P newex -437 1 143 9109513 jit.matrix points 5 float32 1000 2;
#P newex -437 -29 50 9109513 qmetro 30;
#P toggle -437 -52 15 0;
#P newex -117 181 46 9109513 jit.concat;
#P connect 44 0 45 0;
#P connect 44 0 34 0;
#P connect 29 0 31 0;
#P connect 29 0 8 0;
#P connect 11 0 30 0;
#P connect 11 0 4 0;
#P connect 2 0 3 0;
#P connect 2 0 7 0;
#P connect 2 0 33 0;
#P fasten 41 0 43 3 412 178 385 178;
#P fasten 38 0 42 3 412 133 371 133;
#P fasten 40 0 43 2 361 178 360 178;
#P fasten 37 0 42 2 360 133 350 133;
#P fasten 39 0 43 1 310 178 335 178;
#P fasten 36 0 42 1 308 133 329 133;
#P fasten 25 0 27 3 291 20 264 20;
#P fasten 22 0 26 3 291 -25 250 -25;
#P fasten 24 0 27 2 240 20 239 20;
#P fasten 21 0 26 2 239 -25 229 -25;
#P fasten 23 0 27 1 189 20 214 20;
#P fasten 20 0 26 1 187 -25 208 -25;
#P connect 35 0 44 0;
#P connect 43 0 44 0;
#P connect 42 0 44 0;
#P connect 33 0 35 0;
#P connect 26 0 29 0;
#P connect 27 0 29 0;
#P connect 9 0 29 0;
#P connect 7 0 9 0;
#P connect 8 0 0 1;
#P connect 4 0 0 0;
#P connect 34 0 46 1;
#P connect 0 0 46 0;
#P fasten 17 0 19 3 -130 40 -157 40;
#P fasten 14 0 18 3 -130 -5 -171 -5;
#P fasten 16 0 19 2 -181 40 -182 40;
#P fasten 13 0 18 2 -182 -5 -192 -5;
#P fasten 15 0 19 1 -232 40 -207 40;
#P fasten 12 0 18 1 -232 -5 -213 -5;
#P connect 5 0 6 0;
#P connect 5 1 6 0;
#P connect 5 2 6 0;
#P connect 32 0 6 0;
#P connect 46 0 5 0;
#P connect 18 0 11 0;
#P connect 10 0 11 0;
#P connect 19 0 11 0;
#P connect 3 0 10 0;
#P connect 1 0 2 0;
#P window clipboard copycount 47;


March 8, 2006 | 11:59 pm

Hi Kern,
Try this method. It should give you more of what you’re looking for.

Cheers,
Andrew B.

#P window linecount 1;
#P newex 183 361 80 9109513 jit.matrix point;
#P newex 361 309 110 9109513 pak force 0. 0. 0.;
#P newex 364 266 100 9109513 pak pos 0. 0. 0.;
#P flonum 463 290 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 412 290 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 361 290 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 468 247 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 416 247 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 366 248 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 163 339 172 9109513 jit.p.vishnu @pitch 0.1 @yaw 0.1;
#P newex 163 298 155 9109513 jit.p.shiva @life 20 @emit 10;
#P newex 163 384 206 9109513 jit.matrix 3 float32 1000 @planemap 2 3 4;
#P newex 163 276 161 9109513 jit.matrix point 5 float32 1000 2;
#P newex 163 405 354 9109513 jit.gl.mesh particles @draw_mode points
@color 1. 0.4 0.4 1. @point_size 5;
#P newex 602 359 85 9109513 jit.matrix points;
#P newex 48 460 101 9109513 jit.window particles;
#P newex 780 307 110 9109513 pak force 0. 0. 0.;
#P newex 783 264 100 9109513 pak pos 0. 0. 0.;
#P flonum 882 288 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 831 288 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 780 288 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 887 245 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 835 245 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 785 246 72 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 582 337 172 9109513 jit.p.vishnu @pitch 0.1 @yaw 0.1;
#P newex 582 296 155 9109513 jit.p.shiva @life 20 @emit 10;
#P newex 47 434 221 9109513 jit.gl.render particles @erase_color 0. 0.
0. 1.;
#P newex 47 182 66 9109513 t erase b b b;
#P newex 582 382 206 9109513 jit.matrix 3 float32 1000 @planemap 2 3 4;
#P newex 582 274 168 9109513 jit.matrix points 5 float32 1000 2;
#P newex 47 155 75 9109513 qmetro 30;
#P toggle 46 113 40 0;
#P newex 582 403 354 9109513 jit.gl.mesh particles @draw_mode points
@color 0.4 1. 0.4 1. @point_size 5;
#P connect 23 0 21 0;
#P connect 23 0 32 0;
#P connect 8 0 4 0;
#P connect 8 0 18 0;
#P connect 4 0 0 0;
#P connect 21 0 19 0;
#P connect 20 0 22 0;
#P fasten 5 2 20 0 88 256 168 256;
#P fasten 29 0 31 3 468 307 465 307;
#P fasten 26 0 30 3 473 264 459 264;
#P fasten 28 0 31 2 417 307 432 307;
#P fasten 25 0 30 2 421 264 429 264;
#P fasten 27 0 31 1 366 307 399 307;
#P fasten 24 0 30 1 371 264 399 264;
#P connect 30 0 23 0;
#P connect 22 0 23 0;
#P connect 31 0 23 0;
#P fasten 5 3 3 0 106 224 587 224;
#P connect 2 0 5 0;
#P fasten 5 1 6 0 70 332 52 332;
#P connect 5 0 6 0;
#P connect 1 0 2 0;
#P connect 3 0 7 0;
#P connect 16 0 8 0;
#P connect 7 0 8 0;
#P connect 15 0 8 0;
#P fasten 9 0 15 1 790 262 818 262;
#P fasten 12 0 16 1 785 305 818 305;
#P fasten 10 0 15 2 840 262 848 262;
#P fasten 13 0 16 2 836 305 851 305;
#P fasten 11 0 15 3 892 262 878 262;
#P fasten 14 0 16 3 887 305 884 305;
#P window clipboard copycount 33;


March 9, 2006 | 1:43 am

what to say besides THANKS …
martin.


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