Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.
This project is three dimensional (3D). Use gluLookAt, glRotatef, glTranslatef and glScalef to answer the following.Please document your code to let me know what you are thinking.If you use programs created by others, please give them credit in the opening lines of your program(s).Using opengl:Create a 1 by 1 by 1 cube at center of the world coordinate system.Each side of the cube has 2 faces: outward face is a color and each face has a different color and inward face is a wireframe. Include x, y and z axes.Create a keyboard function that does the following with only one active at any time. The cube will not return to the world view center when a new button is pressed (e.g. if the cube was translated, it will rotate in the translated position):one key scaling the cube by .1 and another by -.1another key rotates the cube by .1 and another by -.1another key translates the cube .1 toward the negative x axis and another by -.1 to positive x axisanother key starts the cube spinning in place and another stops the spinningCreate a timed function to animate the scene. The camera will rotate in a circle around the scene looking at the world coordinate center.The project will be evaluated based upon meeting the requirements specified above, the code compiles and executes and there are appropriate comments in the code.
Research:Research gluPerspective, gluLookAt, glRotatef, glTranslatef and glScalef in the Red Book or online. Try programs created by others or enter programs from textbooks to become familiar with these functions.Look, but do not copy directly, online that perform similar functions
The Red Book: http://www.glprogramming.com/red/The Blue Book: http://www.glprogramming.com/blue/