Write a program that allows interactive manipulation of the

Assignment Help Computer Graphics
Reference no: EM13347573

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: EM13347573

Questions Cloud

One-way to solidify the concepts of clientserver computing : one-way to solidify the concepts of clientserver computing and interprocess communication is to develop the
Assessing the value of customer relationship : assessing the value of customer relationship managementtrevor toy auto mechanics is an automobile repair shop in
Project africa case patrick wiz is a university professor : project africa case patrick wiz is a university professor working in a top-ranked mid-west-based business school the
Question 1 a firm with market power has estimated the : question 1 a firm with market power has estimated the following demand function for its productq 12000 - 4000 pwhere p
Write a program that allows interactive manipulation of the : write a program that allows interactive manipulation of the position and orientation of a camera. prepare a teapot at
Charge is distributed with constant volume density d : charge is distributed with constant volume density d throughout the rectangular box with length a width b and height
1 tree map for why do science2 bubble map for empirical : 1 tree map for why do science?2 bubble map for empirical evidence3 double bubble map for scientific theory and
Implementnbsp the lsquoguess the word game in an : implementnbsp the lsquoguess the word game in an object-oriented manner. this program would add some basic manipulation
Write an essay on lockes theory of meaning question based : write an essay on lockes theory of meaning question based on essayexplain lockes theory of how words have meaning.what

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

  Draw a teapot at the global origin

Draw a teapot at the global origin

  Concepts of computer graphics

Concepts of Computer Graphics and develop a program using OpenGL

  The security policy document outline

Using the GDI Case Study below, complete the Security Policy Document Outline

  Develop the image manipulations

Develop the image manipulations

  What does resolution mean

What does resolution mean How is resolution connected to ppi and dpi units

  Differentiate between a bitmap image and a vector image

Differentiate between a bitmap image and a vector image Explain the following terms

  Essential elements of a design pattern

configuration of an Iterator pattern, patterns could be used in a Library System, Singleton, Template, Decorator, Façade,What does Alexander means by the following declaration "But it is impossible to form anything which has the temperament of natu..

  Framework of user interface design

design of user interfaces, natural mapping, GUI applications, web page design different to designing for printed media, risks exposed in this "phone as individual proxy" approach, interaction designers of ubicomp applications, Storyboards are usual..

  What are the factors affecting picture composition

Define picture composition What are the factors affecting picture composition. Elaborate on each factor Describe the basic lines present in a composition

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