Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-02-15Cleanup: Style, braces with macrosSergey Sharybin
See https://wiki.blender.org/index.php/Dev:Doc/Code_Style#Braces_with_Macros
2018-02-15Cleanup: Remove BLI_ prefix from listbase macroSergey Sharybin
This is kind of doesn't matter where macro itself is defined. We should stick to the following: - If some macro is actually more an inline function, follow regular function name conventions. - If macro is a macro, type it in capitals. Use module prefix if that helps readability or it if helps avoiding accidents.
2018-02-15Simple hair children: Make twist affected by textureSergey Sharybin
This completes twist feature, which is now possible to also control by texture. Since textures can not easily contain negative values as well, same trick with 0.5 neutral as vertex groups is used. All in all, this twist features allows to do following things. Original hair: {F2287535} Hair with scientifically calculated twist value of 0.5: {F2287540} And we can also twist braids in opposite directions dependent on left/right side: {F2287548}
2018-02-15Fix T54078: Adding subsurf prior to particle system breaks simple children ↵Sergey Sharybin
vgroups and textures cpa->num points to a face index on BASE mesh, but get_child_modifier_parameters() expects index on a FINAL dm. So wrong index was used here.
2018-02-15Simple hair children: Make twist affected by vertex groupSergey Sharybin
The idea is to give a control over direction of twist, and maybe amount of twist as well. More concrete example: make braids on left and right side of character head to be twisting opposite directions. Now, tricky part: we need some negative values to flip direction, but weights can not be negative. So we use same trick as displacement map and tangent normal maps, where 0.5 is neutral, values below 0.5 are considered negative and values above 0.5 are considered positive.
2018-02-15Simple hair children: Initial implementation of twist controlSergey Sharybin
It allows to have children hair to be twisted around parent curve, which is quite an essential feature when creating hair braids. There are currently two controls: - Number of turns around parent children. - Influence curve, which allows to modify "twistness" along the strand.
2018-02-15Blenlib: Assert when attempting to rotate point around vector and store ↵Sergey Sharybin
result in the point This isn't supported since there are subsequent reads to all point coordinates after modification started. Probably we need to create a temp copy of point, but that's like extra CPU ticks.
2018-02-15Particles: Wrap insane amount of arguments to child modifier evaluationSergey Sharybin
Use single structure. It seems we will need to pass more information soon, so better to do it via the structure.
2018-02-15Fix T54075: Align Objects fails w/ empty meshCampbell Barton
2018-02-15Cleanup: styleCampbell Barton
2018-02-15Fix T54072: Crash splitting edgesCampbell Barton
2018-02-14Cycles: restore Particle Info Index for now, keep it next to Random.Brecht Van Lommel
It seems to be useful still in cases where the particle are distributed in a particular order or pattern, to colorize them along with that. This isn't really well defined, but might as well avoid breaking backwards compatibility for now.
2018-02-14Cycles: change Index output of Hair and Particle Info to Random, in 0..1 range.Brecht Van Lommel
These are used for randomization, so it's convenient if the index is already hashed and consistent with the Object Info node.
2018-02-14Particles: Avoid multiple function declarations in multiple placesSergey Sharybin
This makes it really hard to spot errors when function signature changes.
2018-02-14Particles: Cleanup, remove trailign whitespaceSergey Sharybin
2018-02-14Hair child: Use clamp function to clamp curve evaluationSergey Sharybin
Avoids redundant calls to the curve evaluation.
2018-02-14Math utils: Add clamping functionsSergey Sharybin
2018-02-14CMake: Expose Cycles devices support as CMake optionSergey Sharybin
Handy to disable GPU based devices when it's needed to run Valgrind.
2018-02-14CMake: Fix cimpilation error when CUDA dynload is disabled but toolkit is ↵Sergey Sharybin
not installed
2018-02-14Cleanup: use prefix for testsCampbell Barton
Allows for running all `bmesh_*` or `object_*` tests.
2018-02-13Add ED_object_editmode_exit_exCampbell Barton
Allow exiting editmode from non-active scene.
2018-02-13Cycles: Implement index output for hair nodeSergey Sharybin
This is like the only way to add variety to hair which is created using simple children. Used here for the hair. Maybe not ideal, but the time will show.
2018-02-13(Nodes) Display image name if any in the Cycles Image and Environment ↵Ines Almeida
Texture node title
2018-02-12Fix random walk SSS issues with different base and subsurface color.Brecht Van Lommel
Burley SSS uses a bit of strange thing where the albedo and closure weight are different, which makes the subsurface color act a bit like a subsurface radius indirectly by the way the Burley SSS profile works. This can't work for random walk SSS though, and it's not clear to me that this is actually a good idea since it's really the subsurface radius that is supposed to control this. For now I'll leave Burley SSS working the same to not break backwards compatibility.
2018-02-12Fix part of T53080: don't use current scene world for icon previews.Brecht Van Lommel
This can be very slow if it contains a big texture, and it's not necessarily setup in a useful way anyway, and materials can be used in multiple scenes.
2018-02-12Buildbot: Remove usage of deprecated chrootSergey Sharybin
2018-02-12Add boolean regression test.Howard Trickey
2018-02-12Error in last commit, disable cycles when not enabledCampbell Barton
Would only disable when loading old preferences.
2018-02-12Disable cycles when WITH_CYCLES=OFFCampbell Barton
2018-02-12BKE_addon: new/free/ensure functionsCampbell Barton
2018-02-09Cycles: add random walk subsurface scattering to Principled BSDF.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3054
2018-02-09Cycles: random walk subsurface scattering.Brecht Van Lommel
It is basically brute force volume scattering within the mesh, but part of the SSS code for faster performance. The main difference with actual volume scattering is that we assume the boundaries are diffuse and that all lighting is coming through this boundary from outside the volume. This gives much more accurate results for thin features and low density. Some challenges remain however: * Significantly more noisy than BSSRDF. Adding Dwivedi sampling may help here, but it's unclear still how much it helps in real world cases. * Due to this being a volumetric method, geometry like eyes or mouth can darken the skin on the outside. We may be able to reduce this effect, or users can compensate for it by reducing the scattering radius in such areas. * Sharp corners are quite bright. This matches actual volume rendering and results in some other renderers, but maybe not so much real world objects. Differential Revision: https://developer.blender.org/D3054
2018-02-09Fix (unreported) error on freeing timers which customdata pointer shall not ↵Bastien Montagne
be freed. Looks like there was no way to avoid that so far, since WM_event_add_timer_notifier can set mere int-in-pointer there, this can cause issues. So added mere flags system to wmTimer to allow controlling this.
2018-02-09Fix (unreported) crash when duplicating a FileBrowser window in preview draw ↵Bastien Montagne
mode. We did not clear preview or smoothscroll timers pointers in copy code...
2018-02-09Doc: attempt to document RNA's FunctionFlag.Bastien Montagne
Tired of searching through code to find which is what, and how to use it in the C callback, everytime I need anot-so-common option...
2018-02-09Paint Dirt: remove operator call from PythonSybren A. Stüvel
Instead of calling an operator I just call `collection.new()`. Moving the code into a separate function also simplifies it. In its new form there is also no undefined behaviour when me.vertex_colors is non-empty but without active layer.
2018-02-09Paint Dirt: some small fixesSybren A. Stüvel
- normalize → average the vector: the vector isn't normalized here, because it doesn't necessarily becomes unit length. Instead, the sum is converted to an average vector. - angle is the acos()…: the dot product between the vertex normal and the average direction of the connected vertices is computed, and not the opposite. - The initial `con` list was discarded immediately and replaced by a new list. - File didn't end with a newline.
2018-02-09Fix crash with font on curveSergey Sharybin
Was a mistake from recent texspace changes. Reported by Pablo here in the studio!
2018-02-09CMake: include missing headersCampbell Barton
2018-02-09Fix T53958: Sequencer zoom 1:1 failsCampbell Barton
2018-02-09Fix T53347: Vertex paint crashCampbell Barton
Vertex paint was still using sculpt mode brush (which can be NULL).
2018-02-08Fix for missing "Use Freestyle" toggle in the Cycles "Layer" options panel.Tamito Kajiyama
Reviewed By: Brecht Van Lommel (brecht), Dalai Felinto (dfelinto) Differential Revision: https://developer.blender.org/D3048
2018-02-08Cycles: unify OSL BSSRDF closure into a single bssrdf() closure with method.Brecht Van Lommel
This is similar to the upstream unified microfacet() closure, and makes it easier to extend in the future.
2018-02-08Code refactor: tweaks in SSS code to prepare for coming changes.Brecht Van Lommel
This also fixes a subtle bug in the split kernel branched path SSS, the volume stack update can't be shared between multiple hit points.
2018-02-08Code refactor: remove unnecessary RNG offset in branched path code.Brecht Van Lommel
This is only needed for SSS which bounces to a different shading point.
2018-02-08Cycles tests: separate directory for sss tests.Brecht Van Lommel
2018-02-08Disable fast adjust code. Add other end spec matching.Howard Trickey
This fixes a few caess where new width adjustment code was less than ideal.
2018-02-08Remove Carve booleanSergey Sharybin
We've got quite comprehensive BMesh based implementation, which is way easier for maintenance than abandoned Carve library. After all the time BMesh implementation was working on the same level of limitations about manifold meshes and touching edges than Carve. Is better to focus on maintaining one boolean implementation now. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D3050
2018-02-08Depsgraph: Fix missing camera animation after visibility changesSergey Sharybin
Synchronize code in on_visible_update with depsgraph building. Need to update all cameras, since they might be hooked up to marker.
2018-02-08Mesh: concave quad supportCampbell Barton
Previously quads always split along first-third vertices. This is still the default, to avoid flickering with animated deformation however concave quads that would create two opposing triangles now use second-fourth split. Reported as T53999 although this issue has been known limitation for a long time.