What is TEX_MAP and with what it eat?

Mar 7, 2008 at 8:54pm

What is TEX_MAP and with what it eat?

In one of helps i found method of creating texture and one of parameters for jit.gl.nurbs is “tex_map”, in mode “2″ of this was wonderful effect of mirrored texture, but wery magnifyed!!
And in NO MORE helps I’m not found this parameter! Please sorry for bad english and advice to understand how to make not magnyfied image and keep this wonderful mirror effect!!!!

Thank you wery much for your time !!!!
Serg Komarov
Russia
SPb

#36254
Mar 8, 2008 at 3:33pm

Hi there,

tex_map is documented on page 306 of Jitter tutorial 15. You will find an example of it’s use in the jit.gl.model help file.

Mode 2 is sphere mode. It is just another way of applying the texture you’ve already created. To make it work (as you may have noticed you have to select the tex_map mode before applying the texture. You can alter this the way you would any source (you mentioned magnification?) such as jit.qt.movie. Maybe try a jit.rota? I have not yet tried changing the planemap but you can try it in the jit.gl.model help file.

#124284
Mar 8, 2008 at 5:00pm

perhaps wes smiths texplane manipulator patch will help.
send the output of the subpatcher to the gl object you are applying the texture to.
-rob

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 18 147 78 196617 jit.gl.model foo;
#P newex 191 84 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 18 116 94 196617 p TexCoordMagic;
#P message 18 86 56 196617 theta $1;
#P newex 18 61 107 196617 expr $f1*3.14/180;
#P flonum 142 38 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 179 61 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 142 61 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 112 84 70 196617 pak zoom 1. 1.;
#P flonum 18 38 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P connect 7 0 9 0;
#P connect 4 0 2 0;
#P fasten 4 0 3 0 147 56 184 56;
#P connect 0 0 5 0;
#P connect 5 0 6 0;
#P fasten 8 0 7 0 196 107 23 107;
#P connect 6 0 7 0;
#P fasten 1 0 7 0 117 109 23 109;
#P connect 2 0 1 1;
#P fasten 3 0 1 2 184 80 177 80;
#P window clipboard copycount 10;

#124285
Mar 8, 2008 at 5:37pm

ohh! this texture scaling and rotating works only in “tex_map 1″(object space) and “tex_map 3″(eye map) mode ((
in needed “tex_map 2″(reflection) it’s keep magnyfied and nothing is happend
((
p.s. i tryed apply this texture to jit.gl.hurbs

#124286
Mar 25, 2008 at 7:04pm

hi there! for this moment, i don’t have good quality of texture in “tex_map 2″ (reflection) mode (((((
if you known, how to do it – you are my hero!!!
;-D

from Russia with love!

#124287

You must be logged in to reply to this topic.