Processing Forum




Click on Join Now to Sign Up
Hi,
I'm having problems trying to translate an OpenFrameworks example to Processing, here is the original OF code (it is a basic arcball example)
https://github.com/obviousjim/OFQuaternionExamples/blob/master/ArcballExample/src/testApp.cpp
And here is my translation using toxiclibs Quaternion class:
When I click and drag to rotate weird stuff happens, any ideas how to fix this?
Given the following image I would like to know how to make a texture for a couple of Quads form the squares A and B, I know their coordinates and sizes, any ideas?
EDIT: I think this will give a better explanation of my question, I need to grab the pixels form a square and make a texture out of it
I have an always changing 2D mesh that needs to be clear and recalculated on every frame, so far I got that bit working fine, but at the moment there are lots of duplicate vertices, so if I need to pump up the number of vertices the framerate obviously drops. To make this work more efficiently I need to get rid off the duplicate vertices some how, no idea how to do that …
I google around and found this post, http://www.devmaster.net/forums/showthread.php?t=8066 were they mention hash tables, so I wonder if any of you has implement this data structure in P5 or Java, or event better can GLGraphics or GLModel clean duplicate vertices some how?
Any help will be much appreciated!
- rS
Hi,
Has anyone have any experience on drawing a TriangleMesh from Volumeutils using the GLGprahics GLModel class? I am interested in doing some 3D printing stuff so I wonder if I can gain a bit of performance by mixing this 2 libs
Any info on the subject will be much appreciated!
- rS
Hi,
I am trying to use Shiffman openKinect library with Processing in Eclipse, I import the openKinect.jar lib build the path and the configure it so it links to the native .jnilib. But I get the folliwing error
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: /../workspace/PointCloud/libNative/libKinect.jnilib: no suitable image found. Did find: /../workspace/PointCloud/libNative/libKinect.jnilib: mach-o, but wrong architecture
Any help will be much appreciated
- rS
void draw() {
background(0);
// render background image
image(reef, 0, 0);
//directionalLight(20, 20, 200, 0, 1, -1);
//ambientLight(50, 70, 252);
physics.update();
gl = pgl.beginGL();
gl.glDisable(GL.GL_DEPTH_TEST);
gl.glEnable(GL.GL_BLEND);
gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE);
for (int i = 0; i < NUM_BOIDS; i++) {
Boid b = (Boid)boids.get(i);
b.run(boids);
}
// this does not llok like is working
//gl.glDisable(GL.GL_BLEND);
pgl.endGL();
saveFrame();
//println("fps: " + frameRate);
}