Revision e4b7084 by Sergey Sharybin (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 27, 2015, 11:19 (GMT) |
Merge branch 'master' into gooseberry |
Revision 3a6e8ec by Sergey Sharybin (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 27, 2015, 08:47 (GMT) |
Merge branch 'master' into gooseberry |
Revision f202dab by Bastien Montagne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 26, 2015, 16:43 (GMT) |
Merge branch 'master' into gooseberry Conflicts: source/blender/makesdna/DNA_customdata_types.h |
Revision f718471 by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 23, 2015, 16:47 (GMT) |
Experimental: random colors for child hulls. |
Revision b33c55d by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 23, 2015, 16:10 (GMT) |
Fix for invalid cache index -1 in some cases, like virtual parents. The code was assuming that child 0 is always valid, but in fact has to be treated like all others that can be disable due to preview percentage, virtual parents, etc. |
Revision d79197d by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 23, 2015, 15:44 (GMT) |
Use the particle system material for OpenGL drawing. This is probably not correct yet, the code is terribly confusing ... |
Revision b268256 by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 23, 2015, 15:10 (GMT) |
Implemented caps for the convex hair bundle hulls. The current algorithm generates a triangle strip to fill the end of each child bundle. This is not quite ideal, because even though the base child groups are constructed to be convex, the resulting child paths can become concave again by clumping, roughness, hair dynamics etc.. This can create face inversion as well as ugly shading artifacts, so a nicer algorithm may be desirable. |
Revision 526edf8 by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 23, 2015, 11:06 (GMT) |
Only perform the inner loop over one group of connected paths in macros. This allows more customized handling of path drawing in the outer loop (needed for drawing end caps). |
Revision 9b6f30e by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 23, 2015, 10:57 (GMT) |
Nicer iterating over pairs of connected neighboring child paths. |
Revision 892eb41 by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 23, 2015, 08:47 (GMT) |
Removed parent path drawing code for hulls, this is never used anyway. |
Revision 01ec68f by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
Completed the convex hull calculation for child paths. Parent index is only stored for hull children as a means of identifying them in the drawing code. |
Revision 07a49a9 by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
Disabled fallback path drawing for now, is currently nested inside the OpenGL immediate mode calls. |
Revision 10bf7f6 by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
Ignore paths with segments == -1, this is used to indicated hidden children. |
Revision 1422f0d6 by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
Use line drawing as a fallback if only one child is assigned to a parent. |
Revision 2aaf1dc by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
Fix for recent particle drawing commit, need to update the local draw data variable after changing the buffer. |
Revision 46ab5bb by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
Don't draw 2-sided flat hulls, this just gives ugly Z fighting. |
Revision d57bd6e by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
Sorting of child particles by primary parent and offset in hair space. This is a prerequisite for constructing the convex hull of child paths around a parent. |
Revision d64c5b0 by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
Simple immediate-mode OpenGL drawing for convex child hair hulls. |
Revision f143953 by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
More code cleanup to avoid crazy huge and messy particle functions. |
Revision f919c5c by Lukas Toenne (gooseberry, gooseberry_farm, temp_hair_modifiers, temp_motionpaths) January 22, 2015, 18:50 (GMT) |
Calculate normals and use smooth shading in the strand direction for child hulls. Note that the perpendicular direction around the hair bundles is not smooth-shaded. Smooth shading doesn't make as much sense there because large angles are common in this direction and give awkward shading results. |
|