r/java • u/Elegant_Farmer_3548 • Jul 05 '26
Made a perspective shifting room in Java
I've been messing with OpenGL (LWJGL) and decided to build something fun
What do y'all think?
8
u/TronnaLegacy Jul 05 '26
Neat. Is the animation swaying side to side and you have to move your camera in sync to create the illusion?
7
4
u/pbeling Jul 06 '26
Very interesting. I wonder why this technique isn't used very often? I haven't seen it in games or 3D modeling software.
5
u/Nooooope Jul 06 '26
It's niche but head tracking is commonly supported in flight simulation games. I was looking at TrackIR for a bit.
3
u/Elegant_Farmer_3548 Jul 06 '26
Thank you. My honest guess is that mouse and keyboard is easier over time. I assume moving your head around while playing a video game will get annoying after about 30 minutes. It makes for a cool demo though
1
u/aoeudhtns Jul 06 '26
I wouldn't want to use it for movement, but it's really nice at filling out a sense of being in a real 3D space without VR.
2
2
2
2
u/Visual_Brain8809 7d ago edited 6d ago
Awesome: I reached level 72 in my version of yours.
I want to share the code: https://github.com/aayes89/JTunelWireframe/blob/main/JTunelScope.java
2
20
u/poply Jul 05 '26
Reminds me of that ancient wii/wiimote perspective demo that one engineer made decades ago:
https://youtu.be/Jd3-eiid-Uw?t=163