Numerical of DDA Algorithm
sr_2018Let us understand how DDA Algorithm works by taking some examples and solving them too. Just keep in mind two things one, Y=mx+b is the line equation. Second, If m is less than one increase X…
Let us understand how DDA Algorithm works by taking some examples and solving them too. Just keep in mind two things one, Y=mx+b is the line equation. Second, If m is less than one increase X…
There are two ways by which you can see some objects colorful, let’s say RED – the first method would be – if you wear RED Glasses on your eyes and second method would be you…
Flood Fill vs Boundary Algorithms Objective – Color the entire area with the color already present in the area. Flood fill algorithm This method is useful when area to be filled has multiple colors in it….
When it comes to scoring marks, short questions play a real significant role. Find answers like – aspect ratio, resolution, persistence and many more – rewritten in a simplified language. Whats more these questions are picked…
The major difference in 2d and 3d transformations is another dimension. 3d has one more dimension called z axis. The floor of the room is an example of 2d where in only two dimensions matters, one…
Cohen Sutherland Algorithm Objective: The line to be clipped against the window. This means clip the line segment which is not visible in the window. Assumptions: x1,y1, and x2,y2 be the starting and endpoints of the…
Problem Statement-1 Magnify a triangle placed at A (0,0), B (1,1) and C (5,2) to twice its size keeping the point C (5,2) Fixed. If the point C (5,2) needs to be fixed this means the…
Example – 2 (from Exams) Rotate a triangle placed at A(0,0), B(1,1) and C(5,2) by an angle 45 with respect to point P(-1,-1). The calculations available for computer graphics can be performed only at origin. It…
In simple words , scaling means an object can be viewed differently with various scales. An object with length 3cm might appear small when viewed with a scale in meters. Cars will appear bigger if you…
Welcome again to learn a complex topic simply. Learn by solving numerical problems. Let the theory take a back seat this time. Moving, Rotating , Zoom-in or Zoom out an object on the screen is called…
Problem Statement: An object is placed with respect to origin on (2,1). Now move the object away from the origin by 2 steps in x and 3 steps in y. What would be new coordinates to…
This method is the first method, even before any of other methods of line drawing like DDA , BLA were defined. The major drawback of this method is the fraction values it is, More the fraction…
Using Bresenham’s algorithm, generate the coordinates of the pixels that lie on a line segment having the endpoints (2, 3) and (5, 8). Case: When slope (m) > 1 Now let’s solve the same numerical using…
Example-1 Draw a circle using Midpoint Circle Algorithm having radius as 10 and center of circle (100,100). Important points: Starting d =5/4-r but as 5/4 is approximately equal to 1 so initial d would be d=1-r….
Numerical of Bresenham’s Circle Algorithm Bresenham’s Circle Algorithm Draw a circle using BCA having radius as 10 and center of circle (100,100). S-1; Enter the center h=100, k=100 and radius r=10. S-2: Find d=3-2*(10)= -17 and…