mapping a movie or live video as texture for a .obj model

Nov 11, 2007 at 10:40pm

mapping a movie or live video as texture for a .obj model

Hi,
I am just starting to work with models and have been able to import .objs from blender just fine,, maped textures to them
but cannot seem to find where one can control the wraping
of the image.. I would like to be able to place image in specific part of model.. have tried jit.rota etc to image but doesn’t control the placement of the texture on the model.. only the texture in matrix.
tried help in jit.gl.texture and got message that my hardware didn’t support some of the messages (867 g4)
Thanks,
Phyllis

#34560
Nov 11, 2007 at 11:36pm

don’t know who posted this (probably wes), but it should get you started with texture placement on 3d objects.

#P window setfont “Sans Serif” 9.;
#P flonum 256 341 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 256 362 42 196617 rate $1;
#P message 143 332 83 196617 read dishes.mov;
#P message 190 362 27 196617 stop;
#P message 156 362 31 196617 start;
#P flonum 99 341 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 57 341 15 0;
#P newex 57 361 52 196617 metro 30;
#P message 220 362 31 196617 clear;
#P newex 57 386 63 196617 jit.qt.movie;
#P flonum 574 168 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 537 168 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 504 203 100 196617 pak anchor 0.5 0.5;
#N vpatcher 95 381 578 727;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 98 79 60 196617 unpack 0. 0.;
#P window linecount 1;
#P newex 32 47 123 196617 route theta zoom anchor;
#P window linecount 0;
#P newex 353 98 27 196617 t b l;
#P flonum 32 127 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 190 219 27 196617 * 1.;
#P newex 370 178 41 196617 * -1.;
#P newex 227 219 27 196617 * 1.;
#P newex 32 219 27 196617 * 1.;
#P newex 370 123 60 196617 unpack 0. 0.;
#P newex 353 76 79 196617 vexpr 1./$f1;
#P newex 69 219 41 196617 * -1.;
#P newex 32 149 100 196617 expr 0.5*cos($f1);
#P newex 209 149 97 196617 expr 0.5*sin($f1);
#P flonum 301 244 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 264 244 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 227 244 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 190 244 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 191 267 147 196617 pak tex_plane_t 0. 0.5 0. 0.5;
#P flonum 143 245 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 106 245 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 69 245 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 32 245 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 33 267 149 196617 pak tex_plane_s 0.5 0. 0. 0.5;
#P inlet 32 25 15 0;
#P outlet 33 297 15 0;
#P connect 1 0 23 0;
#P fasten 22 0 21 0 358 122 37 122;
#P connect 23 0 21 0;
#P connect 21 0 13 0;
#P connect 13 0 17 0;
#P connect 17 0 3 0;
#P connect 2 0 0 0;
#P fasten 7 0 0 0 196 291 38 291;
#P fasten 16 0 17 1 375 171 54 171;
#P fasten 3 0 2 1 37 263 72 263;
#P fasten 12 0 14 0 214 182 74 182;
#P connect 14 0 4 0;
#P connect 23 2 24 0;
#P fasten 19 0 14 1 375 208 91 208;
#P fasten 4 0 2 2 74 263 106 263;
#P fasten 5 0 2 3 111 263 140 263;
#P fasten 24 0 6 0 103 104 148 104;
#P fasten 6 0 2 4 148 263 174 263;
#P fasten 12 0 20 0 214 182 195 182;
#P connect 20 0 8 0;
#P fasten 16 1 20 1 425 213 212 213;
#P fasten 21 0 12 0 37 145 214 145;
#P fasten 8 0 7 1 195 263 230 263;
#P fasten 13 0 18 0 37 193 232 193;
#P connect 18 0 9 0;
#P fasten 16 1 18 1 425 213 249 213;
#P fasten 9 0 7 2 232 263 264 263;
#P fasten 10 0 7 3 269 263 298 263;
#P fasten 24 1 11 0 153 108 306 108;
#P fasten 11 0 7 4 306 263 332 263;
#P fasten 23 1 15 0 70 71 358 71;
#P connect 15 0 22 0;
#P connect 22 1 16 0;
#P connect 16 0 19 0;
#P pop;
#P newobj 312 219 94 196617 p TexCoordMagic;
#P message 312 192 56 196617 theta $1;
#P newex 312 167 107 196617 expr $f1*3.14/180;
#P flonum 436 143 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 473 167 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 436 167 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 406 190 70 196617 pak zoom 1. 1.;
#P flonum 312 147 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 104 203 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 66 203 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 29 203 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 26 224 99 196617 pak position 0. 0. 0.;
#P newex 58 414 339 196617 jit.gl.texture test @bordercolor 1 1 1 1 @wrap clampborder @name proj;
#P window linecount 2;
#P newex 26 252 308 196617 jit.gl.gridshape test @shape torus @color 1 1 1 1 @lighting_enable 1 @scale 0.2 0.2 0.2 @tex_map 1 @texture proj;
#P window linecount 1;
#N vpatcher 10 59 171 198;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 74 79 41 196617 s draw;
#P window linecount 1;
#P newex 50 50 58 196617 t b b erase;
#P inlet 50 30 15 0;
#P outlet 50 79 15 0;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P fasten 2 2 0 0 103 73 55 73;
#P lcolor 13;
#P connect 2 1 3 0;
#P pop;
#P newobj 13 104 42 196617 p Draw;
#P message 107 104 70 196617 fullscreen $1;
#N vpatcher 10 59 170 225;
#P window setfont “Sans Serif” 9.;
#P newex 50 72 38 196617 sel 27;
#P newex 50 50 40 196617 key;
#P outlet 50 94 15 0;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P pop;
#P newobj 107 64 33 196617 p Esc;
#P toggle 107 85 15 0;
#P newex 107 124 151 196617 jit.window test @depthbuffer 1;
#P newex 13 82 57 196617 qmetro 33;
#P toggle 13 62 15 0;
#P newex 13 125 86 196617 jit.gl.render test;
#P connect 24 0 22 2;
#P connect 23 0 22 1;
#P connect 18 0 16 0;
#P fasten 18 0 17 0 441 162 478 162;
#P fasten 17 0 15 2 478 186 471 186;
#P connect 16 0 15 1;
#P connect 22 0 21 0;
#P connect 20 0 21 0;
#P fasten 15 0 21 0 411 215 317 215;
#P connect 19 0 20 0;
#P connect 14 0 19 0;
#P connect 34 0 33 0;
#P connect 13 0 10 3;
#P connect 6 0 3 0;
#P connect 4 0 6 0;
#P connect 5 0 4 0;
#P connect 29 0 27 1;
#P connect 12 0 10 2;
#P connect 25 0 9 0;
#P fasten 32 0 25 0 148 381 62 381;
#P fasten 30 0 25 0 161 381 62 381;
#P fasten 31 0 25 0 195 381 62 381;
#P fasten 26 0 25 0 225 381 62 381;
#P fasten 33 0 25 0 261 381 62 381;
#P fasten 27 0 25 0 62 382 62 382;
#P connect 28 0 27 0;
#P connect 11 0 10 1;
#P connect 10 0 8 0;
#P connect 21 0 8 0;
#P connect 7 0 0 0;
#P connect 2 0 7 0;
#P connect 1 0 2 0;
#P window clipboard copycount 35;

#116875
Nov 15, 2007 at 6:07am

Thanks so much.. funny I have been using my 867 desktop to work things out then transfer to my pb ppc ..seems jit.gl.texture has elements that don’t work with the 867 graphics card & are fine on the powerbook.. so dugh finally realized & I got the patch to work with(mapping)the animated models I’m experimenting with on the PB.. I just got a new intel pb but am waiting til the leopard issue is sorted out & I imagine M5 will have other features to help.. I,m doing well considering my non tech history & do appreciate you digging up the patch for me.
best,
P

#116876
Nov 15, 2007 at 3:01pm

Thanks Rob and whoever originally posted the patch. This is great!

Zachary

#116877

You must be logged in to reply to this topic.