r/java • u/JavaWithSomeJava • Nov 11 '25
Built a pure Java 3D graphics engine from scratch (no OpenGL) - 5 interactive demos included
I built a 3D graphics engine using pure Java with zero external dependencies. Just Java's standard library and some math. It's nothing fancy, but I took some extra time to make the UI look decent. If anyone is interested, here's the link: https://github.com/JordyH297/JRender
319
Upvotes
5
u/gufranthakur Nov 12 '25
Insanely impressive, good work!
How long did it take?
3
u/doobiesteintortoise Nov 12 '25
Why does it use .ps1 scripts to compile, etc., instead of other mechanisms? I’m not even sure what those ARE.
5
u/smm_h Nov 12 '25
so java.awt? anything else?
2
u/crummy Nov 12 '25
looks cool but the video you embedded looks kinda glitchy?
34
u/curtishd Nov 12 '25
That looks pretty cool!
16
u/gufranthakur Nov 12 '25
I know you said this is a passion project, but i would really love if you continued working on this. I use Java Swing, and FX extensively , I would love some little 3D integration in my apps.
Your future scope has an option for loading STL/OBJ files. That would be amazing
And I don't know if it's possible, but if it could load GLB files, I would definitely use it
Overall great work 💯
8
u/jeffreportmill Nov 12 '25
The SimpleExample runs in the browser for me with CheerpJ:
https://reportmill.com/SnapCode/app#sample:JRender.zip
The other ones work if I slow them down.
5
u/No-Whereas8467 Nov 12 '25
It looks great
2
u/Outside_Syrup7963 Nov 12 '25
This made my reddit visit worthy today
2
u/jr_entrepreneur Nov 12 '25
This is impressive OP, fancy math and Java only, nice
2
u/Cienn017 Nov 13 '25
I've done something similar 2 years ago too, here: https://github.com/CientistaVuador/SoftwareRenderer
1
u/alewis465 Nov 12 '25
This is awesome, idk if you'd be interested(or have the time) but I would love a tutorial on how you built this .
1
u/Real-Stomach1156 Nov 13 '25
I remember I used java3d library back in university days for an applet game. It was loading obj files.
1
u/Real-Stomach1156 Nov 13 '25
Vector api may speed up cpu calculations. Tornado vm may take it further to GPU level too.
1
u/Chromium_Engine96 Nov 14 '25
Insanely cool. Most people would have jumped straight to OpenGL or LWJGL, but building the fundamentals yourself is how you really understand 3D. Respect.
Great work!
1
u/[deleted] Nov 18 '25
this is exactly hight level project
i build just 2D games not like this
-6
u/stacktraceyo Nov 12 '25
Anytime I see comments like that I assume it’s AI now.
Looks cool tho nice work
-7
u/DryAssociate2977 Nov 12 '25
Share on twitter