Page MenuHome

Fix T43786: Cycles bake disregards Auto Smooth (vertex per-face normals)
ClosedPublic

Authored by Sergey Sharybin (sergey) on Mar 10 2015, 5:46 PM.

Details

Summary

Added an utility function which performs vertex split based on the loop
normal so now backing API matches to what's happening in Cycles and BI
in terms of autosplit.

Diff Detail

Repository
rB Blender

Event Timeline

Sergey Sharybin (sergey) retitled this revision from to Fix T43786: Cycles bake disregards Auto Smooth (vertex per-face normals).
Sergey Sharybin (sergey) updated this object.

I couldn't apply the patch using arc patch D1174 (Usage Exception: Unable to apply patch!) did you create it with arcanist?

I think your patch may remove the need for the following in object_bake_api.c:
"/* triangulating so BVH returns the primitive_id that will be used for rendering */"

I would like to test it, but I'm a bit short in time to manually applying the patch.

Ofcourse it's arc and the patch applies just fine here.

argh nevermind, I tried to apply the patch 117, this applies fine, I'll check later

Campbell Barton (campbellbarton) edited edge metadata.
Campbell Barton (campbellbarton) added inline comments.
source/blender/blenkernel/intern/mesh.c
2168

Could use some comment as to what its doing. /* split faces based on edge angle, matches behavior in ... blah blah ... */

2189

convention is to use poly++, same for ~4 other uses in this function num_new_verts

This revision is now accepted and ready to land.Mar 18 2015, 4:04 PM
This revision was automatically updated to reflect the committed changes.

For the records, it seems that the TriangulateModifier is still needed for Cycles Bake even with this patch.