mirror of
https://github.com/blender/blender
synced 2026-11-22 03:45:13 +03:00
Blender can miss small, thin or long triangles during texture baking as texel center sampling is used to determine which triangles overlap texture pixels. So, if a triangle does not overlap texel center, it will be empty. The solution used here is conservative triangle rasterization, which covers any texel that at least partially overlaps with a triangle. Barycentric coordinates are clipped inside the triangle, and rasterization is performed in 2 passes, conservative pass first and the regular one later. This way it can both capture small geometry and get correct non-overlapping results for regular geometry. And since the interiors of triangles are overwritten in the regular pass, we don't need full conservative triangle rasterization, a simple conservative line rasterizer suffices. If a triangle edge does not intersect a texel, the texture pixel should be either fully outside or inside of the triangle. Pull Request: https://projects.blender.org/blender/blender/pulls/161752 |
||
|---|---|---|
| .. | ||
| cycles_renders | ||
| bake_bevel.blend | ||
| bake_split_faces.blend | ||