Java Cool Dude webstart demos need updating

Getting closer. Its a new set of files that don’t work this time :slight_smile:


java.lang.UnsupportedClassVersionError: CelShadingFactory (Unsupported major.minor version 49.0)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
      at com.sun.jnlp.JNLPClassLoader.defineClass(JNLPClassLoader.java:309)
      at com.sun.jnlp.JNLPClassLoader.access$100(JNLPClassLoader.java:51)
      at com.sun.jnlp.JNLPClassLoader$1.run(JNLPClassLoader.java:256)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:249)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
      at Lesson37.scene(Lesson37.java:128)
      at Lesson37.<init>(Lesson37.java:89)
      at Lesson37.main(Lesson37.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at com.sun.javaws.Launcher.executeApplication(Launcher.java:844)
      at com.sun.javaws.Launcher.executeMainClass(Launcher.java:804)
      at com.sun.javaws.Launcher.continueLaunch(Launcher.java:682)
      at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:397)
      at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
      at com.sun.javaws.Launcher.run(Launcher.java:167)
      at java.lang.Thread.run(Thread.java:552)

Flag works. It starts off painfully slow( i.e. 2FPS) and then once it gets rolling doing whatever - it maintains a relatively speedy 130-180 fps

Cloth comes in with a very scarily slow 20-25 FPS :slight_smile:

I’ll wait for the rebuild of the shader stuff and then run lesson 37.

Ok now we got the flag and cloth to work properly on a Mac (they run at ~1000 fps on my 2.1 Ghz, Radeon 9700 Pro pc).
What else needs to get fixed?

[quote]Flag works. It starts off painfully slow( i.e. 2FPS) and then once it gets rolling doing whatever - it maintains a relatively speedy 130-180 fps
[/quote]
How long do you have to wait…

For me is SAYS “FPS 2” but the actual rate is much SLOWER (1 frame every MINUTE or so)… and I’ve been waiting several minutes now for it to speed up. Something is horribly wrong.

edit Cloth simulation does the same. and looks all red. (The collision between cloth and sphere is also offset vertically - the cloth appears to float above the sphere - not coming close enough to touch.)

I want maybe 10 seconds. Seems to be even less time now. What’s the specs on your machine? I’m a 1.25 Ghz PB with a 9600 Mobility Radeon.

Uploaded new version, I think I tracked down the problem and fixed it.
Any feedback on the cloth demo?

Cell shading demo runs at 450-475.

JCD, what are you using for your timer?

System.currentTimeMillies() :’(

That may be an issue on OSX. I’m not sure the resolution is all that good. 1.4.2 supports all the cool timer things like Perf You may want to try that for your timer until it becomes standard in 1.5.

Ok
let me see what I can do.
PS: was the issue solved with my latest cloth build?

I didn’t have any specific issues with Cloth. It runs - it just runs slow. I know that I got better results when I switched over to the high resolution timer… or just took out the timer :slight_smile:

[quote]System.currentTimeMillies() :’(
[/quote]
That should be good enough… it has 1ms accuracy on OS X last time I checked.

I’m running on a 15" 1GHz Powerbook G4 with ATI Radeon 9000 (at least that is what the GL driver says), 512MB RAM.

The Water Sim runs fine now.

OK flag sim ran at a real 2 FPS… then after waiting a minute it got up to 10 fps. then I switched back to the browser (dragged some windows around) and it has dropped back to 2 fps.

It still seem that something is hosed - If I can run Wolfenstein 3D, Bugdom II etc… the 3D hardware should be able to handle that simple flag right?
Of… I see the flag sim just dropped back to 1 update after 30 secs to a minute… I think there is definitely a timing issue… maybe I’m wrong about currentTimeMillis()?

Cloth Sim is still very slow (effectively 0 fps) and still pink… that is the wood floor is made of pink wood… I can still see the grain texture, but it looks nothing like the screen shot in the demos thread. The cloth is pinkish too.

It does respond quickly to the Esc key – but I suspect that may be a different thread altogether.

Updated all demos using the HighRes timer, check them out

Cloth simulation is still hosed (says 2 fps - but nothing is changing on the screen). Is it supposed to be interactive? It isn’t for me. And it is still pink.

Flag simulation is no different than before. Started around 2fps… then I came to type this now it is < 1fps. Though it still says FPS 2.

I will check it out when I get home and can replicate the same environment because here at the office under multimonitor conditions its actually slower.

Definitely the multimonitor configuration causing some issues. I think the QuartzExtreme renderer (since I’m rendering 640x480 in a window) is having some issues drawing everything and the flag demo. I’ll unplug in a minute and see how it goes. I didn’t notice this until I saw that the config dialog was showing resolutions that the LCD screen couldn’t display. Even still, it seems to run faster if I run the application more than once. It gets up to 80FPS but is really erratic. I will start the experiment now and report back.