Dalai Felinto
dd96205d0a
fix T40323 Segfault on baking after rendering
...
The remaining functions in blender_python.cpp changed from using the
MACRO to use python_thread_state_save/python_thread_state_restore
Since this bug only happens when 'Persistent Images' is on it was
introduced in some of the early merges with master and I never caught
it.
Thanks Daniel Salazar for helping with the bug hunting.
2014-05-22 20:18:48 -03:00
Dalai Felinto
81b129d3b8
Cycles-Bake: fix T40322 Glitch in baking a mixed SSS shader
...
If we are using a mix node we still need to evaluate the BSDF lighting
even if scattering is successful.
Note: this was working for branched path (probably an oversight when
branched path support was introduced for baking, a good oversight though
;)
2014-05-22 19:46:22 -03:00
Dalai Felinto
d7e4a79388
Cycles-Bake: fix T40270 Combined Type fails to bake Emission node
...
Main code and review by Brecht Van Lommel
Differential Revision: https://developer.blender.org/D543
2014-05-22 19:05:23 -03:00
Brecht Van Lommel
27cebb2651
Fix T39711: cycles particle motion blur affected by viewport draw method.
2014-05-21 15:51:37 +02:00
Campbell Barton
238a6149af
Fix T40289: Cycles leaking memory
...
error in recent commit
2014-05-21 16:00:20 +10:00
Campbell Barton
b1350cf392
Fix for uninitialized memory use in Cycles
2014-05-21 15:40:52 +10:00
Jörg Müller
38fcc3e14b
Fix T40280: sequencer sound strips with an end at a negative time kept playing
...
The bug was caused by using negative numbers as the end for playing forever (or until the end of the sound is reached) in the library. This was used with speaker objects which have an end of FLT_MAX now instead and the negative number interpretation was removed. I hope this doesn't break anything else.
2014-05-20 23:01:56 +02:00
Brecht Van Lommel
0d9e6a736a
Fix T40262: cycles GPU bake crash due to kernels not loaded, randomly due to thread timing.
2014-05-19 19:33:09 +02:00
Brecht Van Lommel
e97a186ffe
Fix cycles standalone compile error of shading system enum change.
2014-05-19 19:33:09 +02:00
Brecht Van Lommel
3b53fffb77
Cycles: revert async CUDA changes, these are giving too much trouble still.
...
Fixes T40027. This means we get more CPU usage again when using multiple CUDA,
but the impact on performance is too big a problem with the current code.
2014-05-19 19:33:09 +02:00
Sebastian Ramacher
76f7a5bd6b
Fix compilation error on kFreeBSD
2014-05-19 16:35:24 +02:00
Brecht Van Lommel
6271c72caf
Fix T39764: cycles not rendering EXR image textures with 5 channels (RGBA + Z).
2014-05-19 16:25:17 +02:00
Brecht Van Lommel
db2d900f74
Fix T40135: cycles baking did not support branched path settings yet.
2014-05-19 15:14:43 +02:00
Brecht Van Lommel
6252f75025
Code refactor: move branched path AO and SSS code into functions.
2014-05-19 15:07:40 +02:00
Brecht Van Lommel
c91d4ccbeb
Code refactor: rename kernel_displace.h to kernel_bake.h.
2014-05-19 15:07:32 +02:00
Brecht Van Lommel
c6d9b11b70
Fix T40195: cycles smoke + persistent images animation render not working correct.
2014-05-19 14:45:52 +02:00
Nathan Letwory
0f4018a8e5
Remove two unnecessary includes.
2014-05-19 14:46:58 +03:00
Nathan Letwory
0684ac9301
Move ShadingSystem enum to shader.h
...
Add SHADINGSYSTEM_ to enum member names, so it is clear where they
are from.
Revert BVHType enum changes, as there's no need for code dedup here.
2014-05-19 14:46:58 +03:00
Nathan Letwory
9a7c4ead3f
Move BVHType and shadingsystem enums to top-level of Cycles namespace.
...
Easier access of BVHType and deduplication for ShadingSystem.
Reviewers: dingto, brecht
Differential Revision: https://developer.blender.org/D534
2014-05-19 14:46:57 +03:00
Brecht Van Lommel
8cd88e3bd0
Fix T39757: missing cuda libary on linx, now also try to find libcuda.so.1.
...
I'm not sure this should be needed, but some particular systems don't have
libcuda.so so we do this now.
2014-05-17 15:31:47 +02:00
Brecht Van Lommel
be03b735c5
Fix T39757: missing cuda libary on linx, now also try to find libcuda.so.1.
...
I'm not sure this should be needed, but some particular systems don't have
libcuda.so so we do this now.
2014-05-17 15:16:07 +02:00
Brecht Van Lommel
caed2394e2
Fix cycles bug with new transparent shadow code, giving too much volume shadow.
2014-05-15 21:31:58 +02:00
Campbell Barton
b252915b68
CMake/SCons: finish removing MSVC2012 references
2014-05-15 16:16:25 +10:00
Brecht Van Lommel
1b1b71f697
Fix T40149: cycles motion blur render problem with multiple render layers.
2014-05-12 18:37:49 +02:00
Thomas Dinges
146a1c77ea
Cleanup: Remove unused hardcoded variables in the integrator.
...
Differential Revision: https://developer.blender.org/D525
2014-05-12 10:45:11 +02:00
Thomas Dinges
f3dd6b8df2
Cleanup: Some else if for attribute code.
2014-05-12 10:21:13 +02:00
Brecht Van Lommel
df74230c5e
Fix cycles baking code build errors with OpenCL on some platforms.
2014-05-11 16:36:51 +02:00
Brecht Van Lommel
0d5ecc5c33
Fix T40117: cycles sobol RNG issue when disabling __CAMERA_MOTION__.
...
This doesn't affect any actual release code since camera motion blur is enabled.
2014-05-11 16:36:51 +02:00
Campbell Barton
c88e65da61
Code cleanup: comment typos
2014-05-11 16:22:05 +10:00
Campbell Barton
da644a9b58
Quiet warnings with __CUDA_ARCH__ use
2014-05-11 16:17:02 +10:00
Thomas Dinges
c08c931fb6
Cycles / CUDA: Increase maximum image textures on GPU.
...
Instead of 95, we can use 145 images now. This only affects Kepler and above (sm30, sm_35 and sm_50).
This can be increased further if needed, but let's first test if this does not come with a performance impact.
Originally developed during my GSoC 2013.
2014-05-11 03:38:39 +02:00
Thomas Dinges
fd26a32aa5
Fix T40119, CUDA Toolkit version mismatch
2014-05-10 01:26:04 +02:00
Brecht Van Lommel
5f01b3d96e
Fix T39585: cycles motion vector pass problem with curves.
2014-05-09 17:14:13 +02:00
Brecht Van Lommel
fe00dbcc23
Fix cycles motion pass for hair curves showing a bit of motion when there isn't any.
2014-05-09 17:14:13 +02:00
Dalai Felinto
672cebf19a
Cycles-Bake: displacement support (fix T40068)
...
Code with contribution from Brecht Van Lommel.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D510
2014-05-08 14:38:43 -03:00
Brecht Van Lommel
19bddbfc54
Fix T40079: cycles crash with objects that have hair motion blur, but no triangle motion.
2014-05-08 15:27:49 +02:00
Campbell Barton
65d54f34b1
Code cleanup: spelling/indentation
2014-05-08 04:53:05 +10:00
Brecht Van Lommel
edd78fb308
Fix cycles crash after recent use alpha commit.
2014-05-07 19:00:56 +02:00
Dalai Felinto
83cdd5887f
Cycles-Bake: Subsurface Scattering support (fix T40060)
...
This fixes the SSS Direct/Indirect passes as well as the Combined pass.
Patch reviewed and with fixes and contributions from Brecht van Lommel.
Note: displacement/bump map (related to the report) will be handled separately
Reviewers: brecht
Differential Revision: https://developer.blender.org/D503
2014-05-07 11:59:25 -03:00
Matt Heimlich
3fbc984b06
Nodes: add absolute value operation to all math nodes
...
Reviewed By: dingto, brecht
Differential Revision: https://developer.blender.org/D507
2014-05-07 16:43:59 +02:00
Carlo Andreacchio
8b8d5a441f
Cycles: add support for "Use Alpha" option on image datablocks.
...
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D486
2014-05-07 16:43:50 +02:00
Dalai Felinto
08bf531956
Cycles-Bake: Ambient Occlusion needs to be computed for COMBINED
...
Now the COMBINED pass includes the Ambient Occlusion.
This was not reported anywhere, but while working in the Subsurface Scattering I realize we needed this fix for combined.
2014-05-07 10:18:00 -03:00
Campbell Barton
f300c158b9
Fix possible NULL pointer dereference in Cycles
2014-05-07 04:19:53 +10:00
Brecht Van Lommel
6dbe732a2f
Fix T40049: cycles baking glossy shader looks faceted.
...
Use smooth normal instead of flat normal as view direction.
2014-05-06 18:17:54 +02:00
Brecht Van Lommel
80e137e826
Fix T39946: OSL + tangent space normal maps not working in Cycles.
2014-05-06 16:39:50 +02:00
Campbell Barton
fd7f5c4230
Cycles: revert part of the optimization from ff34c2d
...
This was faster for my AMD system but slower for Intel.
However with gcc4.9,-O3 I was able to get roughly the same speed before/after.
Revert since this isnt giving such clear benefits on most systems.
2014-05-06 14:07:04 +10:00
Brecht Van Lommel
8641e30787
Fix T40032: hair BSDF not working correct after primitive type code refactoring.
2014-05-05 17:15:48 +02:00
Brecht Van Lommel
7a2ece3c19
Fix T40031: cycles deformation motion blur wrong render on last frame of animation.
2014-05-05 17:15:48 +02:00
Campbell Barton
620901426c
Code cleanup
2014-05-05 12:29:28 +10:00
Campbell Barton
d27eea6dc6
Add check for LIKELY/UNLIKELY is CPU only
2014-05-05 07:26:49 +10:00