r/LWJGL • • Nov 08 '19

We need a Thread for new people

16 Upvotes

I'm coming from a position where I'm looking for up-to-date and reliable tutorials to learn LWJGL. The mods should make a thread to answer FAQs for people coming into LWJGL though, that will solve the problem that people would need to posts to ask this thing all over again


r/LWJGL • • Oct 27 '19

Start of my engine

13 Upvotes

Finally decided to restart my entire engine project to "properly" do it all, after a lot of time I finally got https://github.com/SpinyOwl/legui to work!, up next is perhaps model loading, I'll keep it updated here with progress!


r/LWJGL • • Jan 08 '17

Very good (free) book for learning LWJGL3.

Thumbnail
gitbook.com
11 Upvotes

r/LWJGL • • Jan 03 '15

The best, most in-depth beginner LWJGL tutorial series I've ever found

Thumbnail
youtu.be
10 Upvotes

r/LWJGL • • Feb 14 '20

Unofficial LWJGL Discord

9 Upvotes

Hey all! I did not see a discord channel for LWJGL and so I thought I would create one! link is below for anyone who is interested =)

https://discord.gg/6CywMCs


r/LWJGL • • Jun 17 '20

Fonts in lwjgl 3.

8 Upvotes

I'm making a 3d game engine and I want to render text, people say to use stb truetype. But, how do you use it?


r/LWJGL • • Oct 11 '19

Anyone know a good tutorial for LWJGL?

8 Upvotes

The only ones I've found are 7+ years old.


r/LWJGL • • Jun 06 '20

Best place to learn LWJGL 3 Game Dev?

7 Upvotes

Hi all. I've used eclipse for a long time with java and want to learn to use LWJGL 3 to create 3D games. however, I have been unable to find a competent tutorial that goes over that. does anyone have any tutorial suggestions?


r/LWJGL • • Jun 07 '23

Application slows down during mouse mouse movement

6 Upvotes

I originally asked this on another reddit, but it seems that ones currently doing an online protest and the mods aren't active to approve posts.

This is a little strange to describe, but the initial issue comes in with mouse movement.

First, the program runs just as expected. If I use my gamepad input to move the cursor, all is fine. All my other forms of input detection causes no problems in terms of the game loop. However, as soon as I move the mouse on my desk, if I move it faster than a crawl, it causes the entire program to stutter rendering and updating, almost as if its hung up on something. This issue only seems to affect the program when it is in a windowed state, even in borderless windowed fullscreen. When in exclusive fullscreen mode, this issue does not occur and I can move the mouse however I want. I do have a callback for cursor movement, but all I'm doing is reassigning my mouse x and y positions to the new position, nothing else is in the callback. My update method calls glfwPollEvents, and runs some standard model computation.

I'm using a standard fixed timestep game loop, shown here: https://pastebin.com/zHTUUB4W


r/LWJGL • • Mar 16 '15

I've started a 2D LWJGL 3.0 Tutorial Series and I'm looking for Critiques on writing style etc!

Thumbnail tutorial-edge.com
6 Upvotes

r/LWJGL • • Jan 08 '14

GL_LINE_STRIP not working with GL_BLEND

6 Upvotes

I just started using SlickUtil for TrueTypeFonts, which required me to enable GL_BLEND (otherwise the text is just a filled in rectangle), in my OpenGL init. Once I enabled GL_BLEND, my GL_LINE_STRIP stopped drawing. Is this expected behavior?

I have all my OpenGL init run once for all drawing. Do I need to enable GL_BLEND for drawing my fonts and then disable it for drawing my lines, in my loop? Is it common OpenGL practice to do this kind of OpenGL init every loop?


r/LWJGL • • Aug 13 '24

Tutorial for Learning OpenGL with Java/LWJGL

5 Upvotes

I am currently trying to learn some graphics programming to be able to eventually make a 3D game or graphics engine with Java one day. Does anybody know of any course, tutorials, or anything that can help that does not assume any prior knowledge of OpenGL and LWJGL (I am using Intellij as an IDE; tell me if I should use something else). I have found these two courses by DevGenie Academy and ThinMatrix on YouTube, but I do not know if any of these are good for beginners or if I should be looking at something else that will explain everything thoroughly.


r/LWJGL • • Jun 12 '23

Is LWJGL good option to start gamedev?

5 Upvotes

Hi guys, I was thinking of making my first game but I don't know if LWJGL is good for first time gamedevs. I'm searching to make some ps1-like graphics btw.

thanks


r/LWJGL • • Apr 04 '15

LWJGL 3 - Get Current Mouse Position Tutorial

Thumbnail
youtube.com
5 Upvotes

r/LWJGL • • Oct 06 '14

LWJGL is love. LWJGL is life.

5 Upvotes

