OpenGL Applet Mystery
in
Integration and Hardware
•
3 years ago
So I've been trying to get my OpenGL-based sketch to export well as an applet.
It opens fine in a browser on one machine (my laptop, running XP), but not another (my main desktop, running Win7).
Oddly, I can export from the non-working machine, and it STILL works on the other.
It doesn't work on OpenProcessing.org regardless of which machine exports it.
One thing I can see is that the applet directory doesn't include files from the data directory (and thus just zipping the applet directory and sending to to OpenProcessing doesn't work -- no big surprise there, you would think)
But since it DOES work on the (older!) laptop... why? It must be able to read the files (XML and GLSL and a font) from the "data" directory, but on the desktop (and OpenProcessing) it fails by saying that it can't find the application class at all.
Is this kind of behavior known? Is it potentially a java-version issue, or...?
A zip of the current sketch: http://www.botzilla.com/blog/archives/pix2010/SpiceOfLife.zip
(one caveat: applet export gives the wrong display size in index.html, so I've had to hand-edit the "100" to "512" -- but even if I hard-code the 512x512 size, and the index.html gets it correctly, the work/not-work behavior is the same)
Thanks for any insights!
kb, http://www.riftgame.com/
It opens fine in a browser on one machine (my laptop, running XP), but not another (my main desktop, running Win7).
Oddly, I can export from the non-working machine, and it STILL works on the other.
It doesn't work on OpenProcessing.org regardless of which machine exports it.
One thing I can see is that the applet directory doesn't include files from the data directory (and thus just zipping the applet directory and sending to to OpenProcessing doesn't work -- no big surprise there, you would think)
But since it DOES work on the (older!) laptop... why? It must be able to read the files (XML and GLSL and a font) from the "data" directory, but on the desktop (and OpenProcessing) it fails by saying that it can't find the application class at all.
Is this kind of behavior known? Is it potentially a java-version issue, or...?
A zip of the current sketch: http://www.botzilla.com/blog/archives/pix2010/SpiceOfLife.zip
(one caveat: applet export gives the wrong display size in index.html, so I've had to hand-edit the "100" to "512" -- but even if I hard-code the 512x512 size, and the index.html gets it correctly, the work/not-work behavior is the same)
Thanks for any insights!
kb, http://www.riftgame.com/
2