Well I think I've worked out how to embed an applet to show up in a blog. Well it works for me but I'm using Safari on a Mac. Would be great if somebody could tell me if it works on IE on Windows. The applet should appear below. Click and drag mouse to rotate camera, shift drag to zoom in and out.
Oh, I should mention the applet enables OpenGL mode so if it doesn't show up it could be because of that. As a test I'll post another applet which doesn't use OpenGL.
8 comments:
Works great on Firefox, Ben!
Ah, thanks!
I've noticed that the camera doesn't initialise properly sometimes when you load the page. Seems that the initial view point is a bit random. Not sure if it's a problem with my code or a bug in Processing ... hmm.
Doesn't work on Gentoo Linux built with opengl support (could be down to permission to a access opengl). Applet starts up but then I get a black screen.
Browser firefox 2.0.0.18.
Yeh works great on Windows (I succumbed to installing java on Windows. I also installed java console on firefox, suggest that I disable java2d access on jogl or some such gobbleygook for optimum performance (probably means use active x).
Works even better on Ubuntu now I've ditched the gcj plugin in favour of sun-java. Apparently the issue with gentoo may well be due to some java-package rubbish that incorrectly links GL to software emulation that clearly isn't up to the job. Java developers seem to be pretty hacked of with it, as they have pointed out the issue, clearly some like the Ubuntu boys have been listening, shame about the default gcj implentation though.
PS I think you really do need the default (break;) in the light switch of hairy orb.
Hi Martin
Ah I think I see, so it's being linked to a software based OpenGL renderer rather than a hardware one.
I think the NetBeans code checker is getting confused as there's no need for a default handler in this case, though if I was using NetBeans I would definitely stick one in to shut it up!
b e n
My confusion, nothing to do with the netbeans analysis, but the light switch doesn't work for me in the browser. So I thought it must have been the lack of a default case. Anyway I've just checked it out again in the ide, and it works very nicely with or without a default...
Post a Comment