PDA

View Full Version : Java Applets with accelerated 3D gfx



clilian
11-06-2005, 12:40 AM
Hi,

For those of you not often going to javagaming.org (java games forum), I just wanted you to know I've created a small Applet that allows downloading and installation of native libraries required to use JOGL (open gl java bindings). Before that, one had to rely on preinstalling that stuff at the risk or breaking other applications (like the "dll hell").

The code should also work with JWJGL with a little more work and I expect Cas os someone else from that team to grab and enhance my code...

Basically, that means you can now have a Java Applet embedded in any web browser, runnning open gl programs at near full hardware speed...

If you're interested, the demo and more explanations are here (http://www.vlsolutions.com/free/jogltest).

The code is licensed under BSD, so you can freely use it in any of your developments.

System requirements :
* java 1.4.2 or more (1.5 should be better), windows 98 to XP, Mac OS X 10.3 or 10.4, or a recent Linux distro.
* The applet must also be signed with a certificate (the one of the demo is temporary and not to be used outside that context : it also shows a scary warning at first execution which is not as scary when using a valid certificate).
* the download size of the JOGL part is around 1Mb, I haven't tried yet the java 1.5 pack200 format that should reduce the size by 3 at least (for 1.5 users).
[edit] * also requires a recent OpenGL driver !!

The component hasn't yet be fully tested , so I expect some glitches to appear (any comments are welcome) !

Waiting for your feedback.

Lilian

Vorax
11-06-2005, 08:18 AM
That's sweet! Now I can make on online version of my game with a simple applet wrapper! Of course, as luck would have it I am using LWJGL :( - but it shouldn't be much to convert.

Good stuff!

clilian
11-06-2005, 08:25 AM
That's sweet! Now I can make on online version of my game with a simple applet wrapper! Of course, as luck would have it I am using LWJGL :( - but it shouldn't be much to convert.

Good stuff!


Thanks !

the JOGL part of the applet is just 10 lines... but you'll have to check how LWJGL loads its native libs and disable this feature to do it from the applet installer.

Lilian

princec
11-06-2005, 11:16 AM
I will be making tweaks to LWJGL so that it can load its natives from any location. Or something :) Expect to see Ultratron in a teeny 320x320 applet page soonish!

Cas :)