Main Menu

Recent posts

#91
Bug Reports / RFE / [BUG] Rare and Random crashes ...
Last post by Lankyware - March 07, 2024, 12:46:46
Ok so in my indie game, the game will randomly crash like once every 3 hours or so on average. It gives the message: A fatal error has been detected by the Java Runtime Environment. And it makes a log file. I've looked into it a lot and haven't been able to find out what causes this. This article is the closest I've found to an answer: https://inside.java/2020/12/03/crash-outside-the-jvm/
Error log file: https://gist.github.com/dfu1/253cc2f51b372027109dc99604b2c4ed
I've taken a look in the log file, and in the Java frames part it shows there was a call of org.lwjgl.opengl.GL11C.glDrawArrays(III)V.
And in the Internal exceptions, it says there's a java/lang/NoSuchMethodError exception.
I cannot figure out what the cause is, and I don't understand why it would be happening so rarely and randomly.
Any explanations/ideas are welcome.
#92
Lightweight Java Gaming Library / Re: Indie Fighting Game using ...
Last post by cpope9141 - February 19, 2024, 19:19:12
The February release of Area Zero (v0.9.0) is now available for download: https://ephemeraltechnicalarts.com/area-zero

Release Notes:
0.9.0 (02/18/2024)
  1. All characters now have an air special attack. This attack is activated by pressing the special attack button while airborne.
  2. All of Richard's animations are color mapped.
  3. All of Niven's attack animations are color mapped.
  4. Get up animations (wake up) can be canceled into any grounded special attack.
  5. Down specials can now be activated immediately from standing state.
  6. Tutorials improved and expanded to include new attacks and features.
  7. New color palettes added for each playable character.
  8. Wall bounce tweaked to be more consistent.
  9. Fixed sound effect issue related to characters in hit stun.
  10. Fixed linked animation issue.
#93
How do I make a 3d camera in java and lwgl that can look around with mouse and can move around with key binds, like roblox studio's workspace camera.

Cheers, Shreyank6189
#94
OpenGL / how to make a 3d camera in jav...
Last post by shreyank6189 - February 07, 2024, 14:28:37
How do I make a 3d camera in Java and LWGL that can look around with the mouse and can move around with key binds, like Roblox studio's workspace camera? I could also use Opengl with lwjgl

Cheers, shreyank6189  8)
#95
LWJGL Documentation / Re: Moving circle emaple wante...
Last post by spasi - February 02, 2024, 09:08:31
Hey Dmytro,

You can find some fairly advanced demos here: https://github.com/LWJGL/lwjgl3-demos
#96
LWJGL Documentation / Moving circle emaple wanted
Last post by Dmytro - February 02, 2024, 00:02:09
Hello!

I'm pretty new to LWJGL world.
At this moment I installed everything and sucessfully run example from title page.
But I need more complex example to start develop my project.

Ideally it should be a simple application of bouncing ball or similar. Later I will develop a simulation of planets with field of gravity.
The computation engine is ready need only high-performance graphics. I suppose LWJGL is wnat I need.

Thanks and Regrads,
Dmytro.

#97
OpenGL / Re: Error when creating window...
Last post by aerodash - January 25, 2024, 00:10:33
Hello Spasi :)

Thank you very much.
That worked great !
Just added this:
while (!glfwWindowShouldClose(handle)) glfwWaitEvents();
#98
OpenGL / Re: Error when creating window...
Last post by spasi - January 23, 2024, 09:17:45
Hey aerodash,

Please see https://github.com/LWJGL/lwjgl3/blob/master/modules/samples/src/test/java/org/lwjgl/demo/stb/Vorbis.java for a working example of multithreaded UI (i.e. the event loop), rendering and audio.

The recommended approach is to use the main thread for the event loop (with glfwWaitEvents) so that you're always consuming UI events, then spawn secondary thread(s) for rendering and audio. This works nicely on macOS too (where the event loop must always be on the first thread of the process). Rendering never stops, even while dragging the window.
#99
OpenGL / Error when creating window and...
Last post by aerodash - January 22, 2024, 23:33:54
Hello :)

I am trying to do all rendering on a separate thread.
What I am doing right now is the following:
glfwInit();
long handle = glfwCreateWindow(800, 600, "Demo", NULL, NULL);
new Thread(() -> {
  glfwMakeContextCurrent(handle);
  GL.createCapabilities();

  int shader = loadShaders();
  int vao = createVao();

  while (!glfwWindowShouldClose(handle)) {
    glUseProgram(shader);
    glBindVertexArray(vao);
    glDrawArrays(GL_TRIANGLES, 0, 3);

    glfwSwapBuffers(handle);
    glfwPollEvents();
  }
}).start();


With the above code, rendering works as I can see a triangle but the window is not responsive.
When moving or clicking on the window the process would stop responding.
#100
The January release of Area Zero (v0.8.0) is now available for download: https://ephemeraltechnicalarts.com/area-zero

Release Notes:
0.8.0 (01/18/2024)
  1.Ex Cancel routes expanded:
    a. Standing specials can be canceled into any other standing special for 2 blue meters.
    b. Special attacks tuned to accommodate new routes.
  2. Move lists now available for all characters through the pause menu.
  3. Universals established:
    a. Every character has a back + HP command normal.
    b. Every character can chain together their LP, HP and back + HP attacks.
    c. Every character's back + HP can cancel into special or super.
  4. Advanced tutorial mode added; Covers universals, cancels and Hold-to-Cancel feature.
  5. Credits screen added and Patrons are acknowledged.
  6. Richard's attack animations shaded and colored.
  7. Additional animations for Richard and Niven shaded and colored.