I'm looking for a solution for simple mouse driven camera rotation control in the fashion of PeasyCam, but for processing.js. I tried using the
ArcBall class by Ariel, V3ga and Robert Hodgin, but for some reason rotation is constrained to one axis when exporting the sketch to Processing.js. In Java mode everything works fine.
I have a sketch, which loads and shows some images that are generated in an external process outside of processing. Like so:
for (int i = 0; i < imgCount; i++) { imgs[i] = loadImage("lahti240_urban_"+(2013+i)+".gif"); }
The external process tries to overwrite the files after they have been read into Processing, but this leads to a filesystem error because the files stay in an "open" state for an uknown duration after being read. Sometimes the files close immediately but sometimes it takes over 30 seconds for the overwrite to succeed. This is behaviour has been seen on 2 separate Windows 7 machines.
Has anyone run into this problem? Is there anything I can do?