Sunday, 15 August 2010

import - Issue with Standalone in Processing -


I have a sketch in processing 2.1.2 , and it runs fine from the sketch window . When I try to export it in the application of a standalone window, the processing app creates. The windows folder, which includes the 'lib' and 'source' subdirectories. But when I double-click the app, it's just showing me an empty window.

How can someone solve me this issue, guide me? Program coding is given below:

  import toxi.geom. *; Import toxi.geom.mesh. *; Import toxi.processing *; Import processing sarees. *; Triangle mesh net; ToxiclibsSupport gfx; PImage img; String input; serial port; Int x, y, z; Zero setup () {size (448, 299, p3d); Println (serial.list ()); Port = new serial (this, serial list) [0], 9600); Port.bufferUntil ('\ n'); Trap = (Triangle Aries) New STL Reader () LoadBuyer (Sketchpath ("Check.Stal"), STLRder. RINGLSH); Gffx = new toxicablus support (this); Img = loadImage ("imagei.jpg"); } Zero draw () {background (IMG); Translation of (width / 2, height / 2,0); RotateX (radians (x)); // pitch rotate Y (radian (y)); // RotateJade (radian (zed)); // Yes directional light (192, 168, 128,0, -1000, -0.5); Directional Light (255, 64, 0, 0.5 F, -0.5 F, -0.1F); NoStroke (); Scale (2); Gfx.mesh (trap, false); } Zero serial port {input = port.readString (); If (input! = Null) {string [] value = partition (input, ""); Println (value [0]); Println (value [1]); Println (value [2]); X = int (value [0]); Y = int (value [1]); Z = int (value [2]); Edit this line of the program:  

Traps =}

(Triangle Aries) New STL Reader (). LoadBinary (Sketchpath ("Check.Stal"), STLRder. RINGLSH);

By:

trap = (triangle mesh) new STLRDER (.) Loadbare (sketchpath ("data / check.stil"), STLR. RINGLASH);

And the rest of the program is fine, just check it out and tell me if any errors you have received.


No comments:

Post a Comment