LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Big_Bluey on November 23, 2003, 12:10:04

Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 23, 2003, 12:10:04
I'm currently playing with jME and Spaghetti with win2000 professional & a matrox G400 dualhead graphics card (but not with 2 monitors).  I've transfered all my files from a machine with WIN98SE & an ATI card to this setup.

My files compile fine but when I come to run them nothing much happens - a DOS window flashes up & then disappears as a result of running my batch file. :(

When I run Alien Flux demo it tells me my card is not OpenGL compatable or my drivers are not up to date.  The OpenGL version of Java 3D 1.3.1 works fine, so I think I have a problem with lwjgl.  I've tried every possible driver from driverguide.com & the matrox support site & this still keeps happening.  :?

I've never installed Win2000 myself before, am I doing something stupid or am I persisting with a card which is a waste of time?
Title: Some sort problem with lwjgl & matrox card
Post by: elias on November 23, 2003, 12:42:03
What version of LWJGL are you using? only the recent ones fixed the bug that made matrox cards fail.

- elias
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 23, 2003, 12:52:27
ah-ha!

I'm using version 0.7, I was about to swap to 0.8, but wanted to do 1 or 2 things with jME 0.1.2 which uses 0.7.

I guess it would be a good idea to do that now, & abandon my 0.7 stuff?

I think mojo's new jME 0.2 I think is using 0.8 now.  

Thanks :)
Title: Some sort problem with lwjgl & matrox card
Post by: elias on November 23, 2003, 13:52:28
There was an unofficial 0.71 or something that included the matrox fix. But the first proper release is 0.8, as far as I remember. Also 0.8 is not much different from 0.7, API wise.

- elias
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 23, 2003, 14:50:38
OK I think as long as 0.8 has the fix I'll update everything.  


Thanks again. :)
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 24, 2003, 20:08:29
I've just had the chance to set up lwjgl with my matrox card & still no joy.

I tried one of the tests and got:

C:\lwjgl-0.8>java -cp .
;lwjgl_test.jar;lwjgl.jar; org.lwjgl.test.opengl.Game
Setting display mode to 640 x 480 x 16 @60Hz
Created display.
Failed to create OpenGL due to java.lang.Exception: Mode not supported by hardware


I've tried changing the display mode & no luck :(
Title: Some sort problem with lwjgl & matrox card
Post by: elias on November 24, 2003, 21:47:40
Exactly what Matrox card do you have? I might simply be too old for OpenGL.

- elias
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 24, 2003, 22:28:35
It is a matrox G400 dualhead.  I'll check the exact spec. in the morning.

I haven't installed the option in my driver set up for 2 monitors & the second port doesn't do anything at the moment so it should really read as a normal 1 monitor card.

I think it's about 4yrs old, the machine it orginally came with was a Win98SE machine, but I've put Win2000 pro on it.
Title: Some sort problem with lwjgl & matrox card
Post by: princec on November 24, 2003, 23:28:29
Same card as my dad, and AF runs just fine on it.

Cas :)
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 25, 2003, 09:04:09
Slight correction its a Matrox Millennium G400 Dualhead.

I've just tried Java 3D OpenGL edition, jPCT & even the GL4Java demos & these work fine.


These are the specific drivers I have tried so far from matrox.com/driverguide.com:

2kxp_5910008.zip
w2k_582.zip
w2k_586.zip
matrox2k.exe
w2k504.exe & earlier versions
G400AGP2000.exe

I'm currently running the w2k504.exe driver as it was the last one I tried.

Alien flux just tells me I need a OpenGL card or OpenGL drivers & as far as I can see I have.
Title: Some sort problem with lwjgl & matrox card
Post by: princec on November 25, 2003, 09:09:15
What version of Alien Flux is it?

Cas :)
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 25, 2003, 09:12:34
1.4c
Title: Some sort problem with lwjgl & matrox card
Post by: princec on November 25, 2003, 09:44:21
Ohhhhh, oooollllddd version! Grab the latest 1.4i, which works :D

Cas :)
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 25, 2003, 10:21:01
Ohhh no it doesn't on a Matrox G400 dualhead!!! (sorry, it's that time of year) :)

I've just just installed 1.4i & I get the same stuff coming up. :(
Title: Some sort problem with lwjgl & matrox card
Post by: princec on November 25, 2003, 10:34:37
You're quite sure you've got the latest drivers for it? It definitely works on G200s and upwards now - I've got the logs to prove it ;)

Actually you could do me a favour - go and look in your registry in HKEY_CURRENT_USER\Software\JavaSoft\xap and tell me your installation number. I'll have a look at my server logs and see what it's reported back.

Oh and by the way - yes, Matrox cards are a total waste of time and space. Any Nvidia card is better. A second hand TNT for £5 is a better card than any Matrox card. They're just awful.

