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
2017-11-22Merge branch 'master' into blender2.8Sergey Sharybin
2017-11-22SceneRenderLayer Removal/RefactorDalai Felinto
This patch moves all the functionality previously in SceneRenderLayer to SceneLayer. If we want to rename some of these structs now would be a good time to do it, before they are in SceneLayer. Everything should be working, though I will test things further tomorrow. Once this is committed depsgraph can get rid of the workaround added in rna_Main_meshes_new_from_object and finish whatever this patch was preventing from being finished. This patch also adds a few placeholders for the overrides (samples, ...). These are obviously not working, so some unittests that rely on 'lay', and 'zmask' will fail. This patch does not addressed the change of moving samples to ViewRender (I have this as a separate patch and needs some separate discussion). Following next is the individual note of the individual parts that were committed. Note 1: It is up to Cycles to still get rid of exclude_layer internally. Note 2: Cycles still need to handle its own doversion for the use_layer_samples cases and (1) Remove the override as it is (2) Add a new override (scene.cycles.samples) if scene.cycles.use_layer_samples != IGNORE Respecting the expected behaviour when scene.cycles.use_layer_samples == BOUNDED. Note 3: Cycles still need to implement the per-object holdout (similar to how we do shadow catcher). Note 4: There are parts of the old (Blender Internal) rendering pipeline that is still using lay, e.g., in shi->lay. Honestly it will be easier to purge the entire Blender Internal code away instead of taking things from it bit by bit. Reviewers: sergey, campbellbarton, brecht Differential Revision: https://developer.blender.org/D2919
2017-11-22SceneRenderLayer > SceneLayer: Convert LayDalai Felinto
There are parts of the old (Blender Internal) rendering pipeline that is still using lay, e.g., in shi->lay. Honestly it will be easier to purge the entire Blender Internal code away instead of taking things from it bit by bit.
2017-11-22SceneRenderLayer > SceneLayer: Convert Z-MaskDalai Felinto
Note: Cycles still need to implement the per-object holdout (similar to how we do shadow catcher).
2017-11-22SceneRenderLayer > SceneLayer: Convert samples_overrideDalai Felinto
Note: Cycles still need to handle its own doversion for theses cases and (1) Remove the override as it is (2) Add a new override (scene.cycles.samples) if scene.cycles.use_layer_samples != IGNORE Respecting the expected behaviour when scene.cycles.use_layer_samples == BOUNDED.
2017-11-22SceneRenderLayer > SceneLayer: Convert material_overrideDalai Felinto
2017-11-22SceneRenderLayer > SceneLayer: Remove light_overrideDalai Felinto
2017-11-22SceneRenderLayer > SceneLayer: Remove exclude_layerDalai Felinto
Note: It is up to Cycles to still get rid of exclude_layer internally: RenderLayerInfo.exclude_layer
2017-11-22Eevee : SSS : Add Translucency support.Clément Foucault
This adds the possibility to simulate things like red ears with strong backlight or material with high scattering distances. To enable it you need to turn on the "Subsurface Translucency" option in the "Options" tab of the Material Panel (and of course to have "regular" SSS enabled in both render settings and material options). Since the effect is adding another overhead I prefer to make it optional. But this is open to discussion. Be aware that the effect only works for direct lights (so no indirect/world lighting) that have shadowmaps, and is affected by the "softness" of the shadowmap and resolution. Technical notes: This is inspired by http://www.iryoku.com/translucency/ but goes a bit beyond that. We do not use a sum of gaussian to apply in regards to the object thickness but we precompute a 1D kernel texture. This texture stores the light transmited to a point at the back of an infinite slab of material of variying thickness. We make the assumption that the slab is perpendicular to the light so that no fresnel or diffusion term is taken into account. The light is considered constant. If the setup is similar to the one assume during the profile baking, the realtime render matches cycles reference. Due to these assumptions the computed transmitted light is in most cases too bright for curvy objects. Finally we jitter the shadow map sample per pixel so we can simulate dispersion inside the medium. Radius of the dispersion is in world space and derived by from the "soft" shadowmap parameter. Idea for this come from this presentation http://www.iryoku.com/stare-into-the-future (slide 164).
2017-11-21Disable adding scene sequence strips into themselvesCampbell Barton
D2923 by @spockTheGray w/ edits, see T52586 for details
2017-11-20Merge branch 'master' into blender2.8Campbell Barton
2017-11-20Fix (unreported) Crash: broken RNA accessors to tesselated MCol data.Bastien Montagne
Regression from rB823bcf1689a3 (VPaint 2017 GSoC, this is not in 2.79 release). Also cleanup, using fake-array-ification to access struct members is generally not a great idea, but when we already have a totally confusing broken struct layout, this is pure evil, as demonstrated here! Found while investigating T53341.
2017-11-20Cleanup: BLI headers firstCampbell Barton
Also move descriptions into doxy header
2017-11-19Tweaks to make it easier to update bone motion paths (without the active ↵Joshua Leung
bone needing to have any paths itself) This commit introduces the following changes: * Modified the poll callback on the "Update Paths" operator for bones so that it only checks if there are bones that have motion paths (instead of checking whether the active bone has paths). This makes it easier to update paths without having to first select one that has them - useful when the paths are all on hidden/hard-to-select bones. * Add a readonly property, "has_motion_paths" to the animviz.motion_path RNA struct, providing easier access to the internal flag used above. This makes it possible for the UI to display the "Update" button without having to check various bones for motion paths. Notes: * The flag being used in these changes already existed, and was only really intended for internal use. However, since it was already used in many places for determining if auto-update of all bone paths was needed (e.g. after certain editing ops), it should be safe to use here too. * The update_paths operator currently bakes all paths when activated, so there's currently no loss of functionality with changing to not checking if the active bone has any paths (e.g. we couldn't only update the active bone only either). That is still listed as a todo in the code.
2017-11-19Merge branch 'master' into blender2.8Julian Eisel
2017-11-18Cleanup: styleCampbell Barton
2017-11-17Merge branch 'master' into blender2.8Sergey Sharybin
2017-11-17Depsgraph: Don't make non-dynamic hair dependent on timeSergey Sharybin
This way hair system used for static forest does not make playblack slow. A bit dangerous, but let's see how far we can go!
2017-11-16Fix T51210: Draw Manager: Support for Metaball DrawingGermano
Differential Revision: D2914
2017-11-15Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenlib/BLI_math_matrix.h source/blender/blenlib/intern/math_matrix.c source/blender/blenlib/intern/rand.c source/blender/editors/animation/anim_channels_edit.c source/blender/makesrna/intern/rna_mask.c
2017-11-15Merge commit '212a8d9e5ae7' into blender2.8Dalai Felinto
Considerable non-trivial merge conflict fixes.
2017-11-14Cleanup: order BLI before BKE headersCampbell Barton
This was done nearly everywhere already
2017-11-14Eevee: SSS: Add Quality settings.Clément Foucault
Samples : pretty self explanatory. Jitter Threshold : Reduce cache misses and improve performance (greatly) by lowering this value. This settings let user decide how many samples should be jittered (rotated) to reduce banding artifacts.
2017-11-14Eevee: Initial Separable Subsurface Scattering implementation.Clément Foucault
How to use: - Enable subsurface scattering in the render options. - Add Subsurface BSDF to your shader. - Check "Screen Space Subsurface Scattering" in the material panel options. This initial implementation has a few limitations: - only supports gaussian SSS. - Does not support principled shader. - The radius parameters is baked down to a number of samples and then put into an UBO. This means the radius input socket cannot be used. You need to tweak the default vector directly. - The "texture blur" is considered as always set to 1
2017-11-13Merge remote-tracking branch 'origin/master' into blender2.8Dalai Felinto
2017-11-12Fix T53273: render bake settings properties not showing correct Python path.Brecht Van Lommel
2017-11-10Workaround crash rendering font objectsSergey Sharybin
Needs a proper scene layer and dependency graph, which we do not have yet during render pipeline.
2017-11-09Farewell BaseLegacyDalai Felinto
Finally, bases are all using the latest, newest SceneLayer bases.
2017-11-09Rename Scene macros back to their original _NEW less namesDalai Felinto
2017-11-09Farewell Scene->basactDalai Felinto
2017-11-09Cleanup: Use full name for scene_layer in makesrnaSergey Sharybin
2017-11-09Depsgraph: Make dependency graph to be built from scene layerSergey Sharybin
This is a final step of having proper ownership. Now selecting different layers in the "top bar" will actually do what this is expected to do. Surely, there are still things to be done under the hood, that will happen in a less intrusive way.
2017-11-08Farewell Scene->baseDalai Felinto
While getting rid of Scene->base we got the following fixes: * Fix "Convert To" operator * Fix "NLA allowing to selected objects that are not selectable * Fix scene.objects (readonly, no option to link/unlink) Note: Collada needs to use the context SceneLayer for adding objects however I added a placeholder, so Collada maintainers can fix this properly.
2017-11-08Merge branch 'master' into blender2.8Brecht Van Lommel
2017-11-08Cycles: add bevel shader, for raytrace based rounded edges.Brecht Van Lommel
The algorithm averages normals from nearby surfaces. It uses the same sampling strategy as BSSRDFs, casting rays along the normal and two orthogonal axes, and combining the samples with MIS. The main concern here is that we are introducing raytracing inside shader evaluation, which could be quite bad for GPU performance and stack memory usage. In practice it doesn't seem so bad though. Note that using this feature can easily slow down renders 20%, and that if you care about performance then it's better to use a bevel modifier. Mainly this is useful for baking, and for cases where the mesh topology makes it difficult for the bevel modifier to work well. Differential Revision: https://developer.blender.org/D2803
2017-11-07Sanitize use of BLI_iteratorDalai Felinto
We now initialize iter.valid as true as part of the main iterator (and manually when using via Python). And we don't even bother setting iter->current to NULL if it's invalid. Let's stick to using iter->valid only.
2017-11-07Depsgraph: Simplify some workarounds and make API closer to finalSergey Sharybin
2017-11-07Merge branch 'master' into blender2.8Brecht Van Lommel
2017-11-07Fix T53129: Cycles missing update when changing image auto refresh.Brecht Van Lommel
Previously auto refresh worked, but only if it was already enabled before starting the viewport render.
2017-11-06Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: intern/cycles/device/device.cpp source/blender/blenkernel/intern/library.c source/blender/blenkernel/intern/material.c source/blender/editors/object/object_add.c source/blender/editors/object/object_relations.c source/blender/editors/space_outliner/outliner_draw.c source/blender/editors/space_outliner/outliner_edit.c source/blender/editors/space_view3d/drawobject.c source/blender/editors/util/ed_util.c source/blender/windowmanager/intern/wm_files_link.c
2017-11-06Rename ID_IS_LINKED_DATABLOCK to ID_IS_LINKED.Bastien Montagne
This makes code closer to id_override/assent-engine ones, which introduce a new type of linked data, and hence reserve ID_IS_LINKED_DATABLOCK to real linked datablocks.
2017-11-06Update comment, reference new API functionSergey Sharybin
2017-11-06Depsgraph: Make graph to be per-scene-layer for RNASergey Sharybin
New access is C.scene.render_layers.active.depsgraph. This will give depsgraph for a given layer. In the future there will need to be some extra context to be passed.
2017-11-06Depsgraph: Avoid non-requested allocation of depsgraphSergey Sharybin
2017-11-05Merge branch 'master' into blender2.8Campbell Barton
2017-11-05Cleanup: spellingCampbell Barton
2017-11-03Scene API: Switch to explicit scene graph update APISergey Sharybin
This is part of lets-get-rid-of-scene->legacy_depsgraph work
2017-11-03Merge branch 'master' into blender2.8Sergey Sharybin
2017-11-03Scene RNA API: More global mains goes awaySergey Sharybin
2017-11-03Merge branch 'master' into blender2.8Sergey Sharybin