Question: We HAve to SOlve Only 9 Q.No.8. (Marks: 10) Write (JOGL) method to draw octahedral dice. Octahedral dice has eight faces, six vertices and twelve
We HAve to SOlve Only 9

Q.No.8. (Marks: 10) Write (JOGL) method to draw octahedral dice. Octahedral dice has eight faces, six vertices and twelve edges. Each face has unique number etched in range of 1 to 8. Note: Each face must have surface, so select any OpenGL primitive which can generate surface shape for the required shape. Vertices and shape are shown in Figure 5. Answer: Q.No.9. (Marks: 10) Update the "drawOctahedralDice" method from Q.no.8 to map the texture on all faces of the shape. Texture contains numbers (from 1 to 8) in each triangle part as shown in Figure 5. F % B D 1 E 2 9 Octahedral Dice Y z 5 A o 0.5 0 3 B -0.5 0 1 0 -0.5 D 0.5 0 E 0 -0.5 600 F O o 0.5 Vertices for Octahedral Dice Texture for Octahedral Dice Figure 5 Note: Each face must have different number on it. And make sure that you update the method from Q.no. 8. Vertices, Shape and texture are shown in Figure 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
