Blender Git Loki

Blender Git "temp_custom_loop_normals" branch commits.

Page: 8 / 8

August 6, 2014, 19:33 (GMT)
Add inlined custom lnors consistency check/fixup code in BMesh version of `loops_calc_normals`

Note that stashing all clnor computations in a single func might not be optimal,
but it allows to reduce compute overhead as much as possible (it's a desing decision
in the end).

Also, looks like func used to create smooth fans from a set of custom lnors is not working
100% correct - new checking code did found some diff in lnors of same smooth fans... :/
August 6, 2014, 19:33 (GMT)
Add DM callback to get lnors spaces (needed by modifiers generating custom normals!)
August 6, 2014, 19:33 (GMT)
When converting custom normals to CD data, interpret NULL vectors as NOP ones.

i.e. if you give a (0, 0, 0) vector, you will always get auto-computed normal...
August 6, 2014, 19:33 (GMT)
Fix various little issues and some corner-cases bugs...
August 6, 2014, 19:33 (GMT)
Rework a bit `BKE_mesh_normals_loop_custom_set()`, should be more robust now.
August 6, 2014, 19:33 (GMT)
Some cleanup, and add same 'proof-of-concept' code to bmesh,
so that we can visualize custom loops normals in 3DView!

Still many ugly things here, esp. in includes...
August 6, 2014, 19:33 (GMT)
Enhance lnor space handling (by taking into account the 'cone case').

In other words, we now have two plain angles, and custom normals are encoded as
factors for those two angles.
August 6, 2014, 19:33 (GMT)
Add a 'clear custom split normals' op (similar to those for skin or mask CD layers).
August 6, 2014, 19:33 (GMT)
Fix stupid handling of clnors_data in editderivedmesh.

There was a mismatch between index/offset, and we need to handle both clnors from dm and from actual bm data...
August 6, 2014, 19:33 (GMT)
Add inlined-checks/fix of clnors data consistency to BKE_mesh_normals_loop_split() as well...
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021