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-09-23Merge branch 'master' into blender2.8Julian Eisel
Conflicts: intern/ghost/intern/GHOST_ContextCGL.mm intern/ghost/intern/GHOST_WindowCocoa.mm source/blender/makesrna/intern/rna_main.c
2016-09-23Cycles: Fix overflow caused by wrong size calculation in Mesh::add_undisplacedMai Lavelle
2016-09-22Fix T49417: Cycles crash - can't use 5 Gigabyte Tile EXR texture fileSergey Sharybin
Was an integer overflow issue when calculating offsets.
2016-09-21Cycles: Cleanup, whitespaceSergey Sharybin
2016-09-21Cycles: Make code more uniform across two versions of shadow_blocked()Sergey Sharybin
Just to make it easier to research ways of possible code de-duplication.
2016-09-21Cycles: Remove out of date commentSergey Sharybin
2016-09-20Cycles: Make regular bvh traversal functions close to each otherSergey Sharybin
2016-09-20Cycles: Re-group ifdef so we check for particular feature only onceSergey Sharybin
2016-09-20Cycles: Avoid conversion from bool to uintSergey Sharybin
2016-09-19OpenGL: software renderer for old Mac GPUsMike Erwin
We raised the minimum to GL 2.1 in Blender 2.77, and dropped support for older GPUs (pre-2012 Intel mostly). On Windows you get a popup message, but on Mac we simply crashed. Every Mac has a builtin software renderer for GL 2.1 so let's use that when the GPU is not capable! Run blender --debug-gpu to see version detection & software fallback.
2016-09-19Cycles: Cleanup code style in split kernelSergey Sharybin
2016-09-19Cycles: More tweaks to make specialized BVH traversal matchingSergey Sharybin
2016-09-19Cycles: Avoid redundant intersection pre-calculationSergey Sharybin
2016-09-19Cycles: Cleanup, sync some comments across different traversalSergey Sharybin
2016-09-19Cycles: Cleanup, always use parenthesisSergey Sharybin
Makes it simpler to compare different traversal algorithms.
2016-09-19Lowercase includes for psapi.h and dbghelp.h windows includes.Martijn Berger
This makes cross compilation a little less painful
2016-09-19Cycles: Move BVH constants to an own files, so they are easily re-usableSergey Sharybin
2016-09-19Cycles: Fix typo that would sometimes result in subsurf modifier being disabledMai Lavelle
2016-09-18Fix T49245: Adaptive Subdivision with Auto Smooth causes weird mesh appearanceMai Lavelle
2016-09-18Cycles: Fix update of subdivision meshes when global dice rates changeMai Lavelle
When subdivision settings were moved from meshes to objects this was missed, should work fine now.
2016-09-18Cycles: Soft minimum for dice ratesMai Lavelle
Use 0.5 as a soft minimum for dice rates to help from setting them too low. Lower values can still be set by typing in the value.
2016-09-18Cycles: Adaptive isolationMai Lavelle
Idea here is to select the lowest isolation level that wont compromise quality. By using the lowest level we save memory and processing time. This will also help avoid precision issues that have been showing up from using the highest level (T49179, T49257). This is a pretty simple heuristic that gives ok results. There's more we could do here, such as filtering for vertices/edges adjacent geometric features that need isolation instead of checking them all, but the logic there could get a bit involved. There's potential for slight popping of edges during animation if the dice rate is low, but I don't think this should be a problem since low dice rates really shouldn't be used in animation anyways. Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D2240
2016-09-18Fix T49384: crash in tangent space calculation with NaN mesh vertices.Brecht Van Lommel
2016-09-16Merge branch 'master' into blender2.8Sergey Sharybin
2016-09-16OpenSubdiv: Remove redundant section define from shader compilationSergey Sharybin
2016-09-16OpenSubdiv: Split shader source filesSergey Sharybin
Was a bit annoying to do tweaks in a file which contained all vertex, geometry and fragment shaders.
2016-09-15Revert "Cycles: Tweak empty boundbox children"Sergey Sharybin
This reverts commit ecbfa31caaadb03c53c0fe1459718b99613c8804. Original commit broke logic in nodes re-fitting. That area can access non-existing children momentarely. Not sure what would be best solution here, for now simply reverting the change/
2016-09-15Fix T49179: Parts of mesh disappear with adaptive subdivisionMai Lavelle
Problem was zero length normal caused by a precision issue in patch evaluation. This is somewhat of a quick fix, but is better than allowing possible NaNs to occur and cause problems elsewhere.
2016-09-14Cycles: Deduplicate light pass codeLukas Stockner
2016-09-14Cycles: Stop lamp sampling if the lamp isn't visibleLukas Stockner
Both spot and area light have large areas where they're not visible. Therefore, this patch stops the light sampling code when one of these cases (outside of the spotlight cone or behind the area light) occurs, before the lamp shader is evaluated. In the case of the area light, the solid angle sampling can also be skipped. In a test scene with Sample All Lights and 18 Area lamps and 9 Spot lamps that all point away from the area that the camera sees, render time drops from 12sec to 5sec. Reviewers: brecht, sergey, dingto, juicyfruit Differential Revision: https://developer.blender.org/D2216
2016-09-14Cycles: Also support the constant emission speedup for mesh lightsLukas Stockner
Reviewers: brecht, sergey, dingto, juicyfruit Differential Revision: https://developer.blender.org/D2220
2016-09-14fix Mac build with Xcode 8Mike Erwin
Small issues in GHOST - use NSApplicationDelegate protocol for our app delegate - make sure NSApp is initialized before using (cherry picked from commit df7be04ca6d4b6dccc998445386228699d72d072)
2016-09-14fix Mac build with Xcode 8Mike Erwin
Small issues in GHOST - use NSApplicationDelegate protocol for our app delegate - make sure NSApp is initialized before using
2016-09-14Fix T49341: Bad motion blur behavior in Cycles when using Speed effect in ↵Sergey Sharybin
Sequencer Cycles was thinking it always rendering integer frame, which is not correct.
2016-09-13Cycles: Implement threaded SVM nodes compilationSergey Sharybin
The title says it all actually. From tests with barber shop scene here gives 2-3x speedup for shader compilation on my oldie i7 machine. The gain is mainly due to textures metadata query from jpeg files (which seems to requite de-compression before metadata can be read). But in theory could give nice improvements for scenes with huge node trees as well (i'm talking about node trees of complexity of fractal which we had reports about in the past). Reviewers: juicyfruit, dingto, lukasstockner97, brecht Reviewed By: brecht Subscribers: monio, Blendify Differential Revision: https://developer.blender.org/D2215
2016-09-13Cycles: Tweak empty boundbox childrenSergey Sharybin
The idea here is to make assert failure to fail sooner on an incorrect node address rather than later with stack overflow.
2016-09-13Fix T49290: Specific .blend with hair crashes in MacOS 2.78 RC1 on renderSergey Sharybin
The issue was caused by some false-positive empty non-AABB intersection. Tried to tweak it a bit so it does not record intersection anymore. Hopefully will work for all platforms. Tested here on iMac and Debian.
2016-09-12Fix T49327: Cycles OSL Mode: RGB Curves node only outputs gray scale imagesSergey Sharybin
To be backported to 2.78 release.
2016-09-12Cycles: Fix compilation error after recent commitsSergey Sharybin
2016-09-12Cycles: Fix wrong SSS in combination with hair on AVX2 platformSergey Sharybin
Not sure why exactly that happened, need a closer look.
2016-09-12Cycles: Use XDG's .cache folder for cached kernelsSergey Sharybin
Basically just moves cached kernels from ~/.config/blender/BLENDER_VERSION to ~/.cache/cycles/kernels. This has following benefits: - Follows XDG specification more closely, not as if it's totally crucial or measurable by users, but still nice. - Prevents unexpected sizes of config folder, makes disk space used in more predictable for users way. - Allows to share kernels across multiple Blender versions, which makes it easier debugging at the times close to release. - "Copy Previous Settings" operator will no longer be copying possibly gigabytes of cached kernels, which used to lead to really nast disk usage and annoying delays of copying settings. - In the future we can have some smart logic to clear old unused cached kernels. Currently only done for Linux and OSX. Windows still follows old "cache" folder logic, but it's not really important for now because we don't support kernel compilation on this platform yet. Reviewers: dingto, juicyfruit, brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D2197
2016-09-11Cycles: Fix shading and crashes resulting from constant folding on displacementMai Lavelle
Constant folding was removing all nodes connected to the displacement output if they evaluated to a constant, causing there to be no valid graph for displacement even when there was displacement to be applied, and sometimes caused crashes.
2016-09-11Cycles: Replace object index hack with actual checks for SD_TRANSFORM_APPLIEDMai Lavelle
Using ones complement for detecting if transform has been applied was confusing and led to several bugs. With this proper checks are made. Also added a few transforms where they were missing, mostly affecting baking and displacement when `P` is used in the shader (previously `P` was in the wrong space for these shaders) Also removed `TIME_INVALID` as this may have resulted in incorrect transforms in some cases. Reviewed By: brecht Differential Revision: https://developer.blender.org/D2192
2016-09-11Cycles: Fix bump mapping to use object space when used with true displacementMai Lavelle
Bump mapping was happening in world space while displacement happens in object space, causing shading errors when displacement type was used with bump mapping. To fix this the proper transforms are added to bump nodes. This is only done for automatic bump mapping however, to avoid visual changes from other uses of bump mapping. It would be nice to do this for all bump mapping to be consistent but that will have to wait till we can break compatibility. Reviewed By: brecht Differential Revision: https://developer.blender.org/D2191
2016-09-10Fix OpenSubdiv related buffer overrun with multiple FVar channels.Alexander Gavrilov
The existing code uses the input value count of the first channel for all of them. If the first channel is the largest, it leads to a crash-causing buffer overrun in memcpy below. Likely this was left since the time when only one channel was supported. As a crash fix, probably should go into 2.78
2016-09-10Fix T49303: Fix T49314: More issues with new handling of X11 shortcuts.Bastien Montagne
This commits changes two things: * It adds more keysyms preferably taken from XLookupKeysym than XLookupString (namely, all numpad ones). * It falls back to keysyms from XLookupKeysym in other cases, when XLookupString does not produce anything we know of. Finding the correct balance here is far from easy, but think we are comming rather close to it now...
2016-09-09Cycles: Add overall timing log to SVNShaderManagerSergey Sharybin
2016-09-09Cycles: Deduplicate QBVH node packing across BVH build and refitSergey Sharybin
2016-09-09Cycles: Don't run full shader evaluation for constant emission lampsLukas Stockner
Most of the time, Lamps in Cycles are just a constant emission closure, no texturing etc. Therefore, running a full shader evaluation is wasteful. To avoid that, Cycles now detects these constant emission shaders and stores their value in the lamp data along with a flag in the shader. Then, at runtime, if this flag is set, the lamp code just uses this value and only runs the full shader evaluation if it is neccessary. In scenes with a lot of lamps and with "Sample all direct/indirect" enabled, this saves up to 20% of rendering time in my tests. Reviewers: #cycles Differential Revision: https://developer.blender.org/D2193
2016-09-08Cycles: Fix regular BVH nodes refitSergey Sharybin
For proper indexing to work we need to use unaligned node with identity transform instead of aligned nodes when doing refit. To be backported to 2.78 release.