I was only 16 years old.

I loved LWJGL so much, I read all the books and all the doc

I coded with LWJGL every day, thanking it for the API I've been given.

"LWJGL is love" I say. "LWJGL is life"

My friend hears me and call me a java fag

I knew he was just jealous of my garbage collector, and my awesome APIs.

I called him an ActionScript fag.

He punch me, and erase my code.

I'm crying now, my code erased.

I lay on my desk, it's really cold.

A warmth is moving towards me.

I feel something updating

It's LWJGL 3.0 !

I am so happy.

It whispers in to my ear : "This is my code"

It grabs me with its powerful API optimization, and puts me infront of my monitor.

I am ready.

I start coding for LWJGL

It starts giving me deprecated warnings

It annoys my so much, but I do it for LWJGL

I can feel my code breaking

I code against all those errors

I want to please LWJGL

It renders a mighty cube as it make my FPS go trought the roof.

My friend walks in.

LWJGL looks him straight in the eye and say "c++ rip in pieces"

LWJGL crashes my PC.

LWJGL is love. LWJGL is life.

Just did it on a whim on skype, while I was bored.


r/LWJGL • • Dec 09 '23

New build

4 Upvotes

Are the changes visible? I'm preparing a new build! The testers will have something to work on :)


r/LWJGL • • Nov 04 '19

How much speed/efficiency does Vulkan lose do to using LWJGL and java?

4 Upvotes

Title ^


r/LWJGL • • Nov 04 '19

What are some of the best LWJGL Vulkan tutorials?

4 Upvotes

r/LWJGL • • Oct 06 '19

Block game collision

4 Upvotes

I am making a Minecraft clone( I know, original) and I'm now working on collision, I was going to clamp the players y position to the block you are standing on position's to prevent them from going beneath it, is this a good idea? Or is there a better way.


r/LWJGL • • Apr 06 '19

Game renders when window isn't selected

4 Upvotes

how can i make it so the game doesn't render without the window being selected?


r/LWJGL • • Feb 11 '19

Partner Needed! Game Creation.

4 Upvotes

Hello! I'm really new to LWJGL but really want to turn my idea into reality the only problem is that without enough knowledge its not going to be possible. Instead I wanted to partner up with someone and create the game together so that I can learn and have my idea made into reality.

Contact me if you are interested!
Discord: Atariee#9222


r/LWJGL • • Feb 02 '19

PSA: Some Libraries May Unexpectedly Take Control of Main Thread, Causing a Window Freeze on Mac

4 Upvotes

This is a problem I spent a long time trying to work out. I just signed up for Reddit and thought I should be a good Internet citizen leave a warning to anyone else who is having the same problem I did and stumbles upon this. If you are at least using GLFW then this may affect you.

After following tutorials and getting to the point where I had loaded my first texture, I tested my program and noticed that whatever window I created would freeze with nothing but the background fill color. I played with it until I noticed that disabling the texture solved the problem.

If you have toyed with multi-threading, then you may have noticed a warning saying that GLFW can only be called by the main thread. Well, this proved to be the problem. I was using a wrapper of Slick-util for LWJGL 3.0+ to load textures, and it uses methods from AWT to do so. The thing is that AWT tends to compete for control of the main thread, and that was freezing my window.

So if anyone else is working on loading textures, be careful about your main window, especially when it comes to AWT. Here is an example of loading a texture in such a way that doesn't compete for the main thread.
https://github.com/SilverTiger/lwjgl3-tutorial/blob/master/src/silvertiger/tutorial/lwjgl/graphic/Texture.java
I wrote my own version of this and the application now runs fine on Mac.

Hopefully this helps someone out there!


r/LWJGL • • Apr 12 '17

I want to learn how to create 2d Games in LWJGL3, but I am confused as to why, despite its great documentation, there are so few classes or tutorials on utilizing it.

4 Upvotes

Am I putting the cart before the horse? Should I be learning how to code OpenGL and GLFW first, and then bring that knowledge to bear on the LWJGL wrapper?

I am already aware of the Gitbook "Developing 3D Games in LWJGL3", it's alright, am I currently using it. But there are still large portions of this book where the author expects you to already have a somewhat sophisticated understanding of OpenGL and GLFW. A lot of the time I feel like I am writing code but I don't have a good 'under the hood' understanding of why I am writing the code.

I really don't know where to begin. If people could recommend books, online courses (paid or free), or some tutorials that have helped them, I'd really appreciate it!


r/LWJGL • • Jan 15 '25

How to draw fonts in LWJGL?

3 Upvotes

I used a translator for this post, so if you have any questions, please leave a comment.

I found out how to load a bitmap font through this article.

But I don't know how to draw that font. I want the font to appear on the screen regardless of the camera. What should I do?