displaylist=1, possible?


    Oct 30 2006 | 4:55 pm
    hi, im looking to use the drawobject for text3d, i need to set the displaylist to 1. in js.
    possible?
    for now i position the js created text3d object offscreen. but this is notgood (?)
    max v2;
    ///text5.js//
    var myText = new JitterObject("jit.gl.text3d","tab");
    //myText.automatic = 0;
    myText.name = "t3d1";
    myText.align = 1;
    myText.lighting_enable = 1;
    myText.color = [1,1,0,1]
    myText.depth = 0.5;
    myText.position = [-30,0,0]; //better then center
    myText.scale = [0.1,0.1,0.1];
    myText.font("Geneva");
    myText.text("Why?");
    myText.displaylist=1; //not working
    //////////////
    and so sorry for the line breaks ;)

    • Oct 31 2006 | 8:12 am
      changed it a bit, does anybody have an idea why those
      myText[i].text=("why?"+i) returns 1 for all 5 irritations?
      max v2;
      //text5.js//
      autowatch=1;
      post("ncompilednn");
      myText=new Array();
      init()
      function init(){
      for(var i=1;i //var boo=myText[i]+f
      myText[i] = new JitterObject("jit.gl.text3d","tab");
      //myText[i].automatic = 0;
      myText[i].name = "t3d"+i;
      myText[i].align = 1;
      myText[i].lighting_enable = 1;
      myText[i].color = [1,1,0,1]
      myText[i].depth = 0.5;
      myText[i].position = [-7,0,0];
      myText[i].scale = [0.1,0.1,0.1];
      myText[i].font("Geneva");
      myText[i].text("why?"+i);
      myText[i].displaylist=1;
      }
      }
      ////
      On 10/30/06, yair reshef wrote:
      >
      >
      > hi, im looking to use the drawobject for text3d, i need to set the
      > displaylist to 1. in js.
      > possible?
      > for now i position the js created text3d object offscreen. but this is
      > notgood (?)
      >
      > max v2;
      > #N vpatcher 15 55 761 642;
      > #P origin 0 2;
      > #P window setfont "Sans Serif" 9.;
      > #P window linecount 1;
      > #P newex 320 62 52 9109513 js text5.js;
      > #P toggle 381 21 15 0;
      > #P newex 381 39 139 9109513 qmetro 20;
      > #P newex 381 62 139 9109513 t b b erase;
      > #P user jit.pwindow 380 111 322 242 0 0 0 0 1 0;
      > #X name tab;
      > #P newex 381 89 139 9109513 jit.gl.render tab;
      > #P message 62 75 87 9109513 0.5 0.5 0.05 t3d1;
      > #P newex 62 98 52 9109513 t b l;
      > #P window linecount 2;
      > #P comment 115 137 94 9109513 forth is texture , dont << touch it (yet);
      > #P window linecount 1;
      > #P message 132 233 51 9109513 reset;
      > #P message 74 233 51 9109513 getcmdlist;
      > #P newex 338 289 26 9109513 print;
      > #N vpatcher 15 55 438 292;
      > #P window setfont "Sans Serif" 9.;
      > #P window linecount 1;
      > #P newex 99 -2 45 9109513 loadbang;
      > #P message 112 24 26 9109513 25;
      > #P window linecount 0;
      > #P message 73 24 26 9109513 -197;
      > #P window linecount 1;
      > #P newex 73 65 37 9109513 / 1000.;
      > #P number 73 45 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P window linecount 0;
      > #P newex 112 65 37 9109513 / 1000.;
      > #P number 112 45 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P window setfont "Sans Serif" 12.;
      > #P window linecount 1;
      > #P message 86 162 246 9109516 @position -0.29 -0.02 0.04 @scale -0.7 -0.7;
      > #P window setfont "Sans Serif" 9.;
      > #P flonum 240 51 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P flonum 240 95 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P newex 186 114 96 9109513 pak scale -0.931 -0.7;
      > #P flonum 150 88 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P flonum 73 91 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P flonum 112 89 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P window linecount 0;
      > #P newex 50 113 127 9109513 pak position -0.16 -0.01 0.04;
      > #P outlet 50 137 15 0;
      > #P connect 1 0 0 0;
      > #P connect 5 0 0 0;
      > #P connect 15 0 13 0;
      > #P connect 13 0 11 0;
      > #P connect 11 0 12 0;
      > #P connect 12 0 3 0;
      > #P fasten 3 0 1 1 78 109 94 109;
      > #P connect 15 0 14 0;
      > #P connect 14 0 9 0;
      > #P connect 9 0 10 0;
      > #P connect 10 0 2 0;
      > #P fasten 2 0 1 2 117 108 133 108;
      > #P fasten 4 0 1 3 155 108 172 108;
      > #P connect 7 0 5 1;
      > #P fasten 7 0 5 2 245 65 277 65;
      > #P pop;
      > #P newobj 261 231 53 9109513 p scalepos;
      > #P window linecount 3;
      > #P newex 62 288 139 9109513 jit.gl.gridshape tab @automatic 0 @shape
      > circle @name text @displaylist 1 @dim 30 30;
      > #P window linecount 2;
      > #P newex 62 253 286 9109513 jit.gl.sketch tab @blend_enable 1 @color 1. 1.
      > 1. 1. @lighting_enable 0 @position 0. 0. 0.;
      > #P window linecount 4;
      > #P message 76 174 199 9109513 glcolor 1. 1. 1. 1. , glmatrixmode
      > modelview , glpushmatrix , gltranslate $1 $2 0. , glscale $3 $3 0. ,
      > glbindtexture $4 , drawobject t3d1 1 , glmatrixmode modelview ,
      > glpopmatrix;
      > #P window linecount 1;
      > #P newex 62 127 35 9109513 t reset;
      > #P connect 10 0 9 0;
      > #P connect 1 0 2 0;
      > #P connect 7 0 2 0;
      > #P fasten 4 0 2 0 265 252;
      > #P connect 6 0 2 0;
      > #P connect 0 0 2 0;
      > #P fasten 9 1 1 0 109 164 81 164;
      > #P connect 2 1 5 0;
      > #P fasten 15 0 14 0 386 33 386 33;
      > #P connect 14 0 13 0;
      > #P connect 13 0 11 0;
      > #P connect 13 2 11 0;
      > #P pop;
      >
      >
      > ///text5.js//
      > var myText = new JitterObject("jit.gl.text3d","tab");
      > //myText.automatic = 0;
      > myText.name = "t3d1";
      > myText.align = 1;
      > myText.lighting_enable = 1;
      > myText.color = [1,1,0,1]
      > myText.depth = 0.5;
      > myText.position = [-30,0,0]; //better then center
      > myText.scale = [0.1,0.1,0.1];
      > myText.font("Geneva");
      > myText.text("Why?");
      > myText.displaylist=1; //not working
      > //////////////
      >
      > and so sorry for the line breaks ;)
      >
    • Oct 31 2006 | 8:18 am
      sorry, got the problem.
      On 10/31/06, yair reshef wrote:
      >
      > changed it a bit, does anybody have an idea why those
      > myText[i].text=("why?"+i) returns 1 for all 5 irritations?
      >
      > max v2;
      > #N vpatcher 15 55 761 642;
      > #P origin 0 2;
      > #P window setfont "Sans Serif" 9.;
      > #P window linecount 1;
      > #P newex 188 117 33 9109513 * 0.09;
      > #P newex 188 140 66 9109513 pack f i;
      > #P newex 189 162 120 9109513 sprintf 0.5 %f 0.25 t3d%d;
      > #P button 189 37 33 0;
      > #N counter 1 5;
      > #X flags 0 0;
      > #P newobj 188 93 66 9109513 counter 1 5;
      > #P newex 188 72 40 9109513 uzi 5;
      > #P newex 320 62 52 9109513 js text5.js;
      > #P toggle 381 21 15 0;
      > #P newex 381 39 139 9109513 qmetro 20;
      > #P newex 381 62 139 9109513 t b b erase;
      > #P user jit.pwindow 380 111 322 242 0 0 0 0 1 0;
      > #X name tab;
      > #P newex 381 89 139 9109513 jit.gl.render tab;
      > #P message 56 183 87 9109513 0.5 0.5 0.25 t3d1;
      > #P newex 55 202 52 9109513 t b l;
      > #P window linecount 2;
      > #P comment 108 241 94 9109513 forth is texture , dont << touch it (yet);
      > #P window linecount 1;
      > #P message 125 337 51 9109513 reset;
      > #P message 67 337 51 9109513 getcmdlist;
      > #P newex 331 393 26 9109513 print;
      > #N vpatcher 15 55 438 292;
      > #P window setfont "Sans Serif" 9.;
      > #P window linecount 1;
      > #P newex 99 -2 45 9109513 loadbang;
      > #P message 112 24 26 9109513 25;
      > #P window linecount 0;
      > #P message 73 24 26 9109513 -197;
      > #P window linecount 1;
      > #P newex 73 65 37 9109513 / 1000.;
      > #P number 73 45 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P window linecount 0;
      > #P newex 112 65 37 9109513 / 1000.;
      > #P number 112 45 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P window setfont "Sans Serif" 12.;
      > #P window linecount 1;
      > #P message 86 162 246 9109516 @position -0.29 -0.02 0.04 @scale -0.7 -0.7;
      > #P window setfont "Sans Serif" 9.;
      > #P flonum 240 51 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P flonum 240 95 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P newex 186 114 96 9109513 pak scale -0.931 -0.7;
      > #P flonum 150 88 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P flonum 73 91 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P flonum 112 89 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > #P window linecount 0;
      > #P newex 50 113 127 9109513 pak position -0.16 -0.01 0.04;
      > #P outlet 50 137 15 0;
      > #P connect 1 0 0 0;
      > #P connect 5 0 0 0;
      > #P connect 15 0 13 0;
      > #P connect 13 0 11 0;
      > #P connect 11 0 12 0;
      > #P connect 12 0 3 0;
      > #P fasten 3 0 1 1 78 109 94 109;
      > #P connect 15 0 14 0;
      > #P connect 14 0 9 0;
      > #P connect 9 0 10 0;
      > #P connect 10 0 2 0;
      > #P fasten 2 0 1 2 117 108 133 108;
      > #P fasten 4 0 1 3 155 108 172 108;
      > #P connect 7 0 5 1;
      > #P fasten 7 0 5 2 245 65 277 65;
      > #P pop;
      > #P newobj 254 335 53 9109513 p scalepos;
      > #P window linecount 3;
      > #P newex 55 392 139 9109513 jit.gl.gridshape tab @automatic 0 @shape
      > circle @name text @displaylist 1 @dim 30 30;
      > #P window linecount 2;
      > #P newex 55 357 286 9109513 jit.gl.sketch tab @blend_enable 1 @color 1. 1.
      > 1. 1. @lighting_enable 0 @position 0. 0. 0.;
      > #P window linecount 4;
      > #P message 69 278 199 9109513 glcolor 1. 1. 1. 1. , glmatrixmode
      > modelview , glpushmatrix , gltranslate $1 $2 0. , glscale $3 $3 0. ,
      > glbindtexture $4 , drawobject t3d1 1 , glmatrixmode modelview ,
      > glpopmatrix;
      > #P window linecount 1;
      > #P newex 55 231 35 9109513 t reset;
      > #P connect 20 0 9 0;
      > #P connect 10 0 9 0;
      > #P connect 1 0 2 0;
      > #P connect 7 0 2 0;
      > #P fasten 4 0 2 0 258 356;
      > #P connect 6 0 2 0;
      > #P connect 0 0 2 0;
      > #P fasten 9 1 1 0 102 262 74 262;
      > #P connect 19 0 17 0;
      > #P connect 17 0 18 0;
      > #P connect 18 0 22 0;
      > #P connect 22 0 21 0;
      > #P connect 21 0 20 0;
      > #P fasten 18 0 21 1 193 115 249 115;
      > #P connect 20 0 5 0;
      > #P connect 2 1 5 0;
      > #P fasten 15 0 14 0 386 33 386 33;
      > #P connect 14 0 13 0;
      > #P connect 13 0 11 0;
      > #P connect 13 2 11 0;
      > #P pop;
      >
      > //text5.js//
      > autowatch=1;
      > post("ncompilednn");
      > myText=new Array();
      > init()
      > function init(){
      > for(var i=1;i > //var boo=myText[i]+f
      > myText[i] = new JitterObject("jit.gl.text3d","tab");
      > //myText[i].automatic = 0;
      > myText[i].name = "t3d"+i;
      > myText[i].align = 1;
      > myText[i].lighting_enable = 1;
      > myText[i].color = [1,1,0,1]
      > myText[i].depth = 0.5;
      > myText[i].position = [-7,0,0];
      > myText[i].scale = [0.1,0.1,0.1];
      > myText[i].font("Geneva");
      > myText[i].text("why?"+i);
      >
      > myText[i].displaylist=1;
      > }
      > }
      > ////
      > On 10/30/06, yair reshef wrote:
      > >
      > >
      > > hi, im looking to use the drawobject for text3d, i need to set the
      > > displaylist to 1. in js.
      > > possible?
      > > for now i position the js created text3d object offscreen. but this is
      > > notgood (?)
      > >
      > > max v2;
      > > #N vpatcher 15 55 761 642;
      > > #P origin 0 2;
      > > #P window setfont "Sans Serif" 9.;
      > > #P window linecount 1;
      > > #P newex 320 62 52 9109513 js text5.js;
      > > #P toggle 381 21 15 0;
      > > #P newex 381 39 139 9109513 qmetro 20;
      > > #P newex 381 62 139 9109513 t b b erase;
      > > #P user jit.pwindow 380 111 322 242 0 0 0 0 1 0;
      > > #X name tab;
      > > #P newex 381 89 139 9109513 jit.gl.render tab;
      > > #P message 62 75 87 9109513 0.5 0.5 0.05 t3d1;
      > > #P newex 62 98 52 9109513 t b l;
      > > #P window linecount 2;
      > > #P comment 115 137 94 9109513 forth is texture , dont << touch it
      > > (yet);
      > > #P window linecount 1;
      > > #P message 132 233 51 9109513 reset;
      > > #P message 74 233 51 9109513 getcmdlist;
      > > #P newex 338 289 26 9109513 print;
      > > #N vpatcher 15 55 438 292;
      > > #P window setfont "Sans Serif" 9.;
      > > #P window linecount 1;
      > > #P newex 99 -2 45 9109513 loadbang;
      > > #P message 112 24 26 9109513 25;
      > > #P window linecount 0;
      > > #P message 73 24 26 9109513 -197;
      > > #P window linecount 1;
      > > #P newex 73 65 37 9109513 / 1000.;
      > > #P number 73 45 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > > #P window linecount 0;
      > > #P newex 112 65 37 9109513 / 1000.;
      > > #P number 112 45 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > > #P window setfont "Sans Serif" 12.;
      > > #P window linecount 1;
      > > #P message 86 162 246 9109516 @position -0.29 -0.02 0.04 @scale -0.7 -
      > > 0.7;
      > > #P window setfont "Sans Serif" 9.;
      > > #P flonum 240 51 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > > #P flonum 240 95 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > > #P newex 186 114 96 9109513 pak scale -0.931 -0.7;
      > > #P flonum 150 88 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > > #P flonum 73 91 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > > #P flonum 112 89 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
      > > #P window linecount 0;
      > > #P newex 50 113 127 9109513 pak position -0.16 -0.01 0.04;
      > > #P outlet 50 137 15 0;
      > > #P connect 1 0 0 0;
      > > #P connect 5 0 0 0;
      > > #P connect 15 0 13 0;
      > > #P connect 13 0 11 0;
      > > #P connect 11 0 12 0;
      > > #P connect 12 0 3 0;
      > > #P fasten 3 0 1 1 78 109 94 109;
      > > #P connect 15 0 14 0;
      > > #P connect 14 0 9 0;
      > > #P connect 9 0 10 0;
      > > #P connect 10 0 2 0;
      > > #P fasten 2 0 1 2 117 108 133 108;
      > > #P fasten 4 0 1 3 155 108 172 108;
      > > #P connect 7 0 5 1;
      > > #P fasten 7 0 5 2 245 65 277 65;
      > > #P pop;
      > > #P newobj 261 231 53 9109513 p scalepos;
      > > #P window linecount 3;
      > > #P newex 62 288 139 9109513 jit.gl.gridshape tab @automatic 0 @shape
      > > circle @name text @displaylist 1 @dim 30 30;
      > > #P window linecount 2;
      > > #P newex 62 253 286 9109513 jit.gl.sketch tab @blend_enable 1 @color 1.
      > > 1. 1. 1. @lighting_enable 0 @position 0. 0. 0.;
      > > #P window linecount 4;
      > > #P message 76 174 199 9109513 glcolor 1. 1. 1. 1. , glmatrixmode
      > > modelview , glpushmatrix , gltranslate $1 $2 0. , glscale $3 $3 0. ,
      > > glbindtexture $4 , drawobject t3d1 1 , glmatrixmode modelview ,
      > > glpopmatrix;
      > > #P window linecount 1;
      > > #P newex 62 127 35 9109513 t reset;
      > > #P connect 10 0 9 0;
      > > #P connect 1 0 2 0;
      > > #P connect 7 0 2 0;
      > > #P fasten 4 0 2 0 265 252;
      > > #P connect 6 0 2 0;
      > > #P connect 0 0 2 0;
      > > #P fasten 9 1 1 0 109 164 81 164;
      > > #P connect 2 1 5 0;
      > > #P fasten 15 0 14 0 386 33 386 33;
      > > #P connect 14 0 13 0;
      > > #P connect 13 0 11 0;
      > > #P connect 13 2 11 0;
      > > #P pop;
      > >
      > >
      > > ///text5.js//
      > > var myText = new JitterObject("jit.gl.text3d ","tab");
      > > //myText.automatic = 0;
      > > myText.name = "t3d1";
      > > myText.align = 1;
      > > myText.lighting_enable = 1;
      > > myText.color = [1,1,0,1]
      > > myText.depth = 0.5;
      > > myText.position = [-30,0,0]; //better then center
      > > myText.scale = [0.1,0.1,0.1];
      > > myText.font("Geneva");
      > > myText.text("Why?");
      > > myText.displaylist=1 ; //not working
      > > //////////////
      > >
      > > and so sorry for the line breaks ;)
      > >
      >
      >