Rework Bake from Multires
The main idea is to switch Bake from Multires from legacy DerivedMesh to Subdiv. On the development side of things this change removes a lot of code, also making it easier easier to rework CustomData and related topics, without being pulled down by the DerivedMesh. On the user level switch to Subdiv means: - Much more closer handling of the multi-resolution data: the derived mesh code was close, but not exactly the same when it comes to the final look of mesh. Other than less obvious cases (like old DerivedMesh approach doing recursive subdivision instead of pushing subdivided vertices on the limit surface) there are more obvious ones like difference in edge creases, and non-supported vertex creases by the DerivedMesh. - UV interpolation is done correctly now when baking to non-base level (baking to multi-resolution level >= 1). Previously in this case the old derived mesh interpolation was used to interpolate face-varying data, which gives different results from the OpenSubdiv interpolation. - Ngon faces are properly supported now. A possible remaining issue is the fact that getting normal from CCG always uses smooth interpolation. Based on the code it always has been the case, so while it is something to look into it might be considered a separate topic to dig into.
This commit is contained in:
BIN
tests/files/render/bake/cycles_renders/bake_from_multires_displacement_use_lowres.png
(Stored with Git LFS)
BIN
tests/files/render/bake/cycles_renders/bake_from_multires_displacement_use_lowres.png
(Stored with Git LFS)
Binary file not shown.
BIN
tests/files/render/bake/cycles_renders/bake_from_multires_normal.png
(Stored with Git LFS)
BIN
tests/files/render/bake/cycles_renders/bake_from_multires_normal.png
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user