Translating OBJ Models

I’m trying to create a chess game with LWJGL. How is it possible to move the pieces if I’m using VBOs and the data is stored in OBJ models? In other words, how do I translate the vertices?

Store your objects in local space and move by transforming your objects via a matrix transform.

How do I do this matrix transform with LWJGL? All the tutorials I’ve read are written in C++ and use a library such as GLM

Call glPushMatrix(), glTranslate() and glPopMatrix(). I advise you to learn OpenGL basics if you want to use any low level Java binding for the OpenGL API.

I know how to do that, but I’m looking for a method that isn’t deprecated.

If, and only if, you’re using LWJGL you should consider using the Matrix4f and Vector3f classes to create a transformation matrix, store it into a FloatBuffer using Matrix4f.store() and finally upload it to your shader using glUniformMatrix4(). Or if you’re using JOGL, Gouessej is your man.

In that case, I should have advised him to use PMVMatrix.

Thanks! Are there any articles or tutorials on how to do that?