How to move around camera in JOGL 2.0?
Posted by
Lawa on
Jan 31, 2016; 1:08pm
URL: https://forum.jogamp.org/How-to-move-around-camera-in-JOGL-2-0-tp4036081.html
Hi ,
I'm creating a 3D room using JOGL 2.0 ( as I said before in my previous post I know it is absolute and everything but I have to do it with this version as its the only available option ) anyways , I have created some objects using GL_QUADS and textured them , but the problem begins when I try to navigate through them with the camera , I made
this based on a tutorial from a book , but I can't do the same for my objects , as in my program I have to use ( glEnable(GL2.GL_DEPTH_TEST) ) and ( gl.glEnable(GL2.GL_TEXTURE_2D) ) in init() method for my objects to appear but when I enable DEPTH_TEST and TEXTURE_2D everything goes black and it does not show anything else..
I'm trying to make something like
this (youtube demo video) and I can't find any sources on JOGL on how to do (at least) the camera movement or make the objects move towards you when you press W and back away when pressing S and so.
any help would be appreciated & in JOGL 2.0 please , I know it is deprecated but as I said it is my only option to do it, so suggesting "upgrading" the version will not be a solution for me.
P.S / I've done a lot of work onto it but the codes that I've written are useless and messy (as I used multiple classes) that's why I haven't uploaded them.
Thanks.
-Lawa