Carry out a perspective projection, Computer Graphics

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)

Posted Date: 4/4/2013 3:07:30 AM | Location : United States







Related Discussions:- Carry out a perspective projection, Assignment Help, Ask Question on Carry out a perspective projection, Get Answer, Expert's Help, Carry out a perspective projection Discussions

Write discussion on Carry out a perspective projection
Your posts are moderated
Related Questions
Radiosity - Polygon Rendering & Ray Tracing Methods Radiosity simulates the diffuse propagation of light begin at the light sources. Because global illumination is an extremel

What are the steps involved in 3D transformation?  Modeling Transformation Projection Transformation Viewing Transformation Workstation Transformation

Polygon Filling Algorithm - Raster Graphics and Clipping In several graphics displays, this becomes essential to differentiate between different regions by filling them along

1. Design a bitmap for the English vowels A, E, I, O, U for two different sizes and then implement the bitmaps to plot these vowels on the display. Keep in mind that baseline of al

Q.   What do you mean by image precision and object precision? Describe z- buffer algorithm for visible surface detection. OR What do you mean by image precision and obj

Acquire a transformation matrix for perspective projection for a specified object projected onto x=3 plane as viewed by (5,0,0). Solution: Plane of projection: x = 3 as given.

What is orthographic parallel projection?  When the direction of the projection is normal (perpendicular) to the view plane then the projection is called as orthographic paral

Implement the Scan line polygon fill algorithm for any arbitrary polygon in C-language and then use your code to fill each of the following type of polygon. i)  Convex polygon

Animator Studio and Elastic Reality - Computer Animation Animator Studio It is a cell animation program from AutoDesk. Its predecessor was Animator Pro for PC DOS. Anima

1. What do you understood by the term graphic primitives? Ans. Graphic primitives are the basic graphic objects that can be united in any number and method to produce a new i