Joshua Leung
a704a66914
Adding some verbose documentation
...
I thought this was already clear enough, but apparently not.
2017-09-13 00:53:46 +12:00
Clément Foucault
f2b3e1f712
Eevee: Fix T52480: Can't reproduce Metallic transparency with Principled + Mix Shader
...
You can now use a transparent shader as a completly transparent bsdf. And use whatever alpha mask in a mix shader between a transparent bsdf and another bsdf.
2017-09-12 14:25:04 +02:00
Clément Foucault
7a6f9ab587
Eevee: Fix T52546 : 129th light crashes Blender
2017-09-12 14:25:04 +02:00
Sergey Sharybin
fadc079740
Fix T52573: Cycles baking artifacts
...
Synchronize condition for faces split between Cycles itself and baking API.
2017-09-12 16:33:42 +05:00
Sergey Sharybin
4aee701f00
Fix T52679: Hole in bake normal
...
In fact, any type of baking might have caused holes in mesh.
The issue was caused by zspan_scanconvert() attempting to get order of traversal
'a-priori', which might have failed if check happens at the "tip" of span where
`zspan->span1[sn1] == zspan->span2[sn1]`.
Didn't see anything bad on making it a check when iterating over scanlines and
pick minimal span based on current scanline. It's slower, but unlikely to cause
measurable difference. Quality should stay the same unless i'm missing something.
Reviewers: brecht, dfelinto
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2837
2017-09-12 16:20:41 +05:00
Sergey Sharybin
74eed8e30e
Fix T52705: Lamps shadows are not refreshed when tweaking lamps parameters
...
Lamp and camera datablocks updates should flush some updates to corresponding
objects. Currently it's done as Parameters -> Parameters relations.
2017-09-12 11:58:30 +05:00
Clément Foucault
f875e396ce
Eevee: Fix T52593
...
Use a placeholder texture to remove problems with sampler with no texture bound to it.
2017-09-11 23:17:33 +02:00
Clément Foucault
d126ffbea4
DRW: Use static list (array) of texture/ubo to track bound textures/ubos.
...
This is in order to use the same texture on multiple sampler.
Also texture counter is reset after each shading group. This mimics the previous behaviour.
2017-09-11 23:15:29 +02:00
Clément Foucault
4757404eef
Eevee: Fix performance issue on intel.
...
I did not checked if it makes a diff on other GPU. This might be change to be intel only.
2017-09-11 14:32:44 +02:00
Clément Foucault
92ace808db
Eevee: Fix shadow copy shader error.
...
filter() is a reserved function.
2017-09-11 14:09:12 +02:00
Bastien Montagne
35ee9ff7a0
Fix T52682: When hair number=faces number, particles/face = 1 , actually some hair is overlap.
...
Just using same code for distribution for face/volume as the one
changed/used for vertices since some months.
Note that this change is breacking compatibility, in that distribution
of particles over faces/volume may not be exactly the same as
previously.
2017-09-11 12:38:17 +02:00
Campbell Barton
7d7741d25f
Merge branch 'master' into blender2.8
2017-09-11 16:52:53 +10:00
Campbell Barton
f56fea3d6b
Fix T52701: Mesh shortest path fails at boundaries
2017-09-11 16:45:19 +10:00
Joshua Leung
7e56879772
Fix T52696: Sculpt - Brush spacing pressure artifacts
...
Was caused by divide-by-zero in paint_stroke_integrate_overlap()
in paint_stroke.c, as identified by Bob Smith (uvwxyz).
Thanks for the report!
2017-09-11 18:24:39 +12:00
Clément Foucault
49ba9d02d8
Eevee: Fix shadow bleeding after farclip for cubemaps.
...
NOTE: We should not check for radial distance. But this is faster.
2017-09-11 01:13:55 +02:00
Clément Foucault
d97a5484af
Eevee: Shadows: Update cascaded shadowmaps when rendering probes.
...
This is really resource intensive but there is no other way to correctly handle it.
2017-09-10 03:09:45 +02:00
Clément Foucault
90efcd6df7
Eevee: Shadows: Add cubemap filtering and adaptive sample count.
...
Filter size is constant in world space and not dependant of shadow resolution.
The filter size is limited to the number of precomputed samples.
2017-09-10 03:09:45 +02:00
Clément Foucault
314739bced
Eevee: Shadow: Fix Incorrect shadowing after sun lamp far clip plane.
...
Reject cascade sample if not in shadowmap volume.
2017-09-10 03:09:45 +02:00
Clément Foucault
9fdf094b85
Eevee: Shadows: Filtering improvement.
...
- Replace poisson by concentric samples: Less variance. They are sorted by radius then by angle.
- Separate filtering into 2 blur. First blur is 3x3 box blur. Second is user dependant.
- Group fetches by group of 4.
2017-09-10 03:09:45 +02:00
Clément Foucault
adeaf37e77
Eevee: Add Cascaded Shadow Map options.
2017-09-10 03:09:45 +02:00
Clément Foucault
cc6e97d426
Lamps: Remove uper limit of the buffer bias parameter.
2017-09-10 03:09:45 +02:00
Clément Foucault
716f7859a8
Eevee: Add Cascaded Shadow Map support with filtering.
...
This brings some data structure changes.
Shared shadow data are stored in ShadowData (in glsl) (aka EEVEE_Shadow in C).
This structure contains the array indices of the first shadow element of this shadow "object".
It also contains how many shadow to evaluate (to be used for Multiple shadow maps).
The filtering is noisy and needs improvement.
2017-09-10 03:09:45 +02:00
Clément Foucault
6c17348e91
Eevee: Shadow: Add high bitdepth option.
...
This option is here for reducing the memory usage of shadow maps.
Also lower bitdepth are quicker to process.
2017-09-10 03:09:45 +02:00
Clément Foucault
f46b908cc5
Eevee: Expose Shadow filter size.
2017-09-10 03:09:45 +02:00
Clément Foucault
32e96448b9
Eevee: Add Variance Shadow Mapping
...
This is an alternative to ESM. It does not suffer the same bleeding artifacts.
2017-09-10 03:09:45 +02:00
Clément Foucault
e2603a6e82
Eevee: Shadows: Add UI buttons for size and method
...
Only one method is available right now. VSM and PCF are comming.
2017-09-10 03:09:45 +02:00
Clément Foucault
8b7a83a868
Eevee: Refactor Shadow System
...
- Use only one 2d texture array to store all shadowmaps.
- Allow to change shadow maps resolution.
- Do not output radial distance when rendering shadowmaps. This will allow fast rendering of shadowmaps when we will drop the use of geometry shaders.
2017-09-10 03:09:45 +02:00
Campbell Barton
11a9434c2d
Resolve T52687: Add node label shows as 'Unknown'
...
Add type access method, need to extend to other types
for now just get node UI working properly again.
2017-09-09 22:56:58 +10:00
Campbell Barton
3c3d0898b0
PyAPI: Fix mathutils freeze allowing owned data
2017-09-09 11:08:38 +10:00
Campbell Barton
30d8829780
Docs: mathutils docstrings
2017-09-09 11:02:26 +10:00
Campbell Barton
90eb93791f
Cleanup: mathutils vector comments
...
Use doxy markup & correct outdated info.
2017-09-09 10:50:40 +10:00
Campbell Barton
3930e46e37
Correct last commit
2017-09-09 10:15:16 +10:00
Campbell Barton
002cc6aef3
Cleanup: Simplify SWIZZLE macro
...
- Use indices instead of character args.
- Use numbered macros instead of variadic args.
Parsing using rtags used over 11gb of memory. While this should be
resolved upstream (report as #1053 ), the extra complexity didn't give
any real advantage.
2017-09-09 10:10:05 +10:00
Campbell Barton
5d1a5001f4
Fix T52628: own error in string duplication
...
Error in 636baa598a
2017-09-09 02:08:58 +10:00
Joshua Leung
b02ab2e7d9
Fix: Grease Pencil pie menu keymaps were broken after the menus got renamed
2017-09-09 01:03:15 +12:00
Antonio Vazquez
c9afc41cfd
Fix T52650:Grease pencil selection its not automatically updating in Clip Editor
2017-09-08 11:21:49 +02:00
Campbell Barton
2a3a747ca2
Fix T52678: Crash editing gpencil w/ frame-lock
2017-09-08 18:51:47 +10:00
Campbell Barton
5b026486e4
Fix leak caused by wrong ownership flag
2017-09-08 04:22:19 +10:00
Campbell Barton
df58d6bf76
Fix T52046: View transform applied twice w/ GL render
...
Patch from @sergey w/ minor edit.
2017-09-08 03:57:07 +10:00
Campbell Barton
a133b74709
Merge branch 'master' into blender2.8
2017-09-08 03:18:39 +10:00
Campbell Barton
60020f57d7
Correct function name in argument parsing
2017-09-08 00:59:27 +10:00
Campbell Barton
e44bf43f6c
PyAPI: add function to get an RNA subclass
...
This is inconvenient in regular Python, add a class-method
to perform the operation, eg:
bpy.types.Node.bl_rna_find_subclass("CustomNodeType")
2017-09-08 00:02:09 +10:00
Campbell Barton
accc94dd73
Cleanup: remove goto's
2017-09-07 22:53:46 +10:00
Campbell Barton
f4d46916fa
UI: fix memory leak when copy-to-selected failed
2017-09-07 22:15:12 +10:00
Campbell Barton
1601089ece
Merge branch 'master' into blender2.8
...
This discards node drawing changes which need to be written as shaders.
2017-09-07 14:53:06 +10:00
Campbell Barton
3f8aaec6bd
Weight Smooth: remove source option
...
Use current selection mode instead of an operator option.
2017-09-07 14:14:42 +10:00
Campbell Barton
5f7de54243
Fix T52639: Weight paint smooth tool crash
2017-09-07 13:20:39 +10:00
Campbell Barton
8172e8e528
Node UI: Add square and diamond socked draw styles
...
Currently not used by Blender's node trees
D2814 by @charlie
2017-09-07 04:45:38 +10:00
Campbell Barton
fb2e0592bc
Fix crash using arrow manipulator
2017-09-07 01:56:42 +10:00
Brecht Van Lommel
e2f42ff907
Merge branch 'master' into blender2.8
2017-09-06 17:23:47 +02:00