Blender Git Loki

Git Commits -> Revision 159985a

December 27, 2014, 10:23 (GMT)
CustomData layer for storing hair root locations as MSurfaceSamples.

This requires converting the old messy particle num/num_dmcache/fuv/foffset
data into the new mesh samples, which can potentially introduce floating
point errors and inaccuracies due to lack of face index mapping in the
new system. However, in any well-constructed particle system the hair
roots should be nearest to their num face, so mapping would be accurate
enough. If necessary face index data could be added to samples as a
legacy code hack, but probably it's best to eventually replace the
hair system as a whole anyway.

Commit Details:

Full Hash: 159985a2c1877bdc62da8ae2554e5fe4896d667d
Parent Commit: 72851d8
Lines Changed: +188, -17

8 Modified Paths:

/source/blender/blenkernel/BKE_mesh_sample.h (+9, -0) (Diff)
/source/blender/blenkernel/BKE_particle.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/edithair_particles.c (+27, -6) (Diff)
/source/blender/blenkernel/intern/mesh_sample.c (+90, -0) (Diff)
/source/blender/blenkernel/intern/particle.c (+5, -0) (Diff)
/source/blender/bmesh/intern/bmesh_strands_conv.c (+49, -7) (Diff)
/source/blender/bmesh/intern/bmesh_strands_conv.h (+5, -2) (Diff)
/source/blender/makesdna/DNA_customdata_types.h (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021