keystoned, opengl


    Nov 08 2006 | 12:54 pm
    i have a problem with texture distortion, well, i want the texture to
    distort but it is not distorting evenly.
    seems like the nurbs surface is not a quad but triangles.
    max v2;

    • Nov 08 2006 | 12:57 pm
      oops, the texture grid should be connected to the gl.nurbs also
      On 11/8/06, yair reshef wrote:
      >
      > i have a problem with texture distortion, well, i want the texture to
      > distort but it is not distorting evenly.
      > seems like the nurbs surface is not a quad but triangles.
      >
      > max v2;
      > #N vpatcher 20 235 630 801;
      > #P origin 41 -1;
      > #P window setfont "Sans Serif" 9.;
      > #P number 267 102 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P window linecount 1;
      > #P message 268 127 57 9109513 tex_map $1;
      > #P hidden button 213 24 15 0;
      > #P newex 456 227 27 9109513 t b l;
      > #B color 5;
      > #P message 345 49 29 9109513 -1.;
      > #P hidden newex 235 21 55 9109513 loadbang;
      > #P message 206 52 106 9109513 position 0. 0. -3.5;
      > #P newex 356 324 127 9109513 jit.op @op pass + pass pass;
      > #P flonum 456 157 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P message 456 180 106 9109513 setcell 0 0 val $1 , bang;
      > #P newex 456 203 97 9109513 jit.matrix 1 float32 2 2;
      > #B color 5;
      > #P message 173 53 29 9109513 reset;
      > #P newex 356 348 89 9109513 prepend ctlmatrix;
      > #P window linecount 2;
      > #P newex 173 76 87 9109513 jit.gl.handle too @depth_enable 1;
      > #P window linecount 1;
      > #P newex 181 117 32 9109513 r nurb;
      > #P newex 356 373 34 9109513 s nurb;
      > #P window linecount 4;
      > #P newex 355 260 106 9109513 jit.gl.gridshape foo @automatic 0 @shape
      > plane @dim 2 2 @matrixoutput 1;
      > #P window linecount 2;
      > #P newex 173 151 110 9109513 jit.gl.nurbs too @dim 2 2 @order 1 1 @ctlshow
      > 1;
      > #P window linecount 1;
      > #P message 0 158 47 9109513 name too;
      > #P user jit.pwindow -5 240 322 242 1 0 0 0 1 0;
      > #X name too;
      > #P toggle 1 47 15 0;
      > #P newex 1 68 55 9109513 qmetro 200;
      > #P newex 1 95 53 9109513 t b b erase;
      > #P newex 1 130 70 9109513 jit.gl.render too;
      > #P message 78 89 85 9109513 texture grid 64 64;
      > #P connect 6 0 5 0;
      > #P connect 4 0 3 0;
      > #P connect 3 0 2 0;
      > #P fasten 0 0 1 0 83 126 6 126;
      > #P connect 2 0 1 0;
      > #P fasten 2 2 1 0 48 122 6 122;
      > #P hidden connect 19 0 0 0;
      > #P connect 18 0 11 0;
      > #P connect 13 0 11 0;
      > #P fasten 23 0 7 0 273 147 178 147;
      > #P connect 11 0 7 0;
      > #P connect 10 0 7 0;
      > #P hidden connect 19 0 18 0;
      > #P hidden connect 22 0 19 0;
      > #P connect 24 0 23 0;
      > #P hidden connect 19 0 20 0;
      > #P fasten 21 0 8 0 461 253 360 253;
      > #P connect 8 0 17 0;
      > #P connect 17 0 12 0;
      > #P connect 12 0 9 0;
      > #P fasten 20 0 16 0 350 72 461 72;
      > #P fasten 16 0 15 0 461 176 461 176;
      > #P connect 15 0 14 0;
      > #P connect 14 0 21 0;
      > #P connect 21 1 17 1;
      > #P pop;
      >
      >