Used lab 07 as my framework. Reason why I used lab 07 is because the lab consists some components that are crucial to this project. The cube with a sphere clipped used in the lab was ideal for my project. My goal is to generate a beautiful well strcture cube and to get the clipping function working the way I want to. Displaying a 3/4 cut sphere to get a realistic concave look for each face of the dice.
The image on the left is a snapshot of the code to contruct the cube. First I needed to state the vericles of the cube to create the 8 points. As you can see on the image, b(vk) and f(vk) means back(vertices number) and vice versa. These values are put in a vector called "Vec vert[8] = {...}" which takes in 3 integer values. Creating the faces for each side on the cube is handle in the function "int face[12][3] ={...}" [12] means the number of edges and [3] is the number of values in the double array.
The outcome. I don't know how I got the transparency/reflection look. Possibly it was already in the framework. I like the look and it is possible to re-create the first dice shown above under the introduction section.