Yep.
I made 3 demos for the JOGL DemoBox.
- MD2 animation + weapons change.
- Picking.
- Fragment Occlusion.
Get it all at:
NOTE: The JOGLBox requires JOGL installed in the JRE for now
Yep.
I made 3 demos for the JOGL DemoBox.
Get it all at:
NOTE: The JOGLBox requires JOGL installed in the JRE for now
I added an example of per-pixel specular lighting using GLSL at http://www.furi.dk/java.
The DemoBox also uses WebStart so you won’t need to fiddle with JOGL installation etc.
Also added a demonstration of loading/drawing my Simple Mesh format, as well as a 3DS to Simple Mesh conversion tool.
Added simple displacement (parallax) mapping example as I couldn’t get any other examples to work on both ATI and NVidia
Get it at http://www.furi.dk/java as usual
DemoBox webastart did not work, it could not find JOGL classes. Probably your demobox assumes we have installed jogl.jar and .dll files to JRE lib folder. Well, I think most of us does not do it that way.
Instead, I had to download demobox.jar to local disk and run it from batch script:
set jogl=C:/projects/java/jogl/1.1_08/lib
SET CP=%jogl%/jogl.jar
java.exe -Djava.library.path=%jogl% -cp %cp%;JOGLBox.jar JOGLBox
pause
Hmm. That’s odd. I install JOGL through webstart and it works on my work PC, home PC and IBook.
You’re “only” the second with this issue
Let me hear if anyone else has this problem (or a fix for that matter)
A tried to run the JOGL Demo Box through Webstart, but after starting, nothing is displayed.
I gave the folder containing all jars downloaded from your webpage, but the screen doesn’t displayed anything, when I clicked on the jar’s name.
My system: windowsXP, Radeon9600Xt, Java1.5.0_02.
Hmm. All this worked fine before Java 1.5.2 runtime became the norm. Any bugs in Java 1.5.x webstart I should know of?
Your DemoBox launches fine on my Windows XP machine with the 1.5.0_02 webstart.
[EDIT] – Actually the framework comes up but demos don’t launch for the same reason mentioned above. I would guess that your ClassLoaders aren’t set up to delegate properly.
That’s the problem. JOGL isn’t installed/detected properly with my Webstart. But it worked before 1.5 ???
I see the same bug with 1.4.2_06. You should look at the code you use to load the class out of the demo jar; it needs to delegate requests for other classes to the defining class loader of the JOGLBox class. The complete stack trace I get is
java.lang.NoClassDefFoundError: net/java/games/jogl/GLEventListener
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.net.FactoryURLClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at JOGLBox.valueChanged(JOGLBox.java:269)
at javax.swing.JList.fireSelectionValueChanged(Unknown Source)
at javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(Unknown Source)
at javax.swing.JList.setValueIsAdjusting(Unknown Source)
at javax.swing.plaf.basic.BasicListUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
If you post a link to the JOGLBox souce, we might be able to figure out where the bug is. BTW, I also think you should change your JNLP file to specify Java 1.4+ instead of 1.4.2+ because I think the latter confuses Java Web Start and makes it think that existing 1.4.2 installations don’t satisfy that requirement.
The source is here : http://www.furi.dk/java/webstart/JOGLBox.java
But the exception you get is the one I get when it can’t find JOGL. I changed the java requirement to 1.4+
Thanks for the help
It isn’t that the JOGLBox can’t find JOGL, it’s that the demo class you’re trying to load can’t find it. I’m not an expert on class loading but I think you need to manually specify the parent loader of your new URLClassLoader:
jarLoader = URLClassLoader.newInstance(demoUrl, getClass().getClassLoader());
Well. I’m not an expert either. I added the code, but can’t test it now as I’m at work.
It seems to work for one of my friends, where it didn’t work before so give it a spin at http://www.furi.dk/java/webstart/JOGLBox.jnlp
(You might need to delete it from webstart as it’s very slow to detect updates for some odd reason :))
It works to me now.
New version with some critical fixes. Get it the usual place.
Also added simple heigthmap example
I don’t know what have you changed, but now It isn’t working
Could you post a stack trace here? (or mail me at ozak_nospam_@furi.dk)
As always it runs on all of my systems including my IBook
I just removed a manual display call just before reshuffling the view as it caused problems on my system and was visually unpleasing
Try the fix I just uploaded
The browser downloaded the webstart demo again, so it was updated, and now it’s working.
Some things about the demobox…
When switching to or from it, it turns into a cpu hog! What gives?
The Shaded Teapot looks very beautiful. Did you know that you can see the exterior of the pot through the hole of its beak?
[edit: About the milkshape exporter…the readme says “source” but there’s but a dll inside the zip…?]
Ahh yeah. The source is in another location. Check http://www.furi.dk/source/msninexport.zip for the source
It’s just that I copied it from another file and changed some bits. I’ll include the source in the java dir download soon.