Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Computer Graphics Expert

prepare a program that allows interactive manipulation of the position and orientation of a camera. Draw a teapot at the global origin 0,0,0. You can find a shaded teapot model and source code teapot_glut.c. Initially, the camera is at 0,0,10 looking down the -z axis (looking at the origin 0,0,0). The main objective of this homework is to manipulate the position and orientation of the camera. The position of the camera is restricted to be on the surface of a virtual sphere with the radius of 10. So you can imagine a teapot at the origin, and a camera on a surrounding sphere pointing at the teapot. There are two camera manipulation instruction, elevation and swing. In elevation mode, the camera should be elevated on the surface of the sphere while maintaining the look-at point at the origin. The range of elevation on the surface of a sphere is between -90 and 90 degree. Use mouse motion function to implement the user interaction. Users should be able to elevate the camera by dragging mouse upward. In swing mode, the camera should be moved sideways on the surface of the sphere while maintaining the look-at point at the origin. Use mouse motion function to implement the user interaction. Users should be able to swing the camera by dragging mouse sideways. Note that during the swing operation, the elevation level should be preserved and the camera should not tilt sideways. Using a pull-down menu, a user should be able to toggle between grid view on and off. Quit menu will terminate the program.

Computer Graphics, Computer Science

  • Category:- Computer Graphics
  • Reference No.:- M91098

Have any Question? 


Related Questions in Computer Graphics

Write the given assignmentcomputer graphics assignmenta

Write the given assignment: COMPUTER GRAPHICS ASSIGNMENT. a) Using a well labeled sketch explain the construction and principle of operation of a • LCD • PLASMA • CRT display b) Briefly explain the following three raster ...

Learning outcomesat the end of this project the students

LEARNING OUTCOMES: At the end of this project, the students should be able to: 1) Demonstrate a working knowledge of basic 2D computer arts creation and modification tools, techniques and strategies (for part I). Demonst ...

Submit your solution document in the form of a single zip

Submit your solution document in the form of a single ZIP file on or before the cut-off date shown above. Please follow the instructions on the filename convention, it is important! You must implement your assignment in ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate