Draw a teapot at the global origin

Assignment Help Computer Graphics
Reference no: EM131506

Write a program that allows interactive manipulation of the position and orientation of a camera. Prepare a teapot at the global origin 0,0,0. You will 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.

Reference no: EM131506

Questions Cloud

Solidify the concepts of client/server computing : One-way to solidify the concepts of client/server computing and interprocess communication is to develop the requirements for a computer game which plays "Rock, Paper, Scissors" using these techniques.
Value of customer relationship management : VALUE OF CUSTOMER RELATIONSHIP MANAGEMENT
Create a system to manage the overall process : Create a system to manage the overall process
Explain whether the firm will make economic profit : Explain whether the firm will make economic profit, In the short run and In the long run.
Draw a teapot at the global origin : Draw a teapot at the global origin
What is the dipole contribution to the scalar potential : Charge is distributed with constant volume density D throughout the rectangular box with length a, width b and height c.
Chemical equations illustrating chemical changes : BUBBLE MAP for EMPIRICAL EVIDENCE
Implement the guess the word : Implement  the ‘Guess the Word' game in an object-oriented manner
Write an essay on locke''s theory of meaning : Write an essay on Locke's theory of meaning

Reviews

Write a Review

Computer Graphics Questions & Answers

  Create a simple warm-up program using your g3d

Create a simple warm-up program using your G3D programming and graphics environment.

  Shadow effect while rolling a sphere

Shadow effect while rolling a sphere as well as the options of shading and lighting.

  Relative positioning and interactive positioning

Relative Positioning and Interactive Positioning by Dragging and Clicking and some Simple Animation

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd