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 & HelpOpenGL and 3D Libraries › Ultra basic question (contructor undefined) OCD
Page Index Toggle Pages: 1
Ultra basic question (contructor undefined) OCD (Read 1050 times)
Ultra basic question (contructor undefined) OCD
Dec 21st, 2009, 1:04pm
 
Hello,

I'm new to Processing but not to other scriping languages, so this error strikes me as bogus...

My first sketch to tweak was "Webcam 3d Pixelator" by Steve Cooley.

Upon exporting, however, it says the following:

"The constructor Capture(_FILENAME, String, int, int, int) is undefined."


I downloaded the last version of Processing (1.0.9), and the last version of the OCD. I did change the framerate to frameRate, but maybe I'm missing something relaed to new syntax. I also have the OCD library in the correct directory.

Please help me!!!

Re: Ultra basic question (contructor undefined) OCD
Reply #1 - Dec 21st, 2009, 1:05pm
 
did you put        

import processing.video.*;
Capture myCapture;

at the beginning of your sketch ?
Re: Ultra basic question (contructor undefined) OCD
Reply #2 - Dec 21st, 2009, 2:03pm
 
Cedric,


Unfotunately, yes I did....
Re: Ultra basic question (contructor undefined) OCD
Reply #3 - Dec 21st, 2009, 7:40pm
 
Anyone else who could help me getting started with this?

Please...
Re: Ultra basic question (contructor undefined) OCD
Reply #4 - Dec 21st, 2009, 7:45pm
 
the example was pretty old. the syntax changed by now. its
not
Capture(parent,  name, width, height, fps) anymore
its
Capture(parent, width, height, name, fps)
Page Index Toggle Pages: 1