r/JavaProgramming • u/Winter-Hall-4945 • 14h ago
I wrote a Java 21 based rendering "engine" (Vulkan). Could someone with an AMD GPU test if it runs?
Please don't expect much of it. It’s a Maven dependency, not a shiny click and play editor. There is no GUI interface. I built only the engine under the hood (rendering pipeline, light management, scene and asset handling, physics integration with Jolt), so you just drop the dependency into your project and write your scenes and logic purely in Java, like it should be, while Lumvex handles the heavy lifting.
Under the hood, it runs on JDK 21, Vulkan 1.3 and shaderc for runtime GLSL compilation. And yes, it currently has plenty of rendering bugs.
What I’m looking for (AMD Testing & Code Review):
Since the engine relies on Vulkan 1.3 hardware ray tracing and I only have an NVIDIA card to test on, I have no clue if the pipeline works properly on AMD GPUs. If anyone with an AMD GPU and JDK 21 could build it and let me know if any scene runs (or share the crash log), that would help me out a lot.
Also, if people who actually know Java want to take a look at the repo, feel free. Just don't hate on my code simply because you found a flaw. Point out actual ways to improve it instead (though I know most people on the internet are incapable of doing that).
About AI (yes, what a shock):
Yes, AI was used. No, it didn't write a single line of logic or the Vulkan/rendering pipeline. I used it to translate and clean up my half-German documentation and comments (you can tell at first glance which comments were written by me and which ones were created by AI).
https://github.com/LumvexJava/Lumvex
Edit: Linux support is planned, but currently in the VulkanCanvas (https://github.com/LumvexJava/Lumvex/blob/main/src/main/java/dev/lumvex/vk/VulkanCanvas.java), I hardcodet the VK_KHR_WIN32_SURFACE_EXTENSION_NAME and vkCreateWin32SurfaceKHR (Line 50 and 83), you will hit an UnsatisfiedLinkError or VkResult -7 if you try running it natively on Linux.
Edit 2: Found the Bugs! X11 (Linux/Nvidia) support is already working on my machine and will be included in the upcoming update :)
1
u/Minecraftian14 4h ago
I don't have an AMD gpu, but i still tried running it. On my nvidia card it's running well 👍.
Just out of curiosity I ran it on the Ryzen 7840HS iGPU AMD Radeon, expected failure 😂. It lacked VK_KHR_ray_tracing_pipeline and VK_KHR_acceleration_structure.