erikd
|
 |
«
Posted
2003-02-02 13:48:39 » |
|
Hi there, I put an early version of my game using LWJGL online at http://www.mycgiserver.com/~movegaga/gltest1.jnlp as a web start app. I'm sorry but currently it's windows only. The controls are: A - accellerate Z - go slower cursors - steer space - fire enter - start esc - leave game What I'm interested in is: - What's the fps you're getting - What's your set up? (Windows version, JRE version, Videocard, memory etc) Do you have the problems I encounter: - When using web start in combination with LWJGL (or more specifically if there has been a swing windows opened before a LWJGL fullscreen app is started, you'll have to 1st close down all windows that appear in front of the open gl screen to see anything). - Does it sometimes not close correctly? Thanks, Erik
|
|
|
|
EgonOlsen
|
 |
«
Reply #1 - Posted
2003-02-02 14:28:32 » |
|
Athlon XP 2000+, Win2K, GeForce 4Ti-4400, Java 1.4.0_03: The first run crashed my machine (blue screen, then reboot). The second try gave me this error message: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| java.lang.IllegalAccessError: try to access field BaseWindow.gl from class TexturePool
at TexturePool.<init>(TexturePool.java:29)
at GameWindow.initGL(GameWindow.java:97)
at BaseWindow.createGLWindow(BaseWindow.java:135)
at BaseWindow.start(BaseWindow.java:151)
at GameWindow.main(GameWindow.java:422)
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(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(Thread.java:536) |
|
|
|
|
erikd
|
 |
«
Reply #2 - Posted
2003-02-02 14:50:52 » |
|
That's weird, BaseWindow.gl is a public static... I put another version online with that changed.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Matzon
|
 |
«
Reply #3 - Posted
2003-02-02 14:58:00 » |
|
Celeron 366 @ 550, 256 MB Ram, GeForce 2 MX, WinXP, JVM 1.4.1_01 Getting 60 FPS - running quite smoothly - though sound makes it lag (shooting rapidly drops FPS quite significantly!) Try using OpenAL instead  Having troble seeng the pieces that I need to shoot / evade though :/
|
|
|
|
erikd
|
 |
«
Reply #4 - Posted
2003-02-02 15:06:21 » |
|
Yeah, I'm aware of the sound problems. I use AudioClip and I know it sucks and I will replace it with something else (maybe open-al).
You need to evade/shoot everything except the stars.
|
|
|
|
|
|
vrm
Junior Member  
where I should sign ?
|
 |
«
Reply #6 - Posted
2003-02-02 15:27:07 » |
|
Windows version : Linux Debian (SID)
Nvidia GeForce 2 / P3-1GHz JDK 1.4.1 RC
140~160 FPS
|
|
|
|
|
Matzon
|
 |
«
Reply #7 - Posted
2003-02-02 15:47:24 » |
|
Just turned off vsync - getting ~70 fps
|
|
|
|
Herkules
|
 |
«
Reply #8 - Posted
2003-02-02 16:23:53 » |
|
common XP-box. 60fps.
Framerate drops to 40-50 and game gets extremely yerky while constantly firing.
|
|
|
|
erikd
|
 |
«
Reply #9 - Posted
2003-02-02 18:33:00 » |
|
You're not mistaken  Yes, it's quite a change. Open-GL and LWJGL rule  java2d for games: never again for me! Why wouldn't you use OpenAL? The sound was just 5 mins quick copy/paste job from the java2d version of this game. Using AudioClips is very easy  I need to look into OpenAL and figure out how it works and figure out if I won't double the download size instantly. BTW is there any example code available for OpenAL (preferrably java)?
|
|
|
|
Games published by our own members! Check 'em out!
|
|
erikd
|
 |
«
Reply #10 - Posted
2003-02-02 18:33:56 » |
|
I just put a new version online with cooler graphics  1st thing I need to do is replace the AudioClips so that the jerkyness will disappear. I noticed on my machine when I added the AudioClips, framerate dropped about 15fps (without firing!)
|
|
|
|
Matzon
|
 |
«
Reply #11 - Posted
2003-02-02 19:32:15 » |
|
I need to look into OpenAL and figure out how it works and figure out if I won't double the download size instantly. If size is a problem, then encode it as Ogg Vorbis, use this Java En/Decoder: http://www.jcraft.com/jorbis/ - decode the files to pcm (which is OpenAL's native format) at first run. "Easy" way to gain 1:~10-12 compression ratio of audio. BTW is there any example code available for OpenAL (preferrably java)?
Yep - check org.lwjgl.test.openal package.
|
|
|
|
Matzon
|
 |
«
Reply #12 - Posted
2003-02-02 19:54:51 » |
|
regarding new version: something is wrong with transparency with the stars...
Why do I keep dying when I go from level 1 to 2? - do I need a specific amound of stars or what?
I have some vorbis stuff hacked up - I'll send it to your mail address soon - need to fix a small thing in it before sending...
|
|
|
|
princec
|
 |
«
Reply #13 - Posted
2003-02-02 20:19:48 » |
|
!!! Lovely. More work on the jerkiness please mister! And give me a bigger gun! 52fps, rate locked on my P3-M 1.2 / XP / GF2Go laptop. Cas 
|
|
|
|
erikd
|
 |
«
Reply #14 - Posted
2003-02-03 06:56:37 » |
|
something is wrong with transparency with the stars... That was intentional. The new background made the transparent stars almost invisible and I still have a problem with making masked images work... Why do I keep dying when I go from level 1 to 2? - do I need a specific amound of stars or what? Yes, 10 stars each level. I'll send it to your mail address soon Cool, thanks!  Lovely. More work on the jerkiness please mister! And give me a bigger gun! Thanks  The jerkiness problem (== replacing AudioClip with openAL) is the 1st thing to do, then game content (and get my online high score saver in place again).
|
|
|
|
Captain-Goatse
Junior Member  
I suck at teh 2D. XBOX IS BIG LOL!111
|
 |
«
Reply #15 - Posted
2003-02-03 13:53:55 » |
|
Java Web Start Errors, using win xp on athlon computer, LWJGL installed and such.
|
|
|
|
|
Orangy Tang
|
 |
«
Reply #16 - Posted
2003-02-03 16:48:58 » |
|
Wow, this is really rather cool - I'm getting flashbacks to Cosmic Tunnels on the Atari  Nice and smooth for the most part (~120fps, Athlon 800, GeForce2 GTS). Its more than a tad tricky to see what I'm shooting at though. Tunnel effect is rather nice (perhaps add a second tunnel layer moving the opposite direction at a different speed?) as is the engine exaust  . Oh, and maybe smooth out the camera motion when I fling the ship wildly into the sides  And web-start was pretty much seamless - although I did have to start it a couple of times because of the ole 'Lwjgl window behind other window' thing.
|
|
|
|
Herkules
|
 |
«
Reply #17 - Posted
2003-02-03 21:35:34 » |
|
These colors ..... LSD??? 
|
|
|
|
ChrisM
|
 |
«
Reply #18 - Posted
2003-02-04 03:33:08 » |
|
Quite "trippy"  Very cool! Now...if you could just get the camera to sit 1 inch off center (UDLR) you can see what you are shooting  I'm looking forward to seeing this progress! Great start! -Chris
|
|
|
|
pepe
Junior Member  
Nothing unreal exists
|
 |
«
Reply #19 - Posted
2003-02-04 08:13:29 » |
|
127 fps constantly, no drop, no visible GC Dell inspiron 8200 laptop, pIV 2.2ghz, 512MB ram, radeon 9000/64Mo under XP. sun jdk 1.4.1_01 Very cool, hard to see anything. Additive everywhere is quite bad, and being not in line with the ship would be better. By the way, is that the speed that i was supposed to have with the j2D version? If so, i understand why i could not play more than 20s.. items only spent 1s from the back to the front, and they now seem to take 7 more time. 
|
|
|
|
erikd
|
 |
