line rasterizer using bresenham algorithm

版本 1.0.0.0 (10.2 KB) 作者: Vipin Yadav
graphics pipeline, perpective matrix, clipping, perspective divide, line drawing
178.0 次下载
更新时间 2015/7/22

查看许可证

test_renderlines.m - to draw test lines. Calls renderlines(..) to draw a set of lines.
renderlines.m - for drawing lines
The line drawing process is:
1. lines endpoints (homogeneous co-ordinate system) are specified in north east down co-ordinate system. Refer test_renderlines.m. Points are converted to opengl co-ordinate system (-Z forward axis).
2. view matrix, perspective matrix and viewport matrix are computed.
3. Points transformed to clip space and clipping is done with Liang Barsky algorithm
4. clipped lines are drawn using bresenham algorithm.
5. frame buffer is displayed.
(read from books or search internet before/while reading code: Search Topics: opengl graphics pipeline, perceptive matrix computation, clip space, liang barsky algorithm, perspective divide , opengl view port computation, bresenham algorithm, quatenion to dcm/euler angles conversion, matrix manipulations like translation, rotation, scaling )

引用格式

Vipin Yadav (2025). line rasterizer using bresenham algorithm (https://ww2.mathworks.cn/matlabcentral/fileexchange/51552-line-rasterizer-using-bresenham-algorithm), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2008b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Updated description.