Just thought I'd share my new project over here.
The Jamburglar consists of an album and an interactive application, which was coded entirely in Processing. The album and standalone application are both free to download. There's lots of code from openprocessing and toxiclibs - the Processing community has been a really valuable resource. Check out the
works cited for a list of code & libraries I used.
P.S. - I've been unable to get this to run successfully as an in-browser java applet. I'm hoping there are a couple people out there who might be able to help me with this endeavor. Contact: as [at] jamburglar [dot] org
i'm curious if anyone can advise me on how to increase the heap size for applets. i'm curious if there is a way to pass this argument to the browser from my applet. i'm running osx 10.6, and tried adding the runtime parameter: -Xmx256m in my java preferences. nevertheless, the heap size maximum remains 100 mb for safari....as monitored by VisualVM.
i'd really like a solution that would pass the argument to the browser, so that every user wouldn't need to change their preferences just to use the applet.
any help?
there are some old solutions for ruby-processing, which uses a "java_args.txt" file - but this is useless for me, i'm running normal processsing 0191. also, the processsing maximum available memory does not carry over to the applet.
PImage will no longer take a BufferedImage, despite the fact that it extends java.awt.Image. this works for me if i force my Mac to run Java 1.5
here's where the error occurs:
in DataBuffer{}:
public PImage getAsImage() {
try {
ByteArrayInputStream bis=new ByteArrayInputStream(bytes);
BufferedImage bimg = ImageIO.read(bis);
return new PImage(bimg);
}
catch(Exception e) {
System.err.println("Can't create image from buffer");
e.printStackTrace();
}
return null;
}
(bytes is simply the raw byte array)
and here's the console output:
java.lang.ClassCastException: [I cannot be cast to [B
at sun.awt.image.
ByteInterleavedRaster.
getDataElements(
ByteInterleavedRaster.java:
351)
at processing.core.PImage.<init>(
PImage.java:233)
at jb_PIMP_sketch1f$DataBuffer.
getAsImage(jb_PIMP_sketch1f.
java:1532)
at jb_PIMP_sketch1f$
QueueListener.queueComplete(
jb_PIMP_sketch1f.java:1482)
at jb_PIMP_sketch1f$
CachedDataLoadQueue.run(jb_
PIMP_sketch1f.java:1614)