Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (727)
Games in Android Showcase (217)
games submitted by our members
Games in WIP (796)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 173
1  Games Center / WIP games, tools & toy projects / Re: InWar: Kingdom Rebirth on: 2017-05-18 10:28:41

It doesn't work on my main computer under Mageia Linux 5.1:
Exception in thread "LWJGL Application" java.lang.ExceptionInInitializerError
        at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(
        at com.badlogic.gdx.backends.lwjgl.LwjglApplication$
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at org.lwjgl.opengl.XRandR.findPrimary(
        at org.lwjgl.opengl.XRandR.ScreentoDisplayMode(
        at org.lwjgl.opengl.LinuxDisplay$
        at org.lwjgl.opengl.LinuxDisplay$
        at Method)
        at org.lwjgl.opengl.LinuxDisplay.init(
        at org.lwjgl.opengl.Display.<clinit>(
        ... 2 more
AL lib: (EE) alc_cleanup: 1 device not closed

However, XRandR works on it:
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
VGA1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
   1920x1080     60.00 +  60.00    60.00  
   1920x1080_60  60.00*
   1600x1200     60.00  
   1680x1050     59.95  
   1600x900_75   75.00  
   1600x900_60   60.00  
   1280x1024     75.02    60.02  
   1440x900      74.98    59.89  
   1280x960      60.00  
   1368x768_75   75.00  
   1368x768_60   60.00  
   1360x765_75   75.00  
   1360x765_60   60.00  
   1152x864      75.00  
   1280x720_75   75.00  
   1280x720_60   60.00  
   1024x768      75.08    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    60.00  
   720x400       70.08  
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

I use XRandR 1.4.3. What can I do to work around this bug?

P.S: It's caused by an unfixed bug of LWJGL 2:
Using the LWJGL 3 backend of LibGDX should solve this problem.
2  Java Game APIs & Engines / Engines, Libraries and Tools / Re: GLSL Language Parsers for Java? on: 2017-05-15 07:18:11

The author of Unlicense Lib probably knows the answer, you should contact him.
3  Discussions / General Discussions / Re: Project Panama - the JNI Replacement (slidedeck) on: 2017-04-21 09:10:30

At first, the Project Panama will be usable in production in several years and we'll have to wait for some more years for Android support. We have to go on using what already fits into our needs in the meantime.

Secondly, Project Panama might help to write Java bindings with a lot less boilerplate code and to get more contributors by lowering the difficulty (no or almost no need to code in C) but we already have GlueGen, it does the job, it supports Android, it's fast, it's fully tested. We need something flexible that we can adapt to our own needs. I'm not sure that Project Panama is flexible enough for us yet. If the performance of Project Panama is worse than those of GlueGen, it will be a no go.

Thirdly, I think that it might be useful for middle-level APIs targeting desktop and embedded environments but not Android. As a first step, I'd like to use it in some scenegraph APIs and 3D engines (typically to manage direct memory for textures, VBO, VAO, ...). When it's mature enough, maybe I'll try to convince the other contributors to use it a bit Wink
4  Java Game APIs & Engines / OpenGL Development / Re: GlBegin gives lag. on: 2017-04-21 08:44:16
Switch from immediate mode rendering to retained mode rendering (vertex arrays, VBO/VAO, ...).

Oops, it's already what the tiny link in the previous post suggests.
5  Games Center / WIP games, tools & toy projects / Re: TUER: Truly Unusual Experience of Revolution, FPS using JOGL on: 2017-04-20 21:49:58
Maybe it will work if you force the 64-bit mode:

If it's the opposite problem, open the game in 32-bit mode:
6  Games Center / WIP games, tools & toy projects / Re: TUER: Truly Unusual Experience of Revolution, FPS using JOGL on: 2017-04-20 18:31:25

I've seen this thread for a long time and I've wanted to play your game, but I cant seem to find a running version of your game. The Mac version on your website seems to be an outdated app that isn't compatible with a modern macOS.
Which version of Mac OS X do you use? jmaasing tested under OS X 10.11 and it worked. I don't understand why you claim that the Mac version is an outdated app whereas it's simply an OS X application bundle. I know that OS X 10.12 hides the "Anywhere" option in Gatekeeper but you should be able to run my game anyway. As far as I know, OS X 10.12 still allows to package a software as a disk image and as an application bundle. Maybe I'm missing something obvious as I haven't tested it under OS X 10.12, how can I help you?

P.S: This might help under Sierra (OS X 10.12):

P.S 2: This solution is less scary:
7  Games Center / WIP games, tools & toy projects / Re: TUER: Truly Unusual Experience of Revolution, FPS using JOGL on: 2017-04-19 22:23:30
Hi elect

Thank you for the reminder.

The website of my game will probably move to a new location in May, its source code, its images and its videos will follow. If I can't afford some complementary protection of my intellectual property, the new website will be used as a backup until my financial situation allows me to go to the next step. My own low-energy server works correctly, the main problem comes from my ISP that provides fixed external IP addresses to non professional customers at a very high price and that blocks the default port used by SMTP. I could work around this limitations by using a VPN. I've had too much problems with Sourceforge. Actually, I'm very happy to have my own piece of Internet entirely under my control  Grin  The problems of hosting and with Subversion on Sourceforge were discouraging. Finding some time to work on my game is difficult, being unable to commit for hours is demotivating.

I still have to improve the accuracy of the new abilities implemented in the artificial intelligence. The way the soldier turns is still unnatural :s After that, I'll have to allow him to go forth, the game will become a bit more challenging and a little bit less boring.

JNDT still relies on a forked version of Apache Commons Imaging, I plan to switch to Twelve Monkeys ImageIO and to port my conversion code from Apache Commons Imaging into javax.imageio, it seems to be a lot more viable on the long term especially since an Apache contributor rejected my contributions.

I have to fix some bugs in JOGL 2, we would like to release JOGL 2.3.3 this year and I'd like to use it in my game of course.

Best regards
8  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Ongoing project: Type-Safe access to ByteBuffers on: 2017-03-22 23:18:54
You don't talk about GlueGen.
9  Game Development / Newbie & Debugging Questions / Re: JMonkeyEngine on: 2017-03-17 23:21:51

Since it's all in Java and not a wrapper around C code, there's no manual memory management like some other engines seem to have.
It's not entirely true. Actually, it's not a wrapper but it uses several bindings to benefit of hardware acceleration and there is a little bit manual memory management if you don't want to lack of memory on the native heap as the direct NIO buffers aren't allocated on the Java heap:
10  Games Center / Showcase / Re: Maze of Bad Emojis on: 2017-02-07 16:23:41

Why does your game require Adobe Flash Player? Kongregate asks me to install it.
11  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Advantages of Ant? on: 2017-01-26 18:58:28

I find Ant very flexible, it's like a portable equivalent of Makefile. Maven requires to follow a lot of conventions, it works very well when you're straight in the road but it may become a nightmare when you have to do something noticeably unusual. Gradle has the best of the both in my humble opinion. I use a lot Ant and it's sometimes difficult to migrate away from it. I wrote my own tool to create native self-contained application bundles with it, it can be hardly ported to Maven or Gradle.
12  Discussions / General Discussions / Re: Animation Model format - LWJGL 3.1 on: 2017-01-02 15:27:07

As I said in the first post, I'm using  this approach to learn so I'm trying to code as much as possible without use a lot of APIs.

Read my reply again:
There are tons of importers in various scenegraph APIs, you can use them as sources of inspiration too.
I don't advise you to use them, I advise you to use them as sources of inspiration to understand how their developers solved numerous problems that you'll have to solve too and I remind you that you asked us whether there is any Java library to work / load models.
13  Discussions / General Discussions / Re: New Year Resolutions -- 2017 on: 2017-01-02 14:58:41
if (girlfriend != null) {
    if (girlfriend.getCupVolume(ManufacturerDesignStandardBraSize.FR) >= 90B) {
    } else //FIXME this should never happen
        // no way, not enough for a good t**** f***
        girlfriend = null;
        sex = 0;
} else {
    //TODO How can this be possible?
try {
} catch (final CopsInActionException ciae) {
    // sorry, there is no plan B
if (spareTime > 0) {
if (uselessNewYearResolutionsEnabled) {
    try {
    } catch (final InsufficientMotivationException ime) {
         // maybe it will work in 2084 :)
    } catch (final UnsupportedOperationException uoe) {
         // you don't even know me, I'm too lazy
    } catch (final NotEnoughCroissantsAndCoffeeException) {
         if (croissantProvider.getRemainingCroissantCount() >= 1) {
             // no moldy croissant please!
             if (croissantProvider.getCountry() == "USA") {
                  try {
                  } catch (final IndigestionException ie) {
             } else {
14  Java Game APIs & Engines / Java 3D / Re: Using JOGL with QtJambi on: 2016-12-27 16:16:31

The questions specific to JOGL should be asked on the official JogAmp forum.
15  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL uses wrong graphics card on: 2016-12-16 14:44:54
What about that?

On systems with more than one GPU it is desirable to be able to
      select which GPU(s) in the system become the target for OpenGL
      rendering commands. This extension introduces the concept of a GPU
      affinity mask.
16  Discussions / General Discussions / Re: Animation Model format - LWJGL 3.1 on: 2016-12-07 20:18:26

gLTF (GL Transmission Protocol)...
No, it's rather "GL Transmission Format":
glTF™ (GL Transmission Format) is a royalty-free specification for the efficient transmission and loading of 3D scenes and models by applications. glTF minimizes both the size of 3D assets, and the runtime processing needed to unpack and use those assets. glTF defines an extensible, common publishing format for 3D content tools and services that streamlines authoring workflows and enables interoperable use of content across the industry.

There is no "best" format for animations and it depends on the kind of animation (key framed or skeletal). JavaBlend is a nice API to manipulate Blender models. There are tons of importers in various scenegraph APIs, you can use them as sources of inspiration too.
17  Games Center / Showcase / Re: [Free][Windows] WorldGrower, rpg simulator on: 2016-12-03 11:47:14
I tried OpenJDK 8 ( on my Ubuntu installation.
Everything looks ok until I open the start menu of the game, and then Ubuntu freezes. It seems to be a known issue, I'm trying the different solutions.
Maybe I'll use the Red Hat OpenJDK next.
Is it this bug?
This workaround might help you:

Let me know whether you need some assistance, it's a pleasure to help you  Smiley Note that you can modify the files of the JRE before passing them to JNDT, it's a good way of testing this workaround and ensuring that your game is correctly packaged.

P.S: You can disable accessibility by using "-Djavax.accessibility.assistive_technologies=" or "System.setProperty("javax.accessibility.assistive_technologies", "");". I looked at the source code of java.awt.Toolkit, the former works, the latter has a chance to work if it's called very early and if another library doesn't initialize AWT before your own code.
18  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3 - Assimp bindings on: 2016-12-01 19:36:44
You're welcome. I like this library. In my humble opinion, its only drawback is the lack of versioning as it would help to follow and understand the changes.
19  Games Center / Showcase / Re: [Free][Windows] WorldGrower, rpg simulator on: 2016-12-01 19:34:10
You might notice some tiny differences in the font rendering and in the sound management.

As you use Java 1.8, you'll have to use Oracle Java or Red Hat OpenJDK (available for all supported platforms) instead of the custom build I use as it's OpenJDK 1.7.
20  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3 - Assimp bindings on: 2016-12-01 12:42:14
Possibly the best use of it is just loading stuff and converting it to whatever proprietary format is best for your game engine. Ie. as a tool, not a deployable part of a game.
Ok but then the performance would be less important than if it was deployed inside the game, wouldn't it?

.. and there is alot native code in jassimp
basil_, you make a confusion between another library with the same name and elect's jassimp. He talked about Kotlin, he really uses it as you can see in his source code:

theagentd, you can use JavaBlend for Blender files and FBX is proprietary so you get what is expected from this kind of format.

By the way, there are already some Java APIs providing some importers and exporters, Unlicense supports the .x format and I was a bit wrong as it partially supports .lwo (Modo), jReality, JMonkeyEngine and JogAmp's Ardor3D Continuation have some importers and exporters too. If elect succeeds, I'll see his project more as a source of code to implement importers and exporters in various engines rather than something I'll put into my projects as is. I spent about 10 days in writing an importer for the .ply format, I know that it's time consuming.
21  Java Game APIs & Engines / Engines, Libraries and Tools / Re: LWJGL 3 - Assimp bindings on: 2016-11-30 13:57:15

do you really think it's easy to beat a native implementation (in both CPU time and especially memory overhead) with pure Java?
It's not easy to me as assimp supports numerous formats but there are numerous importers and exporters for several scenegraph APIs, engines and frameworks decently optimized to avoid memory leak and you can modify the settings of the JVM to unload unused classes. If you want to compete with MeshLab, you'll need the 40 formats but I doubt that all are needed for a game or even for the tool set of a game in which you may use a few editor formats (.blend, .max, ...), a few interchange formats (Collada, U3D, ...) and a runtime asset delivery format (gltf, ...) or your own one. In my humble opinion, some popular formats are already supported enough by the existing Java ecosystem to drive such a binding not very appealing in certain particular cases but I agree with elect "it's good to have alternatives" and this binding can be very useful in some use cases.

I remind that using a "foreign" API to load models in a scenegraph API may add some overhead to convert the models in the object model of this API into the object model of the scenegraph API.

Personally, I've read tons of "loaders" in various programming languages and I advise you all to be very careful as I've found numerous APIs supporting tons of formats having numerous caveats or limitations. Sometimes, those limitations are commented only in the source code and not mentioned in the documentation.

Assimp supports Modo (.lxo). As far as I know, there is no free or open source Java importer supporting this format. This binding is then welcome to load files in this format  Smiley

Good job and keep up the good work.
22  Games Center / Showcase / Re: [Free][Windows] WorldGrower, rpg simulator on: 2016-11-29 19:57:05

Why does Economy2.png contain a large empty space under Oil Resource?

I'll put JNDT XML script into a JAR and improve the documentation for Gradle users as soon as possible. I advise you to test your game with OpenJDK as it's what most GNU Linux users use but nowadays there isn't a big difference with Oracle Java.
23  Games Center / WIP games, tools & toy projects / Re: TUER: Truly Unusual Experience of Revolution, FPS using JOGL on: 2016-11-27 18:52:58

TUER is ten years old, I've just published a new article about it.

By the way, I updated the documentation a few hours ago, especially for the end users under Microsoft Windows. I tried to install the English language pack on a friend's laptop, it was very painful and SmartScreen went on showing the warning message in French anyway, sorry for the bad "fake" screen captures used to illustrate the explanations:

2016/11/30: There is a new teleporter to go to the last level, there is a new poster at the exit of the museum and the artificial intelligence has been improved: the enemy tries to face the player (but it's not smart as he rotates brutally, I'll use slerp very soon).
My website is temporarily down because of a problem with Sourceforge.
2016/12/01: The game version and release numbers are stored in order to implement the system of update suggestion.
My website is back online, you may need to clear your cache to make it work. As Sourceforge has more and more technical problems, I will have to seriously reconsider hosting my infrastructure on my own low-energy server.
2016/12/02: JNDT is now packaged as a JAR and I've just updated its documentation, it should be a bit easier to use. Some complementary clarifications will be added very soon.
24  Discussions / Miscellaneous Topics / Re: Looking for simple but complete open-source game on: 2016-11-25 23:36:53
Still a crappy implementation, but not as bad as the old days.
What makes you think it's any better now? It still supports only OpenGL 1.1 or OpenGL 1.4 in the best case, doesn't it?
25  Discussions / General Discussions / Re: BDX - Open-source 3D Blender-Integrated Game Engine on: 2016-11-25 10:06:19

Shouldn't this topic be moved into the section "WIP games, tools & toy projects"?
26  Discussions / Suggestions / Re: Featured Open-Source on: 2016-11-23 20:06:44
Scratch that.  I couldn't find a single game's source code.
Tesseract, Spider Experiment, Jake 2, ...
27  Discussions / Suggestions / Re: Featured Open-Source on: 2016-11-22 20:17:57
In my humble opinion, mentioning the license isn't difficult, I do it for my contents and those I reuse too, it helps Smiley

There are tens of free or at least open source Java games in the archive of the FGF but you can still find most of them in the Java Game Tome.
28  Discussions / Miscellaneous Topics / Re: Looking for simple but complete open-source game on: 2016-11-22 20:13:49

Set org.lwjgl.opengl.Display.allowSoftwareOpenGL to true, it should work. Your machine probably only has the crappy Microsoft GDI Renderer as unique OpenGL driver:

A better solution would consist in installing a better OpenGL driver provided by your GPU manufacturer.
29  Games Center / Showcase / Re: Spatium Wars Alpha on: 2016-11-19 10:58:27

Sorry, I know that it's an alpha version but where are the installers (or at least the JAR(s)) for the other operating systems? I only see an installer for Windows  Huh
30  Discussions / Suggestions / Re: Featured Open-Source on: 2016-11-14 21:47:35

The source code of my main game is under GPL. By the way, KevinWorkman is a bit right, you talk about giving away, it's a bit more complicated than what you mean. Some projects clearly state that their source code is open source or free but mentions nothing about their artworks, there are tons of licenses with different terms, some licenses are viral, some others are permissive, some licenses can only be used for the documentation, some others can only be used for the source code, some others are only for artworks, ... Giving everything away is close to the terms of the Creative Commons Zero Public Domain Dedication license but it's not completely legal in some countries in which you cannot abandon or cease your paternity rights (typically in France).

Why not simply creating a new page in the wiki to store your list of free / open source Java games?
Pages: [1] 2 3 ... 173
Archive (295 views)
2017-04-27 17:45:51

buddyBro (483 views)
2017-04-05 03:38:00

CopyableCougar4 (928 views)
2017-03-24 15:39:42

theagentd (941 views)
2017-03-24 15:32:08

Rule (952 views)
2017-03-19 12:43:22

Rule (921 views)
2017-03-19 12:42:17

Rule (922 views)
2017-03-19 12:36:21

theagentd (984 views)
2017-03-16 05:07:07

theagentd (897 views)
2017-03-15 22:37:06

theagentd (693 views)
2017-03-15 22:32:18
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 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‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!