Campbell Barton
50e88740c4
Fix PyManipulators having keymaps registered twice
...
Manipulators which are registered before UI initialized would have their
keymaps initalized twice (duplicate keymap items).
2017-07-25 20:06:49 +10:00
Campbell Barton
9bdd12d884
Merge branch 'master' into blender2.8
2017-07-25 17:36:49 +10:00
Jeff Knox
e93804318f
Fix T51450: viewport render time keeps increasing after render is done.
...
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2747
2017-07-25 01:47:04 +02:00
Matheus de Sousa Faria
b7fb00f512
Fix compositor Glare node with Simpler Star resulting in uneven rays.
...
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D1867
2017-07-25 00:48:34 +02:00
Sergey Sharybin
d99532e1d8
Fix crahs when doing preview from a scene withotu world
2017-07-24 17:42:55 +02:00
Sergey Sharybin
ff6e8b0b50
Depsgraph: Avoid assert failure in some harmless cases
2017-07-24 17:41:29 +02:00
mano-wii
7fbd529fb5
Revert "ransform: fix unreported bug: geometry hidden by clipping border (alt + b) is not bypassed in snap to faces"
...
This reverts commit 7f09b55d01 .
2017-07-24 12:08:23 -03:00
Sergey Sharybin
34b248b746
Depsgraph: Synchronize collection visibility after copy
...
BKE_scene_copy explicitly ignores visibility of "source" collections make all
collections visible. This is also tested by regression tests.
While it seems more logical to simply preserve all possible visibility flags
and overrides, don't feel like submitting to a behavior-changes without talking
to author of those guards first.
This commit fixes cycles material preview.
2017-07-24 17:03:53 +02:00
Clément Foucault
34c2628f32
Eevee: Silence printfs.
2017-07-24 16:36:57 +02:00
Sergey Sharybin
b3466921b8
Depsgraph: Fix typo in comment
2017-07-24 16:32:07 +02:00
Sergey Sharybin
b11926487f
Depsgraph: Fix crash when trying to create full copy of scene
2017-07-24 16:24:41 +02:00
Sergey Sharybin
1ddb3c953d
Depsgraph: Textures and images are actually covered by depsgraph
...
Might be missing relation links tho.
2017-07-24 16:24:41 +02:00
Sergey Sharybin
deecfb5476
Depsgraph: Avoid creating ID nodes for objects which are coming from collections and not layers
...
If object is only listed in collection but not added to any of layers we shouldn't create
placeholder for it, because otherwise we'll leave lots of placeholder ID nodes.
Question: can we make this exception to be more reliable?
2017-07-24 16:24:41 +02:00
Sergey Sharybin
7b420e1908
Depsgraph: Be consistent about id type variable name
2017-07-24 16:24:41 +02:00
Sergey Sharybin
7721f8a269
Depsgraph: Cleanup, use utility function to clear lists
2017-07-24 16:24:41 +02:00
Sergey Sharybin
4719dbafdf
Depsgraph: Ignore palettes from copy-on-write routines
...
They are not covered by dependency graph.
2017-07-24 16:24:41 +02:00
Clément Foucault
c21dd69060
Eevee: Fix crash when saving file with motion blur.
2017-07-24 16:21:43 +02:00
mano-wii
7f09b55d01
ransform: fix unreported bug: geometry hidden by clipping border (alt + b) is not bypassed in snap to faces
...
The geometry behind the farther clip_plane is not bypassed
2017-07-24 11:13:33 -03:00
Clément Foucault
8dd0ce6b78
Eevee: Fix double buffer issue.
2017-07-24 15:55:21 +02:00
Clément Foucault
27dd82a951
Eevee: SSR: Refactor multiple rays. Plus other changes...
...
-Allow a maximum of 4 rays per trace pixel.
-Removes parameter Normalize: use normalization all the time now.
-Add firefly clamp slider.
2017-07-24 15:36:37 +02:00
Clément Foucault
7585c82722
Eevee: Make MinmaxZ compatible with textureArray
2017-07-24 15:36:37 +02:00
Clément Foucault
85f1b7358a
Eevee: Planar Reflection: Remove distance approximation.
...
This commit separate the depth texture into another texture array.
This remove the need to output radial depth into alpha.
Unfortunatly it's difficult to recover position from the non linear depth buffer when applying reflection without adding a bunch of stuff.
This is in preparation of SSR planar reflections.
2017-07-24 15:36:37 +02:00
Clément Foucault
1d99d08d50
Eevee: SSR: Add two hit option.
...
This option add another raytrace per pixel, clearing some noise.
But multiplying the raytrace cost.
2017-07-24 15:36:37 +02:00
Clément Foucault
76bf4f2cd3
Eevee: SSR: Fix Opengl Render.
...
Add a constant number of 4 drawing loop to accumulate 4 "bounce" of light in SSRs.
2017-07-24 15:36:36 +02:00
Clément Foucault
56ba01a561
Eevee: SSR: Fixed problem with un-initialized texture.
...
Also add another debug buffer and cleanup in effect_ssr_frag.glsl
2017-07-24 15:36:36 +02:00
Clément Foucault
c5f4342692
Eevee: SSR: Small fixes
...
- Encode normals for other opaque bsdf so they are not rejected by the normal facing test.
- Early out non reflective surfaces.
- Add small offset to raytrace to avoid self intersection.
- Fix fallback probes not appearing.
2017-07-24 15:36:22 +02:00
Clément Foucault
f6c60ffcad
Eevee: SSR: Add Weight Normalization option.
2017-07-24 15:28:27 +02:00
Clément Foucault
e5dae98999
Eevee: SSR: Add View Facing fadeout.
...
Also make hit boolean depends on hit coord not on pdf.
2017-07-24 15:28:27 +02:00
Clément Foucault
d2462e3d26
Eevee: SSR: Add fullscreen raytrace option and Screen border factor.
2017-07-24 15:28:27 +02:00
Clément Foucault
9906ef06b1
Eevee: SSR: Use noise to dither the stride banding.
2017-07-24 15:28:27 +02:00
Clément Foucault
a3732412ad
Eevee: SSR: Add stride and thickness parameters.
...
Also polished the raytracing algorithm.
2017-07-24 15:28:27 +02:00
Clément Foucault
18aa6cf1cc
Eevee: SSR: Add fullscreen raytrace.
2017-07-24 15:28:27 +02:00
Clément Foucault
e0c1323737
Eevee: HiZ buffer: Split into two 24bit depth buffer
...
This way we don't have float precision issue we had before and we save some bandwidth.
2017-07-24 15:28:27 +02:00
Clément Foucault
a2932078ec
Eevee: SSR: Add firefly filter and refine noise reduction.
...
Push to 9 resolve sample.
Add an normalization as an option since it gives harsh limits.
2017-07-24 15:28:27 +02:00
Clément Foucault
b576d06050
Eevee: Codestyle.
2017-07-24 15:28:27 +02:00
Clément Foucault
e8912dd844
Eevee: SSR: Do the SSR pass only for probes if there is no valid double buffer.
...
This prevent black reflection when initializing SSR.
2017-07-24 15:28:27 +02:00
Clément Foucault
f1bf9d6bfb
Eevee: SSR: Add mipmap filtering and bias to reduce noise.
...
Also fix the roughness factors.
2017-07-24 15:28:27 +02:00
Clément Foucault
09413fad12
Eevee: Fix glossy node roughness.
2017-07-24 15:28:27 +02:00
Clément Foucault
babef873fc
Eevee: SSR: Don't block the ray if tracing behind object.
...
This requires to check for backface after a hit.
2017-07-24 15:28:27 +02:00
Clément Foucault
72a4778391
Eevee: SSR: Add per pixel resolve of multiple rays.
2017-07-24 15:28:27 +02:00
Clément Foucault
b1a8803c24
Eevee: SSR: Add roughness random rays.
2017-07-24 15:28:27 +02:00
Clément Foucault
7938848b63
Eevee: SSR: Add double buffer so we can read previous frame color.
...
Also add simple reprojection and screen fade to the SSR resolve pass.
2017-07-24 15:28:27 +02:00
Clément Foucault
14bedf80cd
Eevee: SSR: Make raymarch step bigger.
2017-07-24 15:28:27 +02:00
Clément Foucault
ebc2833ca1
Eevee: Fix Shader compilation.
2017-07-24 15:28:27 +02:00
Clément Foucault
3be8ab881e
Eevee: SSR: Add simple raytracing.
...
Still imprecise.
2017-07-24 15:28:27 +02:00
Clément Foucault
19323a0ff5
Eevee: Fix clip/hashed alpha prepass/shadow crash.
2017-07-24 15:28:27 +02:00
Clément Foucault
1d00a66f5d
Eevee: SSR: Encode Normal in buffer and add cubemap fallback.
...
Normals can point away from the camera so we cannot just put XY in the buffer and reconstruct Z later as we would not know the sign of Z.
2017-07-24 15:28:27 +02:00
Clément Foucault
2a84331f02
Eevee: SSR: Output ssr datas to buffers.
...
Output in 2 buffers Normals, Specular Color and roughness.
This way we can raytrace in a defered fashion and blend the exact contribution of the specular lobe on top of the opaque pass.
2017-07-24 15:28:27 +02:00
Clément Foucault
04f8e1b21c
Eevee: Ssr: Add ssr id to glossy nodes.
...
An id is given to each glossy node in order to determine which specular lobe is using ssr.
2017-07-24 15:28:27 +02:00
Brecht Van Lommel
b379f02f20
Fix T50039: texture paint soften strength not working with float images.
2017-07-24 15:02:39 +02:00