[jitter] camera affects mesh and videoplane
vade
doktorp at mac.com
Wed Aug 29 17:13:51 MDT 2007
- Previous message: [jitter] camera affects mesh and videoplane
- Next message: [jitter] camera affects mesh and videoplane
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Use automatic 0, and reset the camera position to whatever you want before you draw the video plane, then change it for the mesh? Check the docs on automatic 0. I havent looked at the patch, but that is the answer :) On Aug 29, 2007, at 6:31 PM, Ranja Achbar wrote: > Is there a way to use the camera (lookat, up, lens angle) for a > specific object. In this patch i only want to control the camera to > the mesh object, not to the videoplane. > > > Both mesh and videoplane are affected by the camera when using the > same name. Can I use drawto here and how? Or something else? > > cheers, > ra. > > max v2; > #N vpatcher 656 123 1586 834; > #P window setfont "Sans Serif" 9.; > #P window linecount 1; > #P message 508 530 59 9109513 drawto temp; > #B color 5; > #P message 508 485 52 9109513 drawto foo; > #B color 5; > #P flonum 226 176 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P flonum 185 176 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P flonum 135 176 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P newex 136 209 96 9109513 pak rotatexyz 0. 0. 0.; > #P window linecount 3; > #P comment 230 409 100 9109513 mesh and videoplane are both > affected by the camera; > #P user panel 230 408 103 47; > #X brgb 255 207 251; > #X frgb 0 0 0; > #X border 1; > #X rounded 0; > #X shadow 0; > #X done; > #P window linecount 1; > #P hidden message 382 79 14 9109513 1; > #P hidden message 343 83 14 9109513 2; > #P hidden message 102 361 18 9109513 45; > #P number 31 402 35 9 1 180 3 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P message 31 428 65 9109513 lens_angle \$1; > #P newex 94 580 45 9109513 r camera; > #P newex 96 533 47 9109513 s camera; > #P flonum 413 468 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P flonum 335 468 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P flonum 374 468 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P newex 315 498 84 9109513 pak lookat 0. 0. 0.; > #P flonum 287 468 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P flonum 209 468 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P flonum 248 468 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P newex 189 498 69 9109513 pak up 0. 0. 0.; > #P flonum 126 468 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P flonum 48 468 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P flonum 87 468 35 9 0 0 0 139 0 0 0 255 92 174 222 222 222 0 0 0; > #P newex 28 498 90 9109513 pak camera 0. 0. 2.; > #P newex 707 270 119 9109513 jit.gl.handle foo @visible 0; > #P message 745 452 43 9109513 dispose; > #P message 638 452 85 9109513 read cf.sobel.jxs; > #N vpatcher 1261 481 1831 1122; > #P window setfont "Sans Serif" 9.; > #P window linecount 0; > #P newex 332 396 27 9109513 gate; > #P outlet 432 500 15 0; > #P outlet 228 499 15 0; > #P inlet 349 370 15 0; > #P newex 183 119 52 9109513 metro 50; > #P newex 432 470 27 9109513 / 2.; > #P newex 228 469 27 9109513 / 2.; > #P message 432 412 31 9109513 \$1 5; > #P newex 432 438 43 9109513 bline 0.; > #P message 228 412 31 9109513 \$1 5; > #P newex 228 438 43 9109513 bline 0.; > #P number 432 391 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; > #P newex 432 341 27 9109513 t b i; > #P newex 432 363 44 9109513 accum; > #P number 228 391 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; > #P newex 228 341 27 9109513 t b i; > #P newex 228 363 44 9109513 accum; > #P number 432 300 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; > #P newex 239 247 27 9109513 -; > #P newex 211 270 27 9109513 t b i; > #P number 228 300 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; > #P newex 211 247 27 9109513 -; > #P newex 14 112 31 9109513 sel 1; > #P newex 183 140 124 9109513 MouseState; > #P window linecount 2; > #P message 14 324 96 9109513 \; max pupdate \$1 \$2; > #P window linecount 1; > #P newex 14 300 56 9109513 pack 0 0; > #P newex 60 219 34 9109513 * 0.5; > #P newex 14 218 34 9109513 * 0.5; > #P newex 60 195 27 9109513 !-; > #P newex 14 193 27 9109513 !-; > #P newex 14 162 75 9109513 unpack 0 0 0 0; > #P newex 14 137 55 9109513 screensize; > #P toggle 183 74 24 0; > #P newex 183 53 38 9109513 sel 109; > #P newex 183 31 40 9109513 key; > #P comment 224 57 150 9109513 hit "m" for mouse controll of object; > #P fasten 3 0 13 0 188 103 19 103; > #P connect 13 0 4 0; > #P connect 4 0 5 0; > #P connect 5 0 6 0; > #P connect 6 0 8 0; > #P connect 8 0 10 0; > #P fasten 16 0 10 0 216 291 19 291; > #P connect 10 0 11 0; > #P connect 5 2 6 1; > #P connect 5 1 7 0; > #P connect 7 0 9 0; > #P connect 9 0 10 1; > #P connect 5 3 7 1; > #P connect 1 0 2 0; > #P connect 2 0 3 0; > #P connect 3 0 31 0; > #P connect 31 0 12 0; > #P connect 12 1 14 0; > #P connect 14 0 16 0; > #P fasten 8 0 14 1 19 242 233 242; > #P connect 16 1 15 0; > #P connect 15 0 20 0; > #P connect 20 0 19 0; > #P connect 19 0 21 0; > #P connect 21 0 26 0; > #P fasten 35 0 25 0 337 430 233 430; > #P connect 26 0 25 0; > #P connect 25 0 29 0; > #P connect 29 0 33 0; > #P connect 12 2 17 0; > #P connect 20 1 19 1; > #P fasten 9 0 17 1 65 240 261 240; > #P fasten 3 0 35 0 188 108 337 108; > #P connect 32 0 35 1; > #P fasten 17 0 18 0 244 282 437 282; > #P connect 18 0 23 0; > #P connect 23 0 22 0; > #P connect 22 0 24 0; > #P connect 24 0 28 0; > #P connect 28 0 27 0; > #P fasten 35 0 27 0 337 431 437 431; > #P connect 27 0 30 0; > #P connect 30 0 34 0; > #P connect 23 1 22 1; > #P pop; > #P newobj 135 146 60 9109513 p mouse_rot; > #P message 806 56 26 9109513 read; > #P user jit.pwindow 714 119 82 62 0 1 0 0 1 0; > #P newex 684 56 40 9109513 r movie; > #P newex 52 203 42 9109513 s movie; > #P message 729 56 73 9109513 read dozer.mov; > #P newex 684 86 55 9109513 jit.qt.movie; > #P window linecount 2; > #P newex 684 190 192 9109513 jit.matrix 4 char 320 240 @usesrcdim 1 > @srcdimstart 0 6 @srcdimend 319 234; > #P window linecount 1; > #P newex 684 229 74 9109513 jit.gl.texture foo; > #P hidden newex 348 47 45 9109513 loadbang; > #P newex 338 233 129 9109513 jit.matrix 3 float32 20 20; > #P hidden button 348 141 15 0; > #P newex 386 168 71 9109513 prepend shape; > #P user ubumenu 386 142 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 <none> 0; > #X pattrmode 1; > #P newex 372 196 276 9109513 jit.gl.gridshape @matrixoutput 1 > @shape plane @blend_enable 0; > #P newex 66 180 49 9109513 s process; > #P newex 571 391 47 9109513 r process; > #P newex 614 421 246 9109513 jit.gl.texture foo @name shaderprocess > @dim 1280 1080; > #P newex 593 482 62 9109513 jit.gl.slab foo; > #B color 14; > #P newex 593 589 172 9109513 jit.gl.videoplane foo @scale 1.333 1. 1.; > #P newex 24 124 69 9109513 t b erase b b b; > #P window linecount 2; > #P newex 338 273 338 9109513 jit.gl.mesh foo @auto_normals 1 > @lighting_enable 1 @smooth_shading 1 @color 0.9 0.9 0.9 0.9 > @tex_map 2 @blend_enable 1 @capture shaderprocess; > #P window linecount 1; > #P newex 65 66 172 9109513 jit.window foo @depthbuffer 1 @fsaa 1; > #P newex 13 618 71 9109513 jit.gl.render foo; > #P toggle 23 64 33 0; > #P newex 24 99 51 9109513 qmetro 5; > #P window linecount 4; > #P comment 199 117 88 9109513 hit 'm' to use the mouse for rotation > or change the numbers; > #P user panel 199 117 103 55; > #X brgb 255 207 251; > #X frgb 0 0 0; > #X border 1; > #X rounded 0; > #X shadow 0; > #X done; > #P fasten 7 1 4 0 43 219 18 219; > #P fasten 7 0 4 0 29 219 18 219; > #P fasten 44 0 4 0 99 610 18 610; > #P connect 3 0 2 0; > #P connect 2 0 7 0; > #P hidden connect 47 0 46 0; > #P connect 46 0 45 0; > #P connect 7 2 23 0; > #P fasten 33 0 31 1 53 495 59 495; > #P connect 7 3 12 0; > #P fasten 32 0 31 2 92 495 85 495; > #P fasten 45 0 43 0 36 452 170 452 170 521 101 521; > #P fasten 35 0 43 0 194 522 101 522; > #P fasten 39 0 43 0 320 522 101 522; > #P fasten 31 0 43 0 33 522 101 522; > #P hidden connect 18 0 47 0; > #P fasten 34 0 31 3 131 495 111 495; > #P hidden connect 48 0 34 0; > #P fasten 7 4 27 0 85 155 130 155 130 139 140 139; > #P connect 27 0 53 0; > #P fasten 54 0 52 1 190 198 169 198; > #P connect 27 1 54 0; > #P fasten 53 0 52 2 140 201 197 201; > #P connect 37 0 35 1; > #P fasten 55 0 52 3 231 201 225 201; > #P fasten 36 0 35 2 253 493 232 493; > #P fasten 38 0 35 3 292 491 251 491; > #P fasten 13 0 17 0 377 225 343 225; > #P fasten 30 0 6 0 712 296 695 296 695 266 343 266; > #P connect 17 0 6 0; > #P fasten 19 0 6 0 689 259 343 259; > #P fasten 52 0 6 0 141 264 343 264; > #P fasten 41 0 39 1 340 495 344 495; > #P hidden connect 18 0 48 0; > #P hidden connect 14 0 16 0; > #P fasten 40 0 39 2 379 495 368 495; > #P hidden fasten 16 0 13 0 353 176 377 176; > #P fasten 15 0 13 0 391 190 377 190; > #P hidden connect 18 0 49 0; > #P hidden connect 49 0 14 0; > #P fasten 14 1 15 0 422 163 391 163; > #P fasten 42 0 39 3 418 495 392 495; > #P fasten 29 0 9 0 750 477 598 477; > #P fasten 28 0 9 0 643 477 598 477; > #P fasten 10 0 9 0 619 447 598 447; > #P fasten 57 0 8 0 513 551 598 551; > #P fasten 56 0 8 0 513 524 598 524; > #P connect 9 0 8 0; > #P fasten 11 0 10 0 576 416 619 416; > #P hidden connect 18 0 28 0; > #P fasten 22 0 21 0 734 80 689 80; > #P connect 24 0 21 0; > #P fasten 26 0 21 0 811 80 689 80; > #P fasten 21 0 20 0 689 171 689 171; > #P connect 20 0 19 0; > #P fasten 21 0 25 0 689 116 720 116; > #P hidden connect 18 0 22 0; > #P pop; > > _______________________________________________ > jitter mailing list > jitter at cycling74.com > http://www.cycling74.com/mailman/listinfo/jitter v a d e // www.vade.info abstrakt.vade.info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/jitter/attachments/20070829/9b4d3bdd/attachment.htm
- Previous message: [jitter] camera affects mesh and videoplane
- Next message: [jitter] camera affects mesh and videoplane
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
