Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Sketch Line Segment That Joining By Using Bresenham Line Algorithm
Example: Sketch line segment that joining (20, 10) and (25, 14) by using Bresenham line generation algorithm.
Solution: (x0, y0) → (20, 10) ; (x1, y1) → (25, 14)
m = (y1- y0)/(x1 - x0)
= (14- 10)/(25 - 20)
= 4/5 < 1
Like, m = (Δy)/ (Δx)
= 4/5 =› Δy = 4
→ plot point (20, 10)
pi = 2Δy - Δx
i = 1: pi = 2 * 4 - 5 = 3
Here p1 > 0 consequently x0 ← 21; y0 ← 11 now plot (21, 11)
i = 2 as p1 > 0
∴p2 = p1 + 2(Δy - Δx)
= 3 + 2 (4 - 5) = 3 - 2 = 1
p2 > 0; hence x0 ← 22; y0 ← 12 plot (22,12)
i = 3 as p2 > 0
∴p3 = p2 + 2 (Δy - Δx) = 1 + 2 (4 - 5) = - 1
p3 < 0 ∴x0 ← 23
y0 ← 12
plot (23, 12)
i = 4 as p3 < 0
∴p4 = p3 + 2Δy
= -1 + 2 * 4 = 7
∴ x0 ← 24; y0 ← 13
plot (24, 13)
i = 5 as p4 > 0
∴p5 = p4 + 2 (Δy - Δx)
= 7 + 2 (4 - 5) = 5
x0 ← 25; y0 ← 14
Plot (25, 14)
{for i = 6, x0 will be > xi so algorithm terminates
Suppose here, one allows 256 depth value levels to be employed. Approximately how much memory would a 512x512 pixel display necessitate to store z-buffer? Solution : A system w
Object Space - approaches for visible surface determination The second approach as object-space that compares all objects directly along with each other inside the scene defin
State the Advantages AND Disadvantages of CAD Advantages of CAD Disadvantages of CAD - Easier to modif
Referential Links: A third type of link is a referential link. It is associated to the associative link. Quite than representing a relationship among two related ideas, a referent
Well you might surprise to what a convex window? In common, on the basis of the shapes the windows are categorized into two classes: i) A Convex shaped windows: Windows of a s
Objects - polygon rendering and ray tracing methods Objects could be any state of material as solid, liquid. Gas and plasma. Though ray tracers can merely assist objects whic
Graphic File Compression Formats Web graphics are by requirement compressed due to the bandwidth issues surrounding networked delivery of information and since image files inc
Subdivision of polygon Test to find out the visibility of a single surface are made through comparing surfaces that as polygons P along regarding a specified screen area A.
What is the major disadvantages of storing information structures in display memory? A major disadvantage of storing information structures in display memory is that when color an
Key Frames -Traditional Animation Techniques The senior artists go and draw the main frames of the animation, after a storyboard has been laid out. These main frames are frame
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!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd