triangle rasterizer using edge functions (barycenteric interpolation)

版本 2.0.0.0 (545.8 KB) 作者: Vipin Yadav
basic triangle rasterization using edge function computation
191.0 次下载
更新时间 2015/7/22

查看许可证

test_render_triangles.m - to draw test lines. Calls render_triangles(..) to draw a set of triangles.
The drawing/rendering/rasterization process is:
1. triangle vertices (homogeneous co-ordinate system) are specified in north east down co-ordinate system. Refer test_render_triangles.m. Points are converted to opengl co-ordinate system before rasterization. (-Z forward axis).
2. view matrix, perspective matrix and viewport matrix are computed.
3. Points transformed to clip space. Clipping of triangle is implemented using suderland hodgman algorithm.
4. triangle rasterization is done using edge function based barycentric interpolation (optimized)
5. Prospectively correct texture interpolation
6. z buffering is implemented
7. Triangle line grid drawing using breshenham algorithm

(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, edge functions and barycentric interpolation for triangle filling, bresenham algorithm for line drawing, quatenion to dcm/euler angles conversion, matrix manipulations like translation, rotation, scaling )

引用格式

Vipin Yadav (2025). triangle rasterizer using edge functions (barycenteric interpolation) (https://ww2.mathworks.cn/matlabcentral/fileexchange/51711-triangle-rasterizer-using-edge-functions-barycenteric-interpolation), MATLAB Central File Exchange. 检索时间: .

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

Community Treasure Hunt

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

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

Version 2.0 uploaded.
1. Triangle clipping using suderland hodgman implemented.
2. Barycentric interpolation of texture and color parameters of clipped triangles implemented.

1.0.0.0