We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › frameRate() is not working ? :(
Page Index Toggle Pages: 1
frameRate() is not working ?? :( (Read 576 times)
frameRate() is not working ?? :(
Dec 6th, 2007, 4:11pm
 
no method name "frameRate" was found in type "Temp..." however, there is an accessible method "framerate" whose name "frameRate"

it was working yesterday but today is not working it is really interesting

plz help Sad

i am using the latest version processing-0135
Re: frameRate() is not working ?? :(
Reply #1 - Dec 6th, 2007, 4:44pm
 
just in case, I suppose you didn't forget to specify the framerate you want?

Code:
void setup() {
frameRate(30);
}

void draw() {
// ...
}


can you post your whole code, so we can see where is the problem?
Re: frameRate() is not working ?? :(
Reply #2 - Dec 6th, 2007, 7:32pm
 
this happens if you double-click a .pde file to open processing. it will launch the oldest version available on your system .. you can see which version you are running in the title bar (at the top) of the pde.
Re: frameRate() is not working ?? :(
Reply #3 - Dec 7th, 2007, 9:21am
 
my code is here:
it was working but now it is not working :(

it is not whole code....
/////////////////////////////////////////////////////

void setup() {
 size(320,240,P3D);
 loadPixels();
colorMode(RGB,1.0,1.0,1.0,1.0);
P=loadImage("rocks.jpg");  
background(0);
 m = new JMyron();
 m.start(width,height);

 m.findGlobs(1);
 m.adaptivity(50.0);
 loadPixels();
 // rectMode(CORNERS);
 pt1=map1;                //Set pointers
 pt2=map2;
 framerate(40);
}

float lu(int x, int y, float array[]){    // look up a table
 return(array[(y*width)+x]);
}

void display(int [][] lst) {
 for (int i=0;i<lst.length ;i=i+1) {
   int x = lst[i][0];
   int y = lst[i][1];
   splash(x,y,.1,2);        // Create splashes where mouse cursor
   //rect(x-1,y-1,x+1,y+1);
 }
}


void draw() {
 m.update();
 m.imageCopy(pixels);
 updatePixels();
 display(m.globCenters());
 //  water effect 2
 for(int j=1;j<height-1;j++){      
   for(int i=1;i<width-1;i++){
     pt1[i+j*width]=.70*(((  lu(i+1, j,   pt2)+  lu(i-1, j,pt2)+  lu(i,   j+1, pt2)+  lu(i,   j-1, pt2)  )/2.)-lu(i,j,pt1));
   }
 }

////////////////////////////////////////////////////////
Re: frameRate() is not working ?? :(
Reply #4 - Dec 7th, 2007, 9:45am
 
this is just a syntax problem : you must capitalize the second R in frameRate()

Code:
frameRate(40); 

Re: frameRate() is not working ?? :(
Reply #5 - Dec 7th, 2007, 10:10am
 
when I type frameRate, it is still not working
Re: frameRate() is not working ?? :(
Reply #6 - Dec 7th, 2007, 5:19pm
 
Please post the whole code so that we can test and be more precise in our answers.
Re: frameRate() is not working ?? :(
Reply #7 - Dec 8th, 2007, 8:11am
 
ok i solved it, one of the library, i have imported, was the problem. thanks for help...
Page Index Toggle Pages: 1