acapulco
Junior Member
Offline
Posts: 63
(SOLVED) Touchscreen + Monitor problems
Mar 7th , 2008, 10:33am
Hi. I've posted about this before but haven't found a suitable solution. I hope someone can help me out here. I need to display 2 different frames. One going to a projector on a wall and one to a touchscreen, which at the same time will be serving as the mouse. Now, I need to control the frame for the projector (Monitor 1) from a menu displayed (frame drawn) on the touchscreen (Monitor 2). First approach was to create one big screen, double the width of the normal resolution (1280x480 for example, for two 640x480 monitors), and then just create two objects Projector and Touchscreen, each drawing only in half of the screen. This works fine for displaying text and 2D buttons, but when I try to display antoher sketch I made in 3D, things break. Right now I put the camera where I need it for the 3D shape, then right before displaying the menu on the touchscreen, I call camera() which resets it to the correct position to draw the menu on it. This makes the 3D shape display over both monitors, and the touchscreen menu correctly on the second one. Is there a way to keep two different cameras in one sketch? Second approach, make 2 programs communicate through the network. Monitor 1 is the server and Monitor 2 the client. I need at least 30 fps, better if 60 is possible, but when I put 30 fps in the SharedCanvasServer/Client programs, some packets won't draw, so the line is not continous on one of the windows. How can I get at least 30 fps packet sending speed, just enough so everything will be drawn in both screens at that frame rate? It's odd that packets seem to get dropped even when using a loopback connection (127.0.0.1), isn't it? Thanks a lot.