Cas :)
Title: Some sort problem with lwjgl & matrox card
Post by: Matzon on November 25, 2003, 10:39:20
Matrox sucks - but only for 3D, their 2D is vastly superior to any other card!
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 25, 2003, 11:06:47
As I said I've tried every win2000 driver I could find & I've been using Alien Flux demo as a test to see if lwjgl is working.  

To be honest I can't really see why most of the drivers I tried shouldn't work as at least half of them I think have been released over the last 12 months including one on the matrox site a couple of days ago for this card.

Installation number is 9112626804199352320

I must agree I think this card is crap, but it's the one I have with the machine I've been given by my boss to do some jME/lwjgl work with & I can't get another for a few days.  Looks like I'll have to transfer everything to my machine which has a ATI card forthe time being.

Bugger!!   :evil:

BTW thanks for your help! :)
Title: Some sort problem with lwjgl & matrox card
Post by: princec on November 25, 2003, 11:21:30
Hm, nothing helpful in the logs.
What sort of debugging output are you getting from LWJGL when you run with the -ea option?

Cas :)
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 25, 2003, 12:13:03
how & what would I enable assertions on in Alien Flux?
Title: Some sort problem with lwjgl & matrox card
Post by: princec on November 25, 2003, 12:23:48
Ah, somewhat trickier in Alien Flux. But you'd get the same answers just trying to run any of the example code with LWJGL 0.8 anyway. I'd just like to get the output of all the C debugging.

Cas :)
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 25, 2003, 14:58:29
just had a go.  Not quite sure about how to use -ea I've never used the assertions which came with 1.4

I know I've missed something


set CLASSPATH=.;lwjgl_test.jar;lwjgl.jar
java -ea:org.lwjgl.test.opengl.Game


Couldn't tell me what & I'll send you the output.
Title: Some sort problem with lwjgl & matrox card
Post by: cfmdobbie on November 25, 2003, 15:51:24
Just a plain -ea should do the trick - I expect it's the Sys class that needs assertions turned on to get the output, but may as well just turn the lot on to be sure.  You were almost right, but need to drop the colon:

set CLASSPATH=.;lwjgl_test.jar;lwjgl.jar
java -ea org.lwjgl.test.opengl.Game
Title: Some sort problem with lwjgl & matrox card
Post by: princec on November 25, 2003, 16:52:18
DO NOT USE CLASSPATH!

Always use -cp on the commandline:

java -ea -Djava.library.path=C:\lwjgl-0.8-win32 -cp c:\lwjgl-0.8-win32\lwjgl.jar;myCode.jar com.me.Game

or whatever.

Cas :)
Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 26, 2003, 13:04:19
Sorry about delay broadband went down, here is the output, tell me if you want me to run anything else.

QuoteC:\lwjgl-0.8>java -ea org.lwjgl.test.opengl.Game
Adapter key: \REGISTRY\Machine\System\ControlSet001\Services\G400\Device0
Adapter key: \REGISTRY\Machine\System\ControlSet001\Services\G400\Device0
Driver dll = .dll
GetFileVersionInfo failed
Adapter:  Version: null
Querying Matrox Millennium G400 DualHead - English device
Checking setting #1
Checking setting #2
Checking setting #3
Checking setting #4
Checking setting #5
Checking setting #6
Checking setting #7
Checking setting #8
Checking setting #9
Checking setting #10
Checking setting #11
Checking setting #12
Checking setting #13
Checking setting #14
Checking setting #15
Checking setting #16
Checking setting #17
Checking setting #18
Checking setting #19
Checking setting #20
Checking setting #21
Checking setting #22
Checking setting #23
Checking setting #24
Checking setting #25
Checking setting #26
Checking setting #27
Checking setting #28
Checking setting #29
Checking setting #30
Checking setting #31
Checking setting #32
Checking setting #33
Checking setting #34
Checking setting #35
Checking setting #36
Checking setting #37
Checking setting #38
Checking setting #39
Checking setting #40
Checking setting #41
Checking setting #42
Checking setting #43
Checking setting #44
Checking setting #45
Checking setting #46
Checking setting #47
Checking setting #48
Checking setting #49
Checking setting #50
Checking setting #51
Checking setting #52
Checking setting #53
Checking setting #54
Querying NetMeeting driver device
Found 39 displaymodes
Removed 0 duplicate displaymodes
Setting display mode to 640 x 480 x 16 @60Hz
Created display.
Window registered
Created window
Pixel format is 4
Destroying directinput
Releasing DC
Destroy window
Destroyed window
Failed to create OpenGL due to java.lang.Exception: Mode not supported by hardware

Title: Some sort problem with lwjgl & matrox card
Post by: Big_Bluey on November 26, 2003, 19:16:27
I've got lwjgl to work!! :lol:  :oops:  :shock: etc......

Someone sent me a recent driver I hadn't tried, I ran the lwjgl game test & it worked very badly & so did Alien Flux with a few glitches.

This card sucks so I've already changed it with an spare old ATI one I had lying around.

I will never buy or use a matrox card if I can help it again.

Thanks again for your help  :)