Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
Javatpoint Logo
Javatpoint Logo

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.

JCuboid.java

Output:


JOGL Cuboid





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA