blender/tests/files/render/bake_raytrace
rmn20 3b7e5cb192 Bake: Conservative rasterization for texture bake
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
2026-07-29 15:52:48 +02:00
..
cycles_renders Bake: Conservative rasterization for texture bake 2026-07-29 15:52:48 +02:00
bake_bevel.blend
bake_split_faces.blend