java - Hide Rubik's Cube Internal Wirings -
In terms of Java / OpenGL application, I am depicting the large cube made of a black wired (only without filling) 27 hours.
cubes. To do this, I wrote the following code:
for (int x = 1; x & lt; = 3; x ++) {for (int y = 1; y and lt; = 3; y ++) {For (int z = 1; z
Vircube is using the
method using GL11.glBegin (GL11.GL_LINE_LOOP);
To define the projection and correct the "camera" position, use the correct call to gluPerspective
in the case of "camera" I am capable of displaying it as needed and .... I am very happy with that!
My new problem is now, how to modify this code to "hide" all the wiring coming inside the big cube?
Thanks in advance for help
Manu
Depth Test ( glEnable (GL_DEPTH_TEST)
) and put the quad on the cubes' surfaces.
To draw a quad, glBegin (GL_QUADS)
Use the four corners and glend ()
calls.
Comments
Post a Comment