Find the normal to the triangle

Assignment Help Computer Graphics
Reference no: EM13860855

a. Familiarization with transformation

b. Familiarization with vectors and vector operations

c. Familiarization with object modelling

d. Familiarization with hierarchical object

e. Familiarization with interactive graphics

Task 1 - Using vector operations and Transformations

Purpose:

• Experience with vector and vector operations

1. Given a point P = (Px, Py, Pz) and an object, O = (Ox, Oy, Oz), Show the matrices used when computing the rotation O around P by angle α. The rotation is around the X-axis.

What is the result when P = (1,2,3), O = (4,5,6) and α =30o. The rotation is around the X- axis.

2. Given two vectors v=<2, 3, 4> and u=<1, 5, 7>, find the angle between the two vectors.

3. Given a triangle T p0=(1, 1, 1); p1 = (-1 ,-1, -1); p2 = (-1, 1, -1);

Find the normal to the triangle. Assume that the triangle is given clockwise. Normalize the vector. Draw a figure showing that your normal is correct.

Find the angle that is adjacent to p0.

Determine the area of the T

4. A heroine is carrying a triangular shield as a protection from a javelin that was thrown at her. The shield is designed to protect against any projectile that hit the shield at an angle of 60 degrees or less with respect to the shield surface, α ≤ 60 (α is the angle between the shield and the javelin). The javelin velocity (towards the target) is v=<0 ,-12, 11> and it has hit the shield at p=(px, py, pz).

The shields coordinates are s0=(5, 1,0) , s1 = (5,2,5) and s2=(10,3,10). Figure 1 illustrates the question.

4.1. Determine whether the shield will protect the heroine. Show your work.

183_Vector operations and Transformations.png

6. Find the transformation matrix which is required to rotate an object around the vector (p1 - p0) where p0 = (1,1,1) and p1 = (2, 3, 4). Show your work.

2. Task 2 - Render a sphere

Purpose:

a. View a simple 3D object.

b. Experiment with model space transformation

c. Familiarization with provided code

To do:

1. Create a project and modify code.

Modify the sphere to be at position 100, 10, 100.

Set up a view position (e.g., 200,200,200) and the look at vector to 100, 10, 100 (centre of sphere).

The sphere is rotating around the axis which is laid out along the z-axis. Set up the orientation of the sphere so that it rotates similar to the earth (66.5 degrees). Determine which axis you need to rotate around.

Display the sphere.

3. Task 3 - Create a simple complex object (hierarchical object)

Purpose:

a. Create hierarchical object

b. Use keyboard commands

c. Use transformations

To do:

2. Create a simple hierarchical object and place it beside the sphere from Task 1.

The object consists of a box and two spheres, where the spheres are placed on top of the box. Randomly set the three primary colours to the vertices (so that you can see the spheres rotating). Use the cylinder code to create the box and scale it in the required directions.

One sphere should rotate counter clock wise around the axis (CCW) at a rate of 0.1o per frame (about 3o per second).

The second sphere should rotate around the y-axis clock wise (CW) at a rate of 0.2o per frame (about 6o per second).

The user can move the cylinder in the xz plane by using the i,j,k,l keyboard strokes -

Pressing on i means translate the object by a small delta (e.g., 1) x along the x- axis = x -delta;

Pressing on l means translate the object by a small delta (e.g., 1) along the x-axis x = x + delta;

Pressing on j means translate the object by a small delta (e.g., 1) along the z-axis z = z -delta;

Pressing on k means translate the object by a small delta (e.g., 1) along the z-axis z = z + delta;

2182_Vector operations and Transformations1.png

4. Task 4 - Render a "robot arm" complex hierarchical object

Purpose:

a. Create a more complex hierarchical object

b. Use keyboard commands

c. Experiment with the simplicity of hierarchical objects

1. Create a simple "robot arm" (hierarchical object) as follows:

The object consists of 3 cylinders and 2 spheres.

2. The user can identify each of the parts using the numeric keys 1, 2, 3, 4, 5. Figure 2 shows how the parts and their ids.

3. The user can manipulate the objects as follows (note all rotations are with respect to the model object):

The user selects an object part using a numeric key 1-5

Action for cylindrical parts (id - 1, 3, 5)

Once a part is selected the user can rotate the object as follows: rotate the part using keys z and x around the y-axis (yaw rotation) by +1 or -1 degree, respectively. See the red arrows.

Action for spherical parts (id - 2, 4)

Once a part is selected the user can rotate the object as follows: rotate the part using keys z and x around the x-axis (pitch rotation) by +1 or -1 degree, respectively. See the blue arrow

4. Note that you may have to adjust the orientation of the box to ensure correct operation.

2033_Vector operations and Transformations2.png


Attachment:- nuss math 1.rar

Reference no: EM13860855

Questions Cloud

Investor optimism and pessimism matter great deal : Consumer and investor optimism and pessimism matter a great deal in the economy. Suppose that survey measures of consumer confidence indicate a wave of pessimism is sweeping the country.
Tradeoff between inflation rate and unemployment rate : If you were macroeconomic policymaker, how do you balance the short-run tradeoff between inflation rate and unemployment rate? Explain. What is the historical relationship between rates of unemployment and inflation in the U.S. economy? What are the ..
Major problems of the fiscal policy and monetary policy : What is the difference between contractionary and expansionary monetary policy? What is the difference between contractionary and expansionary fiscal policy? How does each policy affect the AD in the economy? What are the benefits and major problems ..
Price protection plan : In its rivalry with Westinghouse, Gneral Electric instituted a "price protection" plan. This plan stated that if GE lowered its price, it would rebate the price difference to its past customers. Show that this plan makes collusion between GE and West..
Find the normal to the triangle : Find the normal to the triangle. Assume that the triangle is given clockwise. Normalize the vector. Draw a figure showing that your normal is correct.
Write a program that read up to ten letters into an array : Write a program that will read up to 10 letters (characters) into an array and write the letters back to the screen in the reverse order.
Investment expenditures and government purchases : Suppose that consumption expenditures, investment expenditures, and government purchases are 75 billion, 25 billion and 20 billion, respectively. How large should the GDP be so that the net export is zero?
Intimate connection between politics and economics freedom : There is an intimate connection between politics and economics, and different systems of the two can only exist side-by-side in certain pairings. For instance, says Friedman, a society which is (economically) socialist cannot also be (politically) de..
Design a bidirectional algorithm for stop-and-wait protocol : Design a bidirectional algorithm for the Stop-and-Wait Protocol using piggybacking. Design a bidirectional algorithm for the Go-Back-N ARQ Protocol using piggybacking.

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