[Solved] Get 3D coordinates of vertices of rotated and scaled cuboid with scale, center position and rotation on all axis

If you are using LWJGL you can also use JOML, in which case the following is probably what you might want: import org.joml.*; public class CubePositions { public static void main(String[] args) { /* Cuboid center position */ float px = 10, py = 0, pz = 0; /* Euler angles around x, y and … Read more

[Solved] LWJGL random lines inbenween shapes

I’m guessing you have all of your textures on on image? Near the edge of the block, OpenGL is sampling nearby pixels to make it smooth, so on the edge of your dirt block you can see it slightly fading into a stone block try the lwjgl version of this: glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, … Read more