petitjosdu91
YaBB Newbies
Offline
Posts: 7
Re: How to use println to write " or (
Reply #5 - Feb 26th , 2009, 8:46am
Ok, I didn't really understood (I have a very bad english), so you think I should create a CSV file that I would call in the other program? Here is the principal program, I have also the data file(that is automatically created with the above program) : int r = 100; float t1, t2; PFont font; int l=0; void setup() { size(500,500,P3D); background(200); stroke(0); font = loadFont("Eureka-90.vlw"); textFont(font,8); } void draw() { lights(); background(200); //Here I manually insert the lines which were in the data file, How to make otherwise please?! text("jo",37.297913,48.94078,-28.680824); line(0,0,0,37.297913,48.94078,-28.680824); text("jo",7.151161,36.59278,-24.586279); line(0,0,0,7.151161,36.59278,-24.586279); line(0,0,0,-39.17318,-3.186924,17.654419); text("jo",24.305038,14.645805,-4.409176); [...] line(0,0,0,24.305038,14.645805,-4.409176); text("jo",8.098721,11.970192,28.96045); line(0,0,0,8.098721,11.970192,28.96045); text("jo",-44.684143,37.396683,-28.996187); line(0,0,0,-44.684143,37.396683,-28.996187); t1=mouseX-250; t1=radians(t1);//t1=-t1; t1=map(t1,radians(-250),radians(250),0,PI); //println(t1); t2=mouseY-250; t2=radians(t2);t2=-t2; t2=map(t2,radians(-250),radians(250),-PI/2,PI/2); camera(r*cos(t1), r*sin(t2), 100, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); } void mousePressed() { if ((mousePressed==true)&&(l==0)) {loop(); l=1;println(l);} if ((mousePressed==false)&&(l==1)){noLoop(); l=0;} }