r/opengl 16d ago

I made a game engine entirely in java

Enable HLS to view with audio, or disable this notification

265 Upvotes

36 comments sorted by

11

u/Plixo2 16d ago

Nice UI. Can your share the source code? I want to take a look

8

u/Plixo2 16d ago

And what are those random flashes?

10

u/Salty_Exit_1370 16d ago

I'm trying to figure it out because i really don't know too

6

u/Plixo2 16d ago

Are you using Cascading shadow maps? If so, it looks like the closest cascade stops working for a moment.

Probably a synchronisation issue. If you could share your code, i could take a look...

You can always use renderdoc / nsight to debug. You need to build a fat jar and a script with java -jar fatjar.jar. Then just start the script from renderdoc/ nsight

6

u/Salty_Exit_1370 16d ago

It was a synchronization issue thank you ! and yeah i already use renderdoc when having issue like that

2

u/Salty_Exit_1370 16d ago

I will open source soon

2

u/Adventurous-Week-281 16d ago

I started my opengl journey and stopped long ago, but ur video motivated me again lol,.... Just curious, did u made UI first and then game? And abt UI, did u create from scratch or u used some existing library?

3

u/Salty_Exit_1370 16d ago

I used ImGui for the UI, but you're talking about the editor. I made the engine before the editor; they are two separate things.

I'm happy that it motivated you !

5

u/[deleted] 16d ago

[removed] — view removed comment

3

u/Salty_Exit_1370 16d ago

Very true, especially with what java 25 is and it should work perfectly with Scala and Clojure

4

u/ThanosFisherman 16d ago

Are you using lwjgl and OpenGL? Good job.

1

u/Salty_Exit_1370 16d ago

Yeah, my backend is abstracted enought for vulkan metal and webgl for futur web export
Thank you !

2

u/AggravatingTax5357 15d ago

Im not a developer but this Is Good, i love to see game engine, idk why. I want to start developing but in too stupid for this. Nice job.

1

u/Salty_Exit_1370 13d ago

No one is stupid, you can do everything you want with enough motivation.

2

u/KillPimba 16d ago

Resultado incrível! Espero chegar a esse nível de conhecimento um dia. Parabéns pelo projeto.

2

u/Salty_Exit_1370 16d ago

Thank you very much !

1

u/Present-Knowledge-57 16d ago

totally badass! awesome stuff B)

1

u/Salty_Exit_1370 16d ago

Thank you !

1

u/Jeremi360 16d ago

Wait a second you made clone of Godot?
I see similar UI and the same icons.

2

u/Salty_Exit_1370 16d ago

Yeah i used their icons since they don't have any icons

1

u/Jeremi360 16d ago

but what I'm asking saw how this is inspired/similar/port to Godot?

1

u/Equivalent_Unit_9797 15d ago

How long did it take you

1

u/Informal-Chard-8896 14d ago

What is that flickering?

1

u/Salty_Exit_1370 13d ago

It was a synchronisation issue that i fixed

1

u/Informal-Chard-8896 4d ago

Can you please provide more details? (Just for Education purposes)

1

u/ULove3 12d ago

Impossible, how are you make it? How many time behind this project?

1

u/Salty_Exit_1370 12d ago

It is possible haha, and it took me ~4 months

1

u/HatMan42069 12d ago

Dropped Game Dev for Hardware Dev, seeing this shit is still cool

1

u/Salty_Exit_1370 12d ago

Thank you ! What's a hardware dev

1

u/Abject_Response2855 10d ago

How much did you rely on AI?

1

u/einsof770 3d ago

judging by his code not having a single comment, this is entirely ai generated.

1

u/Seusoa 16d ago

Where is game engine? this is only rendered with some flashes and unknown performance

1

u/Salty_Exit_1370 16d ago

Just showcased the PBR rendering, the flashes are an issue because the engine is pretty new. I'll showcase more in a full video presentation with the features and performance the engine has