Hello … Hi u doin ?
am facing problem with this Question i need someone write the solution pls …
Render a room in your program. The room must have a floor . Use glutSolidCube(1.0) with appropriate scaling, rotation and translation to create the floor. Place 6 different 3d objects in your room
Position your objects on the floor of the room by translating, rotating or scaling as
necessary.
MINIMUM requirements of the object:-
- The object should at least 6 polygons.
- It should be made up of at least 2 types of polygons (triangles, rectangles, pentagon, hexagon, etc).
Place a camera in your program such that the entire room and your object are visible.
Add codes to your keyboard callback function to do the following:
‘X’ - To move the camera in positive x direction
‘x’ - To move the camera in negative x direction
‘Y’ - To move the camera in positive y direction
‘y’ - To move the camera in negative y direction
‘Z’ - To move the camera in positive z direction
‘z’ - To move the camera in negative z direction
Add codes to your special key callback function to do the following:
GLUT_KEY_DOWN - rotate room and object about the x-axis in clockwise direction
GLUT_KEY_UP - rotate room and object about the x-axis in anti-clockwise direction
GLUT_KEY_LEFT - rotate room and object about the y-axis in clockwise direction
GLUT_KEY_RIGHT - rotate room and object about the y-axis in anti-clockwise direction.
** note pls if anyone write the code just if he might to explain about …i dont know alot about Opengl but i love it and am trying to be a pro
thx