Compute the position of the car on the road, Computer Graphics

An animation demonstrates a car driving along a road that is given by a Bezier curve along with the subsequent control points: 











The animation finals 10 seconds and the key frames are to be calculated at 1 second intervals. Compute the position of the car on the road at the beginning of the 6th second of the animation.

Solution: By using similar process in the previous exercise we can compute the blending functions as:

1.   B03 = 3!/(0! x (3-0)!) u0(1 - u)(3-0) = 1u0(1 - u)3 = (1 - u)3

2.   B13 = 3!/(1! x (3-1)!) u1(1 - u)(3-1) = 3u1(1 - u)2 = 3u(1 - u)2

3.   B23 = 3!/(2! x (3-2)!) u2(1 - u)(3-2) = 3u2(1 - u)1 = 3u2(1 - u)

4.   B33 = 3!/(3! x (3-3)!) u3(1 - u)(3-3) = 1u3(1 - u)0 = u3

The function x(u) is equivalent to x(u) =   ∑xkBk; here k=0,1,2,3

x(u)       = ∑ xkBk =  x0B03   +   x1B13 + x2B23 +  x2B33

=  (0)(1  -  u)3    +  5  [3u(1  -  u)2]  +  40  [3u2(1  -  u)]  +  50  u3

= 15u(1 - u)2 + 120u2(1 - u) + 50u3

As the same y(u) = y0B03 + y1B13+ y2B23+  y2B33

=  (0)(1  -  u)3    +  40  [3u(1  -  u)2]  +  5  [3u2(1  -  u)]  +  15  u3

= 120u(1 - u)2 + 15u2(1 - u) + 15u3

At the beginning of the sixth second of the animation, that is, when u=0.6, we can utilize these equations to work out such x(0.6) = 29.52 and y(0.6) = 16.92.

The way of the car looks like as:

887_Compute the position of the car on the road.png

Posted Date: 4/4/2013 6:02:30 AM | Location : United States

Related Discussions:- Compute the position of the car on the road, Assignment Help, Ask Question on Compute the position of the car on the road, Get Answer, Expert's Help, Compute the position of the car on the road Discussions

Write discussion on Compute the position of the car on the road
Your posts are moderated
Related Questions
What is the use of control points?  Spline curve can be specified by giving a set of coordinate positions known as control points, which shows the general shape of the curve, c

Light Sources - polygon rendering and ray tracing methods Light Sources are key parts in any ray traced scene, since without them; there would be no rays to trace. Light sour

What is persistence and resolution?  The time it takes the emitted light from the screen to decay one tenth of its original intensity is known as a persistence.  The maximum

i want to learn how to programme

Combination of Positive and Negative Accelerations Actually, it is not that a body once decelerated or accelerated will remain so, although the motion may include both speed-up

Variation of Intensity - Modeling and Rendering According to the phong model the variation of Intensity (I) along with α (since I α cos n α) is: i) for shiny surface (

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

Illustration of a Clipping window ABCD is placed as follows: A (100, 10), B (160, 10, C (160, 40), D (100, 40) By using Sutherland-Cohen clipping algorithm determine the vis

Question 1 Describe the process of formation of image in human eye Structure of the Human Eye Image formation in the Eye Brightness Adaptation and Discrimination

To find out average unit normal vector at each polygon vertex At each polygon vertex as demonstrated by point V in the figure above, the normal vector is acquired by averaging