Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
knutl
knutl's Profile
3
Posts
57
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
FishEye example from GLGrahics
[2 Replies]
09-Sep-2012 08:47 AM
Forum:
Contributed Library Questions
Hi
I would like to use the fisheye filter out of glgraphics (shown in the fisheye example from the lib).
I want to do some projections on several spheres in parallel and that works great in general.
But I would like to change the colour of the background outside of the fisheye part of the image.
This is now black and I did not find a way to change that - probably I am just blind for a simple way ?
Thnx
knut
GLGraphics and SimpleOpenNI: Exception
[5 Replies]
28-Jul-2012 09:48 AM
Forum:
Contributed Library Questions
I want to use SimpleOpenNi and GLGraphics together in one sketch. Because I had lots of problems to get it working, I stripped down my program to make the exception reproducable in simple context
import SimpleOpenNI.*;
SimpleOpenNI context;
import processing.opengl.*;
import codeanticode.glgraphics.*;
int[] depthValues;
void setup() {
context = new SimpleOpenNI(this);
// enable depthMap generation
context.enableDepth();
size(640,480,GLConstants.GLGRAPHICS);
// size(640, 480);
background(100);
}
void draw() {
context.update();
depthValues=context.depthMap();
image(context.depthImage(), 0, 0);
}
Running this sketch throws an exception (see below)
Using size(640, 480) instead of size(640,480,GLConstants.GLGRAPHICS);
makes it run.
All examples from SimpleOpenNI and GLGraphics work on my systems.
I am on processing 1.5.1, GLGraphics 1.0.0 and SimpleOpenNi 0.27.
I used Vista32 Bit and XP to test it.
Any help is of course appreciated
knut
Exception in thread "Animation Thread" java.lang.NullPointerException: null array
at SimpleOpenNI.SimpleOpenNIJNI.ContextWrapper_depthMap(Native Method)
at SimpleOpenNI.ContextWrapper.depthMap(ContextWrapper.java:219)
at SimpleOpenNI.SimpleOpenNI.updateDepthRaw(SimpleOpenNI.java:827)
at SimpleOpenNI.SimpleOpenNI.depthMap(SimpleOpenNI.java:432)
at testOpenNiGLGraphics.draw(testOpenNiGLGraphics.java:44)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
I tested this on Vista
Question on toxiclibs colorutils Histogram
[4 Replies]
11-Mar-2011 08:33 AM
Forum:
Contributed Library Questions
I want to use Histogram.newFromARGBArray(...) to identify main colors in a large set of jpg images and do some
statistics on the results.
My assumption was that running Histogram.newFromARGBArray(...) several times on the same image,
will get me ALWAYS the same results in terms of getEntries().size() or for HistEntry getColor() or getFrequency().
Now testing this assumption with the ImageColors.pde example from ColorUtils fails: Each run of the example
gives different results of the Histogram (at least in my environment).
I am confused: Was my assumption wrong ? Is there a software problem ? What else ?
Suggestions are highly appreciated.
«Prev
Next »
Moderate user : knutl
Forum