Carry out a perspective projection, Computer Graphics

Assignment Help:

Consider the line segment AB in 3-Dimentional parallel to the z-axis along with end points A (- 5,4,2) and also B (5,-6,18). Carry out a perspective projection upon the X=0 plane; here the eye is placed at (10, 0,10).

Solution: Suppose here that P (x, y, z) be any point in the space.

The parametric equation of a line beginning from E and passing via P is: E + t. (P - E), o < t < 1.

= (10,0,10) + t. [(x, y, z) - (10, 0, 10)]

= (10, 0,10) + t [(x - 10)], y (z - 10)]

= (t. (x - 10) + 10, t. y, t (z - 10) + 10)

Suppose a point P' can be obtained, as t = t*

∴P' = (x', y', z') = (t* (x - 10) + 10, t*.y, t*. (z - 10) + 10)

 Because the point P' lies on x = 0 plane as:

1898_Carry out a perspective projection 1.png

          Figure: (j)

= t* (x - 10) + 10 = 0

= t* =(- 10)/ (x - 10)

= P' = (x',y',z') = (0,((-10.y)/(x - 10)),(((-10)(z - 10))/(x - 10)), + 10)

(0, ((-10.y)/(x - 10)),((10x - 10z)/(x - 10)))

In terms of Homogeneous coordinate system;

P' = (x', y', z', 1) = ( 0, ((-y )/((x - 10) - 1)) ,  (x -z)/((x/10) - 1)), 1)

= (0, -y, x-z, ((x/10) - 1))

In Matrix form there is:

2067_Carry out a perspective projection 2.png

-------------------------(1)

In above equation (1) is the needed perspective transformation, that gives a coordinates of a projected point P' (x', y', z') on the x = 0 plane, whereas a point p (x, y, z) is viewed from E (10, 0, 10)

Currently, for the specified points A (-5, 4, 2) and B (5, -6, 18), A' and B' are their projection upon the x = 0 plane.

So now from Equation (1) we get:

1289_Carry out a perspective projection 3.png

= (0,-4, -7, ((-5/10) - 1))

= (0 , -40, -70, -15)

(0, 40/15, 70/15, 1)

Thus x1' = 0;  y1' = 2.67 ;    z1' = 4.67

As the same in:

137_Carry out a perspective projection 4..png

= (0, 60, - 130, - 5)

= (0, - 12, 26, 1)

 Thus x2' = 0 ;  y2' = - 12 ;    z2' = 26

Hence the projected points A' and B' of specified points A and B are:

A' = (x1', y1'z1') = (0, 2.67, 4.67)    and     B' = (x2', y2', z2') = (0, - 12, 26, 1)


Related Discussions:- Carry out a perspective projection

Write a code to generate a composite matrix, Write a code to generate a com...

Write a code to generate a composite matrix for general 3D rotation matrix.  Test your code and rotate continuously a cube about an axis.

Arguments made in favor of digital sound, Arguments made in favor of Digita...

Arguments made in favor of Digital Sound Dynamic range. Lower noise floor. Immunity to wow and flutter. Absence of generation loss. Capability to apply redu

De casteljau algorithm - 2d clipping algorithms, De Casteljau Algorithm ...

De Casteljau Algorithm For computation of Bézier curves an iterative algorithm known as de Casteljau algorithm is used.  The algorithm uses repeated linear interpolation.

Explain the role of the prefight personnel, QUESTION a) Once a print jo...

QUESTION a) Once a print job is accepted by the print service provider, it will be assigned a job number and this information will become part of a printed job ticket, which wi

Dda and bresenhem line drawing algorithm, when dda algorithm is more effici...

when dda algorithm is more efficient than bresenhem line drawing algorithm

Viewing transformation, Viewing Transformation In previous section, we...

Viewing Transformation In previous section, we have discussed about the geometric transformations as Translation, Shearing, Reflection, Scaling and Rotation. Rotation, Reflect

Functioning of input devices - 2d shape primitives, Functioning of Input De...

Functioning of Input Devices Functioning of input devices-Keyboard, mouse, trackball and space ball, Joystick, data glove, digitizer, scanner, touch panel, light pen, voice sys

Vertices of bezier curve find out 3 points on bezier curve, Specified p 0 ...

Specified p 0 (1, 1): p 1 (2, 3); p 2 (4, 3); p 3 (3, 1) as vertices of Bezier curve find out 3 points on Bezier curve? Solution : We consider Cubic Bezier curve as: P (

What is persistence, What is persistence? The time it takes the emitted...

What is persistence? The time it takes the emitted light from the screen to decompose one tenth of its original intensity is known as persistence.

Midpoint circle algorithm for scan converting a circle, Explain Bresenham s...

Explain Bresenham s circle drawing algorithm,  OR   Explain midpoint circle algorithm for scan converting a circle. Midpoint Circle Algorithm   1. Input radius r and circle

Write Your Message!

Captcha
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