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
path: root/intern
AgeCommit message (Collapse)Author
2016-02-20Fix compilation error with FFmpeg and Ubuntu TrustySergey Sharybin
Seems this is a confusion between Libav which was silently used by Ubuntu instead of FFmpeg.
2016-02-19Workaround for T47213: branched path sampling issues with CUDA 7.5.Brecht Van Lommel
2016-02-18Cycles: Fix wrong sample all direct/indirect settings on sm_50 and higherSergey Sharybin
Seems to be some compiler fault which leads to a wrong flag being used, making it so wrong number of samples is used for the background. This should in theory fix issue reported in T47213.
2016-02-18Fix T47461: Different results on CPU and GPU when using Branched Path TracingLukas Stockner
The issue here was actually somewhere else - the attached scene from the report used a light falloff node in a sunlamp (aka distant light). However, since distant lamps set the ray length to FLT_MAX and the light falloff node squares this value, it overflows and produces a NaN weight, which propagates and leads to a NaN intensity, which is then clamped to zero and produces the black pixels. To fix that issue, the smoothing part of the light falloff is just ignored if the smoothing term isn't finite (which makes sense since the term should converge to 1 as the distance increases). The reason for the different results on CPUs and GPUs is not perfectly clear, but probably can be explained with different handling of Inf/NaN edge cases. Also, to notice issues like these faster in the future, kernel_asserts were added that evaluate as false as soon as a non-finite intensity is produced.
2016-02-17Cycles: Make CUDA 7.5 officially recommendedSergey Sharybin
This was a hard decision, because going newer CUDA toolkit makes rendering up to 5% slower. But on another hand, it solves major speed regressions (up to 30%) with branched path tracing on a top level cards. Neither of those regressions have a meaningful and sane workaround from the code itself. Toolkit 6.5 could still be used, but it's no longer recommended one.
2016-02-17Cycles: Don't silence unused macro, remove the macro insteadSergey Sharybin
It's not really handy to silence something unused hoping for it'll be used in the future. We can end up with quite some silencing then. Also made this flag which i find rather useless to NOT cause -Werror in Cycles code.
2016-02-17Cleanup: unused define warningCampbell Barton
2016-02-17Cleanup: OSL styleCampbell Barton
2016-02-17Fix T47447: Cycles crash when reaching texture limit with 3D texturesSergey Sharybin
2016-02-17Some more tweaks to make linking to a shared FFmpeg-3.0 happySergey Sharybin
2016-02-17Fix T47411: Cycles portals luminance artifactsLukas Stockner
When using multiple portals, scene areas behind one of the portals were rendered darker than they should. The reason for that is a pretty stupid mistake: Since portals are only used at positions that aren't behind them, only portals that are used should be accounted for in the PDF calculation. That was actually the case, but the final divide incorrectly divided by the total amount of portals, not the amount of visible ones. Another issue with areas behind portals was the PDF evaluation function. The new evaluation code is shorter, simpler and fixes this issue. Also, the threshold for the distance check was increased to avoid artifacts where portals touch a surface.
2016-02-17Fix OpenCL kernel build errors after recent 3D texture changes.Brecht Van Lommel
2016-02-17Fix (harmless) assert in BVH spatial splits with Visual Studio debug builds.Brecht Van Lommel
2016-02-16Cleanup: avoid -Wnarrowing warningCampbell Barton
2016-02-16Cycles: Remove back some tweaks for inline policiesSergey Sharybin
While kernel compiles fine, it seems generated binary is not really correct.
2016-02-16Cycles: Some cleanup, should be no functional changesSergey Sharybin
Addressing meaningful feedback from coverity.
2016-02-16Fix T47427: Crash caused by OSLSergey Sharybin
2016-02-16Cleanup: Typo.Thomas Dinges
2016-02-16Cycles: Fix crash when trying to render after re-enabling the addonSergey Sharybin
2016-02-16Make Blender compilable with FFmpeg-3.0Sergey Sharybin
While it's not something we'll be using for the official release, it's nice to support new libraries at least on "it compiles" level, so it's not that many frustrated developers around. Nexyon, please have a look into Audaspace changes :)
2016-02-15Cycles: Initial support of 3D textures for CUDA renderingSergey Sharybin
Supports both smoke/fire and point density textures now. Reduces number of textures available for sm_20 and sm_21, but you have to compromise somewhere on such a limited hardware. Currently limited to linear interpolation only, and decoupled ray marching is not supported yet. Think those could be considered just a further improvement. Some quick example: https://developer.blender.org/F282934 Code is minimal and we can fully consider it a fix for missing support of 3D textures with CUDA. Reviewers: lukasstockner97, brecht, juicyfruit, dingto Reviewed By: brecht, juicyfruit, dingto Subscribers: mib2berlin Differential Revision: https://developer.blender.org/D1806
2016-02-15Make cycles standalone link againMartijn Berger
2016-02-15Cycles: Tweaks for 32bit CUDA binariesSergey Sharybin
Tweak some inline policies. Not totally crazy yet, and in fact we now have one less ifdef statement now.
2016-02-15Cycles: Use CUDA_64_BIT_DEVICE_CODE to detect which CUDA architecture to useSergey Sharybin
It is initialized based on size of pointer, which matches our previous behavior, but using it in Cycles side allows to cross-compile CUDA binaries.
2016-02-15Cycles: Make guarded allocator compatible with MSVC2015Sergey Sharybin
2016-02-15Cycles: Fix guarded allocator issues on WindowsSergey Sharybin
The issue was caused by static vectors allocating some internal data using rebound element allocator for them, which was causing access to a non-initialized statistics objects and was failing a lot when switching Blender to a fully guarded allocation. Additionally, we were not able to free that internal memory before Blender exits, which was causing false-positive memory leak prints. Now we're not using GuardedAllocator for those proxy containers. Ideally this should be done as a GuardedAllocator::rebind, but it didn't work for vector<bool> because it seems some internal parts are converting bool to char32_t, which either makes it so we can't use GuardedAllocator for those vectors or the compiler get's confused when we're trying explicitly allow GuardedAllocator for rebind<char32_t>. This with current approach we should be fine for the release.
2016-02-14Cycles: Fix infinite recursion of md5 calculation on WindowsSergey Sharybin
Was caused by some safety things of making sure we've for NULL terminator for the buffer when doing mbs<->wcs conversion, but it turns out this simply confuses str::string and it can no longer have proper .size(). Let's assume behavior of string allocation is same all over the std, and we can avoid having that extra null-terminator allocated.
2016-02-14Fix cmd+z for undo not working when editing text objects on OS X.Brecht Van Lommel
2016-02-13Fix T47393: mouse wheel scroll no longer zooms with mighty mouse on OS X.Brecht Van Lommel
Hopefully this is the last fix, using the method explained here: https://forums.developer.apple.com/thread/31536
2016-02-13Cleanup: Move Cycles sky model data to util.Thomas Dinges
2016-02-13Cycles: Remove meaningless expressionSergey Sharybin
2016-02-13Cycles: Fix compilation error on WindowsSergey Sharybin
2016-02-13Cycles: Fixes for Burley BSSRDFSergey Sharybin
There are several fixes in here, which hopefully will make the shader working correct without too much magic in there. First of all, this commit brings BURLEY_TRUNCATE down from 30 to 16 which reduces noise a lot. It's still higher than original truncate from Brecht, but this reduces PDF value at a cutoff distance by an order of magnitude (now it's 0.008387, previously it was 0.063521 for the albedo of 0.8 and radius 1.0). This should converge to a proper result faster and don't have artifacts. This kind of reverts fix for T47356, but after additional thinking came to conclusion Burley is not being totally smooth, it is about giving less waxy results which it's kind of doing in the file. Second of all, this commit fixes burley_eval() to use normalized diffusion reflectance. This matches the way we calculate CDF and solves numeric instability close to 0, making PDF profile looking closer to other SSS profiles: https://developer.blender.org/F282355 https://developer.blender.org/F282356 https://developer.blender.org/F282357 Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D1792
2016-02-13Cleanup: Remove some OIIO code for versions prior to 1.5.Thomas Dinges
2016-02-13Cycles: Fix crash caused by the guarded allocation commitSergey Sharybin
C++ requires specific alignment of the allocations which was not an issue when using GCC but uncovered issue when using Clang on OSX. Perhaps some versions of Clang might show errors on other platforms as well.
2016-02-12Cycles: Fix compilation error with MinGWSergey Sharybin
Was using some C++0 which we don't officially enabled yet.
2016-02-12Cycles: Always use guarded allocator of vectorsSergey Sharybin
We don't have vectors re-allocation happening multiple times from inside a loop anymore, so we can safely switch to a memory guarded allocator for vectors and keep track on the memory usage at various stages of rendering. Additionally, when building from inside Blender repository, Cycles will use Blender's guarded allocator, so actual memory usage will be displayed in the Space Info header. There are couple of tricky aspects of the patch: - TaskScheduler::exit() now explicitly frees memory used by `threads`. This is needed because `threads` is a static member which destructor isn't getting called on Blender's exit which caused memory leak print to happen. This shouldn't give any measurable speed issues, reallocation of that vector is only one of fewzillion other allocations happening during synchronization. - Use regular guarded malloc (not aligned one). No idea why it was made to be aligned in the first place. Perhaps some corner case tests or so. Vector was never expected to be aligned anyway. Let's see if we'll have actual bugs with this. Reviewers: dingto, lukasstockner97, juicyfruit, brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D1774
2016-02-12Cycles: Make Blender importer more forward compatibleSergey Sharybin
Basically the idea is to make code robust against extending enum options in the future by falling back to a known safe default setting when RNA is set to something unknown. While this approach solves the issues similar to T47377, but it wouldn't really help when/if any of the RNA values gets ever deprecated and removed. There'll be no simple solution to that apart from defining explicit mapping from RNA value to Cycles one. Another part which isn't so great actually is that we now have to have some enum guards and give some explicit values to the enum items, but we can live with that perhaps. Reviewers: dingto, juicyfruit, lukasstockner97, brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D1785
2016-02-11Cycles: Remove some ifdefs for OSL < 1.7.1.Thomas Dinges
That means that we now only support OSL 1.7.1 or newer. Please update libs or re-run install-depsh.sh.
2016-02-11Cycles: Fix typo in network deviceSergey Sharybin
Spotted by jesterKing, thanks!
2016-02-10Cycles: Fix an AttributeErro exceptionr on missing object contextSergey Sharybin
This happens when the properties panel is pinned to the material tab. Patch by Ralf Hölzemer (aka cheleb), thanks! Differential Revision: https://developer.blender.org/D1776
2016-02-10Update link to avoid redirectAaron Carlisle
2016-02-10Fix T47377: Newer file crashes at render on official 2.76b versionSergey Sharybin
Really annoying bug, the code was not forward compatible at all and resulted in crash. And it is really good to keep at least one release forward compatibility so possible regressions could be verified easily. The idea now is to use new property name for the pixel filter type, but keep old property around for a couple of releases, so we have at least some forward compatibility. Don't like this situation at all, but seems it's least of the evil we can choose. Thanks Brecht for the review!
2016-02-10Cycles: Cleanp, avoid direct calls of RNA_enum_get, we've got utility for thatSergey Sharybin
2016-02-09Fix T47370: untranslateable bake panel strings.Brecht Van Lommel
Reorder buttons a bit so that these strings are not even needed, makes more sense to have this grouped anyway.
2016-02-08Cycles: Fix Burley's CDF truncation after recent radius fixSergey Sharybin
This is all not really ideal, but good enough for tonight. More thoughts and investigation tomorrow!
2016-02-08Fix T47356: Too sharp falloww with Burley BSSRDFSergey Sharybin
After the clamping commit we need to bump BURLEY_TRUNCATE constant a bit, otherwise mean free path does not really match the disk radius needed for importance sampling.
2016-02-07Cycles: Fix access uninitialized light after recent refactor/fixesSergey Sharybin
2016-02-07Cycles: Refactor the way how we exclude light from the deviceSergey Sharybin
This unifies things around ignoring light due to lack of scene contribution or due to other optimization tricks.
2016-02-06Fix T46550: Cycles combined baking black in some cases.Brecht Van Lommel
Now pass_filter is modified to have exactly the flags for the light components that need to be baked, based on the shader type. This simplifies the logic.