Blender Git Commit Log

Git Commits -> Revision 19f86a3

Revision 19f86a3 by Clément Foucault (master)
May 1, 2017, 16:11 (GMT)
Mesh Batch Cache: Add support for uv/vcol/tangent data layers.

This is a bad implementation waiting for some improvement that are :
- Gawain support for multiple names. -> will remove duplication of attribute alloc
- Glsl safe name string escaping. -> will remove any risk of hash colision.

Old glsl drawing was relying on attribute being choosen by DerivedMesh at drawing time.
For this reason, we declare all possible attrib "name" for each data layer inside the batches.
In the glsl code, we declare required data by type and name.
Then Gawain only bind vbos if names correspond.
This is way cleaner as we do not need to access the CD itself when drawing.

One other problem is that the hash maybe 11 caracters long and rapidly overload gawain's attrib name buffer.

Commit Details:

Full Hash: 19f86a3d5f7f1f8267fef480604c39cf53c491fd
Parent Commit: 27fc8ae
Lines Changed: +410, -42

3 Modified Paths:

/intern/gawain/gawain/vertex_format.h (+1, -1) (Diff)
/release/scripts/startup/bl_ui/properties_data_mesh.py (+11, -11) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+398, -30) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021