Entrance Announcement
MICTE 2080
2080 Magh 07
User:Subekshya Poudel/Teaching Lesson Plan 8: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<div style="column-count: 2; column-gap: 20px;"> '''Subject :''' Computer Graphics '''Period:''' Fourth '''Topic:''' Output Primitives '''Teaching Item:''' Line Drawing Algorithms: Bresenham's Line Drawing '''Level:''' Bachelor 6<sup>th</sup> sem '''Unit:''' Two '''Time:''' 50 min '''No. of Students:''' <br> </div> == Specific Objective == At the end of this lesson students will be able to: * learn about Bresenham’s line drawi...") |
(No difference)
|
Revision as of 03:32, 18 April 2024
Subject : Computer Graphics
Period: Fourth
Topic: Output Primitives
Teaching Item: Line Drawing Algorithms: Bresenham's Line Drawing
Level: Bachelor 6th sem
Unit: Two
Time: 50 min
No. of Students:
Specific Objective
At the end of this lesson students will be able to:
- learn about Bresenham’s line drawing algorithm and its advantages over other methods
- implement Bresenham’s algorithm using programming concepts and debug any errors
Teaching Materials
- Laptop with programming software installed(Python with Pygame library)
- Presentation slide
- Projector
- Whiteboard and marker
Teaching Learning Activities
- Begin by introducing the fundamental concepts of line drawing algorithms, their significance in computer graphics, and the different methods available (midpoint, scan conversion, etc.)
- Then discuss the specific advantages of Bresenham’s algorithm over other techniques before diving into the details of its implementation steps.
- Use visual examples to clarify these concepts throughout the lecture while emphasizing their real applications in various industries like gaming, animation, CAD software, etc.
- Present Bresenham's line drawing algorithm step-by-step, explaining its mathematical foundation and implementation.
- Discuss how the algorithm efficiently calculates the coordinates of pixels along a line using integer arithmetic and decision variables.
- Demonstrate the implementation of Bresenham's algorithm in a programming language on a computer.
- Show how to input the coordinates of the line endpoints and visualize the line drawing using a graphical interface or console output.
- Guide students through the code, explaining each step and the role of variables in the algorithm.
- Ask students if there is any confusion on today's topic and provide guidance and assistance if needed.
Assessment
1. Describe the steps involved in Bresenham's line drawing algorithm.
2. Discuss the advantages of Bresenham's algorithm compared to other line drawing algorithms.
3. Implement Bresenham's algorithm to draw a line from (0,0) to (10,5) on a pixel grid. Provide the coordinates of each plotted pixel.