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

Assignment Help:

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

Xk

0

5

40

50

Yk

0

40

5

15

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


Related Discussions:- Compute the position of the car on the road

Application of coherence in visible surface detection method, explainapplic...

explainapplication of coherence in visible surface detection method

Define b-spline curve, Define B-Spline curve?  A B-Spline curve is a se...

Define B-Spline curve?  A B-Spline curve is a set of piecewise (usually cubic) polynomial segments that pass close to a set of control points. Though the curve does not pass by

Bezier curve, Q. What is a Bezier Curve? What are blending function? Write ...

Q. What is a Bezier Curve? What are blending function? Write an algorithm for generating Bezier Curves. A curve which has the following properties is called Bezier Curve: 1. A

Determine the refresh rate in the raster system, Example 1 : Determine the ...

Example 1 : Determine the number of memory bits essential for three bit plane frame buffer for the 512 x 512 raster Solution: Whole memory bits needed are 3 x 512 x 512 = 786,

Briefly explain how the median filter works, QUESTION 1 (a) Write a run...

QUESTION 1 (a) Write a run method in Image J environment for the following cases Contrast and Brightness Histogram Generation Histogram Equalisation   (b)

Gks, explain about gks

explain about gks

What are the developments of cad, What are the Developments of CAD Now...

What are the Developments of CAD Now CAD packages can be linked to 3D ink jet printers which produce an actual prototype model by building up layers/slices in fine powder (suc

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.

Retracing, what do you mean by retracing? Define horizontal as well as Vert...

what do you mean by retracing? Define horizontal as well as Vertical retracing?

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