[jitter] Re: Slab on a jit.gl.model
Andrew Benson
andrewb at cycling74.com
Wed Apr 16 11:08:54 MDT 2008
- Previous message: [jitter] Re: Slab on a jit.gl.model
- Next message: [jitter] [OT] [JOB] inexpensive projection design in NYC
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ugh. If I had a nickel for every time someone got snarled up working with that particle/model example... Anyways, I think you'd be well served to look at jit.gl.multiple for doing the particle drawing stuff, or using "to_texture" instead of @capture to do your rendering to texture. I don't think capture will do what you want it to with the jit.iter method of particle rendering. Attached you'll find a version of your particle drawing -> capture stuff that works. I removed all the other stuff for the sake of legibility... Best, Andrew B. #P window setfont "Sans Serif" 9.; #P flonum 657 356 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 1; #P message 657 375 193 196617 param slide_up \$1 \, param slide_down \$1; #P newex 393 521 312 196617 jit.gl.multiple romulus 1 @targetname psystem @glparams position; #P newex 627 462 108 196617 jit.gl.texture romulus; #B color 5; #P newex 584 432 172 196617 jit.gl.slab romulus @file tp.slide.jxs; #B color 5; #P newex 584 403 234 196617 jit.gl.texture romulus @dim 640 480 @name supe; #B color 5; #P newex 586 492 281 196617 jit.gl.videoplane romulus @transform_reset 2 @automatic 0; #B color 5; #P newex 545 285 50 196617 t erase b; #P number 268 29 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 262 129 53 196617 t b b b b; #P message 174 29 26 196617 read; #B color 6; #P hidden newex 0 255 42 196617 r numb1; #P window linecount 2; #P newex 281 582 359 196617 jit.gl.model romulus @smooth_shading 1 @lighting_enable 1 @depth_enable 1 @drawgroup 1 @blend_enable 1 @automatic 0 @capture supe @name psystem; #B color 5; #P window linecount 1; #P hidden message 41 121 14 196617 1; #P hidden newex 41 94 45 196617 loadbang; #P user jit.fpsgui 586 339 60 196617 0; #P message 372 86 68 196617 fullscreen \$1; #P toggle 350 88 15 0; #P newex 397 61 35 196617 sel 27; #P newex 355 61 40 196617 key; #P hidden newex 444 319 45 196617 loadbang; #P window linecount 2; #P newex 612 269 109 196617 jit.gl.handle romulus @inherit_transform 1; #P window linecount 1; #P message 517 430 48 196617 dim \$1 1; #P hidden message 391 396 53 196617 splitdim 1; #P toggle 24 310 15 0; #P comment 251 180 118 196617 messages to p-vishnu ->; #P newex 141 221 99 196617 pak init_var 0. 0. 0.; #P flonum 245 202 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 193 202 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 141 202 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 130 176 75 196617 pak init 0. 0. 0.; #P flonum 234 157 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 182 157 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 130 157 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 43 255 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 46 310 45 196617 mode \$1; #P newex 329 264 85 196617 pak force 0. 0. 0.; #P newex 327 219 75 196617 pak pos 0. 0. 0.; #P newex 393 501 170 196617 jit.unpack 2 @jump 3 2 @offset 2 0; #P message 43 286 48 196617 dim \$1 2; #P newex 314 339 59 196617 jit.p.vishnu; #B color 5; #P newex 124 406 170 196617 jit.matrix brahma 5 float32 1000 2; #P newex 144 309 178 196617 jit.matrix brahma 5 float32 1000 2; #P newex 130 333 54 196617 jit.p.shiva; #B color 5; #P number 65 201 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 65 221 65 196617 emit_var \$1; #P number 15 201 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 15 221 43 196617 emit \$1; #P flonum 431 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 380 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 329 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P number 65 158 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 65 177 60 196617 life_var \$1; #P number 15 160 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 15 177 38 196617 life \$1; #P flonum 533 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 533 264 70 196617 speed_var \$1; #P flonum 483 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 483 264 48 196617 speed \$1; #P flonum 533 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 533 219 64 196617 yaw_var \$1; #P flonum 483 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 483 219 42 196617 yaw \$1; #P flonum 533 157 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 533 176 65 196617 pitch_var \$1; #P flonum 431 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 372 114 263 196617 jit.window romulus @rect 10 320 330 560 @floating 1; #P newex 586 319 289 196617 jit.gl.render romulus @blend_mode 1 @erase_color 0. 0. 0. 1.; #P newex 364 449 42 196617 jit.split; #P flonum 379 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 327 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 483 151 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 483 176 45 196617 pitch \$1; #P number 303 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P toggle 120 29 31 0; #P newex 263 105 51 196617 qmetro 5; #P comment 83 260 75 196617 no. of particles; #P comment 284 165 113 196617 <- messages to p-shiva; #P window linecount 0; #P comment 14 339 115 196617; #P window linecount 1; #P comment 121 71 35 196617 start; #B color 6; #P comment 162 71 88 196617 read 3D obj file; #P comment 247 71 96 196617 set nr of particles; #P connect 77 0 75 0; #P connect 77 0 78 0; #P connect 72 1 76 0; #P connect 72 1 75 0; #P connect 47 0 42 0; #P fasten 47 0 59 0 48 281 522 281; #P fasten 46 0 38 0 51 334 135 334; #P fasten 46 0 41 0 51 334 319 334; #P fasten 42 0 40 0 48 306 135 306 135 334 192 334 192 368 129 368; #P fasten 42 0 39 0 48 306 149 306; #P fasten 41 0 40 0 319 388 129 388; #P fasten 41 0 13 0 319 438 369 438; #P connect 81 0 80 0; #P connect 80 0 77 0; #P connect 71 0 69 0; #P connect 43 0 79 0; #P fasten 78 0 77 1 751 447; #P connect 76 0 77 0; #P fasten 13 0 43 0 369 476 398 476; #P fasten 59 0 43 0 522 491 437 491 437 476 398 476; #P connect 8 0 6 1; #P connect 7 0 6 0; #P connect 6 0 72 0; #P connect 74 0 14 0; #P connect 74 1 14 0; #P connect 72 2 74 0; #P connect 14 0 66 0; #P fasten 60 0 14 0 617 306 591 306; #P hidden fasten 61 0 58 0 449 390 396 390; #P fasten 62 0 63 0 396 78 396 63; #P connect 65 0 15 0; #P connect 64 0 65 0; #P fasten 63 0 64 0 402 84 355 84; #P connect 26 0 25 0; #P connect 22 0 21 0; #P connect 18 0 17 0; #P connect 24 0 23 0; #P connect 20 0 19 0; #P connect 10 0 9 0; #P fasten 33 0 45 3 436 262 409 262; #P fasten 16 0 44 3 436 217 395 217; #P fasten 32 0 45 2 385 262 384 262; #P fasten 12 0 44 2 384 217 374 217; #P hidden fasten 58 0 13 0 396 439 369 439; #P fasten 31 0 45 1 334 262 359 262; #P fasten 11 0 44 1 332 217 353 217; #P fasten 45 0 41 0 334 285 319 285; #P fasten 44 0 41 0 332 240 319 240; #P fasten 9 0 41 0 488 196 319 196; #P fasten 17 0 41 0 538 196 319 196; #P fasten 19 0 41 0 488 240 319 240; #P fasten 21 0 41 0 538 240 319 240; #P fasten 23 0 41 0 488 285 319 285; #P fasten 25 0 41 0 538 285 319 285; #P fasten 38 0 41 0 135 360 297 360 297 334 319 334; #P fasten 54 0 55 3 250 219 233 219; #P fasten 53 0 55 2 198 219 204 219; #P fasten 50 0 51 3 239 174 198 174; #P fasten 49 0 51 2 187 174 177 174; #P fasten 52 0 55 1 146 219 175 219; #P fasten 48 0 51 1 135 174 156 174; #P connect 72 3 39 0; #P connect 51 0 38 0; #P fasten 55 0 38 0 146 287 135 287; #P fasten 36 0 38 0 70 241 135 241; #P fasten 34 0 38 0 20 241 135 241; #P fasten 29 0 38 0 70 198 135 198; #P fasten 27 0 38 0 20 198 135 198; #P fasten 39 0 38 0 149 330 135 330; #P lcolor 9; #P connect 37 0 36 0; #P connect 30 0 29 0; #P fasten 57 0 46 0 29 328 41 328 41 306 51 306; #P hidden connect 68 0 47 0; #P hidden connect 70 0 47 0; #P connect 73 0 47 0; #P hidden connect 67 0 68 0; #P connect 35 0 34 0; #P connect 28 0 27 0; #P window clipboard copycount 82;
- Previous message: [jitter] Re: Slab on a jit.gl.model
- Next message: [jitter] [OT] [JOB] inexpensive projection design in NYC
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
