Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to render a 3d cube in LWJGL?

Tags:

java

3d

cube

lwjgl

I can`t find a good tutorial on the web, about rendering a 3d cube in the Lightweight Java Game Library! I have been learning LWJGL for some time now. I know how to draw 2d objects. Could Somebody Help me?

like image 202
thegoodone Avatar asked Aug 07 '12 06:08

thegoodone


1 Answers

Here is a lesson of a tutorial for "normal" OpenGL but in the bottom of the site you can find code for the tutorial lesson in plenty of different languages and libraries, including Java with LWJGL.

To get the java code out of this jar you can open it with e.g. 7-zip and find the .java file in the folder named Lesson05.

like image 190
halex Avatar answered Nov 01 '22 20:11

halex