This work-in-progress (the bastard offspring of the Community Project from earlier in the year) might one day become a 'Space' game.

Click and hold with the mouse to turn. Click and hold inside the targetting circle to move forward.

I haven't had much experience with OpenGL (JOGL2 specifically) so feel free to tell me of any errors or glitches. Also, I haven't made any attempt to optimize the code at this stage, so my apologies if it's really slow on some hardware. (Frames-per-sec and other debug information appears in the Java console window if that's open.)

Okay, assuming that the error message is pointing the finger at my use of GLProfile, I've cut-and-pasted bits of code at random from the JOGL2 demos. And moved some of the lines of the JNLP file around for good measure.

Debugging the old-fashioned way...I've added some extra output statements to the code. If anyone can tell me the last line to appear in the Java console window before the crash then I'll be one (tiny) step closer to fixing the problem.Thanks,Simon

Debugging the old-fashioned way...I've added some extra output statements to the code. If anyone can tell me the last line to appear in the Java console window before the crash then I'll be one (tiny) step closer to fixing the problem.

Hmm... difficult with webstart as console vanishes after crash (isn't there a way to keep that open? Man, I hate webstart!)Seems to generate 3 planet textures OK, then crash out either during or immediately after the 4th...

There's lots and lots more (13K in all) of the same sort of gobbledygook which I had to trim off to fit this post. Am I missing something obvious or is webstart a big pile of smelly pants?Can't you get it running as an applet? I want to see it working!

Running your app from the command line does generate this astonishingly helpful error log; [...]There's lots and lots more (13K in all) of the same sort of gobbledygook which I had to trim off to fit this post. Am I missing something obvious or is webstart a big pile of smelly pants?Can't you get it running as an applet?

Hmm, I'm not fluent in gobbledygook, but that looks like it's a Java crash rather than a Webstart crash. I don't know if running as an applet would help. (Are applets better at reporting error logs than Webstart? I've no particular reason for using Webstart rather than an applet, just inertia. Although being able to resize the window is probably a good thing for this project.)

Quote

I want to see it working!

Okay, let's try this. I'm speculating that the crash is something to do with vertex buffers (no real reason for thinking that, just guessing wildly). So I've temporarily uploaded a version (my original code for testing) that draws triangles one-by-one.

It's incredibly slow now. But it might just work!

And if it doesn't work then I'll just bang my head against the wall until I am enlightened.

And if it doesn't work then I'll just bang my head against the wall until I am enlightened.

Your walls are safe - it works now! ~20-60fps full screenLooks very nice - almost as nice as mine! I agree that the controls need tweaking though; my mouse finger gets tired so quickly nowadays...How about WSAD for pitch/roll & up/down for throttle, with the option to click on the screen to align the ship to that spot - much like you can with the stations now but anywhere on the sky. That way you could cruise with just the occasional click to change course - but controls can always be tweaked later...For almost no extra CPU you could have other 'planet systems' as billboard images in the distance and only switch to full 3D when you get close enough (switching the system you're leaving from 3D to billboard at the same time).

It's pretty close to what I had in mind for the community project - sod the realism, make it pretty and playable!Thumbs up! Hack in a trading screen from the 'dock' button, prettify the lasers, add a few explosions and you've got a game!

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org