Set the near value in glOrtho to -2 or -3 instead. Your view is too close to the cube so anything outside the viewing volume (in this case behind the camera) gets clipped. To be assured the most stable version, choose Release. To get started, you will need a copy of LWJGL, which can be accessed from the LWJGL website. Package Main import import java.io.FileInputStream import java.io.IOException import import import import import 11 import .Vector3f import import import import import .GLU import .Texture import . Re: LWJGL 3D cube not rendered correctly. If you do not, download the latest version of the Java Development Kit (henceforth referred to as the JDK) and the latest version of Eclipse (Neon 3 at time of writing).
0 Comments
Leave a Reply. |