Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
cultnam
cultnam's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
'NullPointerException' in Capture example (Mac osx 10.8.* mountain lion / Macbook Pro)
[2 Replies]
26-Oct-2012 04:35 AM
Forum:
Core Library Questions
After upgrading the Mac os to 10.8.* version (mountain lion),
just simple video capturing example does not work.
For instance, the code below generates NullPointerException.
--------------------------------------------------------------
import prcessing.video.*;
Capture cam;
void setup()
{
size(640,480);
cam = new Capture(this, width, height, Capture.list()[1], 30); // I also tried with Capture.list()[0]
}
-----------------------------------------------------------------
or just this simpler code generates the same error :
-------------------------------------------------
import processing.video.*;
void setup()
{
size(640, 480);
String[] camera = Capture.list();
}
--------------------------------------------------
My macbook has built-in camera, of course, but it seems the processing does not recognize it.
What could I do?
(I'm using processing 2.0b5 version.)
«Prev
Next »
Moderate user : cultnam
Forum