Age | Commit message (Collapse) | Author |
|
The actual code is a bit convoluted but allows good and "pseudo efficient"
drawing. (pseudo efficient because rendering instances with that amount of
vertices is really inneficient. We should go full procedural but need to
have bufferTexture implemented first) But drawing speed is not a bottleneck
here and it's already a million time less crappy than the old (2.79) immediate
mode method.
Instead of drawing actual wires with different width we render a triangle
fan batch (containing 3 fans: bone, head, tail) which is then oriented in
screen space to the bone direction. We then interpolate a float value
accross vertices giving us a nice blend factor to blend the colors and
gives us really smooth interpolation inside the bone.
The outside edge still being geometry will be antialiased by MSAA if enabled.
|
|
|
|
|
|
Now we use vcos when provided, and fall back to mesh vertices' co
otherwise.
Deform modifiers usually do not have up-to-date coordinates in Mesh
itself, only in given vcos array!
|
|
|
|
|
|
|
|
No need to hard-coded handling of every individual matcap.
They are in the continuous index range anyway.
|
|
Stringify the actual constant instead.
|
|
Aside from identation, seed should change for each object. Otherwise to objects
with a copied mesh would get the exactly same "random" selection.
And we do so in a consistent way so it doesn't vary depending on
object order.
Seed bump using hash suggested by Campbell Barton and Sergey Sharybin.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3231
|
|
This modifier still has issues that are not related to this port:
- While editing the deformation mesh, the deformed mesh doesn't update.
This update only happens after exiting edit mode, making editing
cumbersome.
- Binding doesn't work yet. It works fine when binding in master and
loading pre-bound in 2.8. This was also an issue before this port, and
will be investigated separately.
|
|
|
|
Changes by me:
* Identation (tabs not space)
* Moving RNA_.*_get outside for loop)
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3230
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3224
|
|
Loading a file that was written with the master branch into the 2.8 branch,
and then trying to load or save, caused a segfault.
|
|
Changes by me: Moving RNA_.*get outside for loop and indentation fix.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3221
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3220
|
|
|
|
Let's be clear about functions generating datablocks outside of Main
database.
|
|
Including 'nomain' in the name explicitifies that the returned mesh is
NOT stored in any library.
|
|
|
|
|
|
This calls BKE_mesh_calc_normals() only if the mesh vertex normals are
marked as dirty.
|
|
This function creates a Mesh struct with a number of vertices/edges/etc.
It allocates the minimal number of CD layers needed.
Currently not yet used, but will be soon in the upcoming
BKE_new_mesh_from_curve_displist().
|
|
Maniphest Tasks: T54641, T54643
Differential Revision: https://developer.blender.org/D3218
|
|
Maniphest Tasks: T54641, T54643
Differential Revision: https://developer.blender.org/D3217
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3219
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3215
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3214
|
|
Needed so changing orientation refreshes.
|
|
|
|
|
|
|
|
|
|
The tool manipulator could become disabled when set in the wrong mode.
|
|
|
|
|
|
With minor indentation changes by me.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3211
|
|
With changes by me:
* Indentation (tabs)
* Removing RNA_boolean_get tests out of the for loop.
* Continue iterator if no selected vertice.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3210
|
|
Add extrude operator that's intended to work on the current selection
and be activated as a tool.
|
|
|
|
|
|
|
|
With small changes by Dalai Felinto.
Differential Revision: https://developer.blender.org/D3213
|
|
|
|
|
|
|
|
Some notes here:
* Proximity with non-mesh objects (like curve, see TEST_2 scene in
weightvg testfile) are not working currently. This is known TODO of COW
depsgraph project.
* Proximity modifier is slower, due to some other TODO pending on
BVHTree creation/caching for Mesh.
|
|
Will eventually fully replace get_texture_coords().
|
|
|