Home » JOGL 3D Cuboid

JOGL 3D Cuboid

by Online Tutorials Library

JOGL 3D Cuboid

In the previous section, we create a cube which is hollow from inside. Now, we will create a solid cuboid and rotate it. While rotating, the cuboid will also move on the whole screen.

To create a solid graphical 3D object it is required to enable depth test. The gl.glEnable( GL2.GL_DEPTH_TEST ) method is used to enable it.



JOGL Cuboid

You may also like