Using an ipad and the mrmr interface protocol, I'm trying to build a sort of drawing machine. Without openGL, everything works perfect and the line is smooth and nice. (see 1st screen)
But, as this will be played on a very large screen, I have to use openGL, otherwise will be very laggy.
As soon as I use openGL, the line becomes very strange (see 2nd screen). It's like the line would be made of rectangles.
When the line is very this, it wont go in diagonal, but just moves on the x axis and then on the y and on the x again and so on.
The strokeJoin and strokeCap function doesn't work with openGL, and I tryed to change my drawing method, use points, ellipse, vertex...! Nothing works
Has anyone a idea?
Thanks a lot!
Gaëlle
///
Here is my code, I don't know if it will be really helpfull as I use it with an ipad
import fhnw.matrixrenderer.*;
import fullscreen.*;
import processing.opengl.*;
import oscP5.*;
import netP5.*;
// the instance of our matrix renderer
MatrixRenderer render;
OscP5 oscP5;
NetAddress myRemoteLocation;
float lastX, lastY;
//int weight;
int mySwitch = 0;
int x ;
int y ;
int z;
int previousZ;
int starttime;
int delaytime = 2000; // delay in miliseconds
boolean timer = false;
boolean hover = false;
int counter = 0;
boolean touched = false;
boolean xNew = false;
boolean yNew = false;
boolean clear = false;
void init()
{
// generate MatrixRenderer
render = new MatrixRenderer (this, 2*1920, 1*1080, 1);