Webstart problems trying demos on www.lwjgl.org

Grass throws the following
java.lang.NullPointerException

  at org.lwjgl.test.opengl.Grass.main(Unknown Source)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

  at java.lang.reflect.Method.invoke(Unknown Source)

  at com.sun.javaws.Launcher.executeApplication(Unknown Source)

  at com.sun.javaws.Launcher.executeMainClass(Unknown Source)

  at com.sun.javaws.Launcher.continueLaunch(Unknown Source)

  at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)

  at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)

  at com.sun.javaws.Launcher.run(Unknown Source)

  at java.lang.Thread.run(Unknown Source)

heh that grass demo kills my win2000 and causes a blue screen of death…

the NPE is probably because it can’t load its shader file - I haven’t tested it properly, since my machine at home cannot run it (ati card).
As for middy’s crash - I blame it on a crappy machine :stuck_out_tongue:

Win 2000
1.6GHZ Pentium M
785MB RAM
Radeon 9700 Mobile (I bets its this one)

But its not crappy :slight_smile:

On my machine (P4HT@3.2, Win XP, Radeon 9700pro, Catalyst 4.7), it does nothing but saying “vertex program supported: false”…which is simply not true… ???

System.out.println("Vertex program supported: " + GLContext.GL_NV_vertex_program);

  • not any vertex program - but nVidias

Ok, i was too lazy to look at the sources… :wink: But what’s the point of a NVidia-only demo? It should open a window telling me that it won’t work on my hardware and not changing the screenmode, doing nothing and writing this useless message to System.out. At least, the message should be something like: “NVidia vertex program not supported” IMHO.

Edit: Running it on a GF3 with the latest drivers, i get the same Exception as the thread starter.

[quote]Ok, i was too lazy to look at the sources… :wink: But what’s the point of a NVidia-only demo? It should open a window telling me that it won’t work on my hardware and not changing the screenmode, doing nothing and writing this useless message to System.out. At least, the message should be something like: “NVidia vertex program not supported” IMHO.

Edit: Running it on a GF3 with the latest drivers, i get the same Exception as the thread starter.
[/quote]
Calm down :wink: This demo was written by me in the early LWJGL days to demonstrate vertex programs was indeed possible in LWJGL/java. At that time, only nvidia’s vertex program extension was available! For what it’s worth, the demo should probably be deleted or replaced with an updated one using ARB extensions.

  • elias

[quote]At that time, only nvidia’s vertex program extension was available!
[/quote]
I understand that, but it doesn’t work on NVidia cards either. I tried it on a GF3 and a GF4 and it crashes on both of them. It drops me to a 640*480 desktop, prints the exception and kills javaw. I just don’t think that it’s good marketing for LWJGL in its current state.

Point taken - the test has been removed from CVS - the org.lwjgl.test.opengl.shaders (or the JCD demos) are superior anyway.

  • elias

and no longer on the demo page

Egon Olsen GF3 and GF4 (some of them) dont have vertex shaders. Thats for direct 9.0 and upwards. GF3 is 8.0

[quote]Egon Olsen GF3 and GF4 (some of them) dont have vertex shaders. Thats for direct 9.0 and upwards. GF3 is 8.0
[/quote]
GF3 and GF4 have both support for vertex shaders in hardware. A GF4MX doesn’t, but they will be emulated by the drivers using the cpu. In either way, it should work. Vertex shaders were introduced with DX8, not with DX9.

You are completely correct., damn that. I simply assumed so since all the JCD vertex shader demoes wouldent work on my card

[quote]You are completely correct
[/quote]
I always am when it comes to graphics hardware… ;D…Could be related to the fact that i’m changing my graphics hardware twice a year at least.