«
Reply #20 - Posted
2003-02-04 08:47:31 » |
|
Thanks all for the nice comments and feedback  Very cool, hard to see anything. Additive everywhere is quite bad yes, I know the current blending is a problem because many colors are washed out to total white. I haven't succeed in getting the alpha channel working like I want it to work (see another thread about masking I recently posted on). Now...if you could just get the camera to sit 1 inch off center (UDLR) you can see what you are shooting I can make an offset in the camera so that the camera is hovering slightly above the ship although I think making the objects more clear will be more important to see what you're shooting. is that the speed that i was supposed to have with the j2D version? Yes, approximately. One difference is that you now have control over the speed, though I'm getting flashbacks to Cosmic Tunnels These colors ..... LSD Quite "trippy" Trying to come up with a name for the game, maybe "Cosmic Trip" would be a one? 
|
|
|
|
mhelles
Junior Newbie
Java rocks!
|
 |
«
Reply #21 - Posted
2003-02-04 12:16:47 » |
|
2 fps  , no sound, not reactive to button pushes. Config: Matrox G400 (newest driver), 700 Mhz Athlon, 384 Mhz, W2K. LWJGL installed and works great.
|
|
|
|
|
erikd
|
 |
«
Reply #22 - Posted
2003-02-04 13:07:40 » |
|
That's weird. The LWJGL demo's work ok for you and this little game doesn't???
You're obviously not getting hw accelleration. Is your desktop at 24bit color perhaps? (try turning it to 16bit).
Hmmmm.... :-/
|
|
|
|
erikd
|
 |
«
Reply #23 - Posted
2003-02-04 20:46:21 » |
|
I uploaded a small update to the game: - Camera movement is now not so jerky when you hit the side of the playfield. - Camera position is a bit higher - Quick'n dirty (c) hack to get rid of jerkyness caused by AudioClip when constantly firing. This is just temporary until I got OAL in place. - Some graphics are larger (play fire, homing missiles) Thanks to Web Start, only the code (I think about 48Kb) is dl'edv, not the music, sfx, gfx,lwjgl etc  But, on my machine, it was only updated the second time I ran it after I uploaded the jar (also thanks to Web Start???)
|
|
|
|
Captain-Goatse
Junior Member  
I suck at teh 2D. XBOX IS BIG LOL!111
|
 |
«
Reply #24 - Posted
2003-02-05 12:19:48 » |
|
This be the error
An error occurred while launching/running the application.
Title: Move GA*GA Vendor: Move GA*GA Category: Unexpected Error
Unexpected exception: java.lang.IncompatibleClassChangeError
|
|
|
|
|
erikd
|
 |
«
Reply #25 - Posted
2003-02-05 12:40:52 » |
|
Hmmm.... on my machine at work it starts, loads the textures etc and then exits for no apparent reason (no error message, no nothing)... :-/
|
|
|
|
erikd
|
 |
«
Reply #26 - Posted
2003-02-05 13:09:11 » |
|
Does it work on anyone's machine??? I don't get it. I tested it on my PC at home and it worked although I had to try it twice for the automatic update to work. Now at work it simply stopped working, with no errors. And at capt.goatse's PC one error message, EgonOlsen's PC another error (which made no sense) and hangs his machine. pfffft... :-/ Anyways, I'll try to see if I can fix it when I get home. If not, then not. 
|
|
|
|
Matzon
|
 |
«
Reply #27 - Posted
2003-02-05 13:38:09 » |
|
Does it work on anyone's machine Works as advertised....
|
|
|
|
erikd
|
 |
«
Reply #28 - Posted
2003-02-05 14:30:41 » |
|
Works as advertised.... Aha. In other words: 'Write-once, maybe-it-runs-somewhere' This sucks :-/
|
|
|
|
princec
|
 |
«
Reply #29 - Posted
2003-02-05 16:16:38 » |
|
Welcome to the world of games development :/ At least in this case it's probably our fault, and likely one that's to do with how you select a screen mode. What's your code to select a mode? Cas 
|
|
|
|
|