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-08Cycles: Add asserts to BVH node packingSergey Sharybin
2016-09-08Cycles: Cleanup: line wrappingSergey Sharybin
2016-09-08Fix T49286: Compilation error with XCode 7.0Sergey Sharybin
Weirdly enough, this version of XCode seems to have static_assert() even when NOT using C++11. This is totally weird and counter intuitive since static_assert() is supposed to be C++11 onlky feature. Can XCode stop using future, please? :)
2016-09-08Cycles: Fix OpenCL speed regression introduced with the improved bump mappingLukas Stockner
The two SVM nodes added with e7ea1ae78c caused a slowdown on AMD cards when rendering with OpenCL, whether displacement was used or not. In the Barcelona Pavillon scene on a RX480, this would cause a 12% slowdown. Therefore, this commit adds a additional flag for feature-adaptive compilation so that the new SVM nodes are only enabled when they are needed (Node tree connected to the Displacement output and Displacement type set to Both). Also, the nodes were also added to shaders when the Displacement Type was set to Bump (the default), which was unneccessary and is fixed now. Thanks to linda2 on IRC for reporting and testing and to maiself for help with the displacement shader code. This fix might be relevant for 2.78, but it should be tested further before including it.
2016-09-06Add XK_ISO_Left_Tab to ghost's known X11 keydefines...Bastien Montagne
2016-09-06Cleanup previous commit...Bastien Montagne
2016-09-06GHOST X11 keyboard: Attempt to fix issues with modifier keys on some systems.Bastien Montagne
Could not reproduce it here, but since users having the issue claims it comes from rB16cb9391634dcc50e, let's try to use again ugly `XLookupKeysym()` for those modifier keys too...
2016-09-05Fix T49252: Crash when image textures used with true displacementMai Lavelle
2016-09-05Cycles: Fix unreported - Missing node group for the Camera NodeLukas Stockner
Thanks to linda2 for reporting in IRC.
2016-09-04Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: intern/cycles/blender/blender_particles.cpp source/blender/blenkernel/intern/particle.c source/blender/gpu/intern/gpu_shader.c
2016-09-04Fix a few OpenCL compiler warnings.Brecht Van Lommel
2016-09-03Fix T48911: Fix T48847: Issues with some shortcuts on non-US latin ↵Bastien Montagne
keyboards, and with non-first layouts. This is a tentative fix, own tests here seem to be working OK, but don't think it's safe enough to be backported to 2.78.
2016-09-02Fix T49180: Cycles MIS Map for Animated Environment Texture Movie Doesn't ↵Sergey Sharybin
Update on Frame Change Not really ideal fix at all, but we are at RC today, so better to play really safe.
2016-09-02Cycles: Silence strict compiler warning in release buildSergey Sharybin
2016-09-02Cycles microdisplacement: Improved automatic bump mappingMai Lavelle
Object coordinates can now be used in the displacement shader and will give correct results, where as before bump mapping was calculated from the displace positions and resulted in incorrect shading. This works by evaluating the shader in two parts, first bump then surface, and setting the shader state to match what it would be if the surface was undisplaced for the bump shader evaluation. Currently only `P` is set as if undisplaced, but other shader variables could be set as well, such as `I` or `time`. Since these aren't set to anything meaningful for displacement I left them out of this patch, we can decide what to do with them separately. Reviewed By: brecht Differential Revision: https://developer.blender.org/D2156
2016-09-02Cycles: Store undisplaced coordinates for meshes when neededMai Lavelle
Reviewed By: brecht Differential Revision: https://developer.blender.org/D2156
2016-09-02Cycles: remove duplicate shader storageMai Lavelle
Storing multiple copies of a shader was needed when the displacement method was a mesh option and could be different for each mesh. Now that its a shader option this is unnecessary. Reviewed By: brecht Differential Revision: https://developer.blender.org/D2156
2016-09-01Fix T49215lazydodo
2016-09-01Cleanup: Reduce amount of misleading indentationSergey Sharybin
Was polluting compile output too much.
2016-08-31Cycles: don't crash if OSLRenderServices::osl_ts is unsetMai Lavelle
2016-08-30Cycles: Fix calculation of normals for subdivision meshesMai Lavelle
Not sure what happened here. Will have only effected Cycles standalone with linear subdivision in use.
2016-08-30Fix T49187: inconsistent Normal Map node output for backfacing polygons.Alexander Gavrilov
There basically are two issues here: in smooth mode (and all non-tangent normal map types) it doesn't invert the normal for backfacing polys; on the other hand for flat shaded tangent type it is inverted too soon. This fix does a brute force correction by checking the backfacing flag. Reviewers: #cycles, brecht Reviewed By: #cycles, brecht Differential Revision: https://developer.blender.org/D2181
2016-08-28Fix T49163: let Cycles only hide particles with missing motion data, not ↵Brecht Van Lommel
regular objects.
2016-08-28Fix T49167: Normals in wrong coordinate space when adaptive subdivision is usedMai Lavelle
Meshes with Cycles subdivision were being transformed to world space leading to normals to sometimes be calculated in that space, while they should be in object space. Also caused dicing to happen at the wrong rate for scaled meshes.
2016-08-26Cycles: Make UI for subdivision more clearMai Lavelle
Users have been getting a bit confused by the way things are worded/arranged in the UI. This patch makes a few changes to the UI to make it more clear how to use subdivision: - make Subdivide UVs option inactive when adaptive subdivision is enabled as UV subdivision is currently unsupported - add "px" to dicing rates in the Geometry Panel - display the final dicing rate in the modifier - reworded "Dicing Rate" in the modifier to "Dicing Scale" to make more clear that this is a multiplier for the scene dicing rate and added a note the the tooltip pointing the user to that setting in the Geometry Panel Reviewed By: brecht Differential Revision: https://developer.blender.org/D2174
2016-08-25Cycles: Remove some redundant checksMai Lavelle
2016-08-25Cycles: Cleanup, indentationSergey Sharybin
2016-08-25Cycles: Fix crash after recent subd fixesSergey Sharybin
Was happening when object only had curves (doe example, object with hair particle system and emitter rendering disabled).
2016-08-25Cycles: Support proper visibility check in single volume intersection step ↵Sergey Sharybin
for QBVH
2016-08-25Cycles: Implement proper visibility check in QBVH volume all intersectionSergey Sharybin
2016-08-25Fix T49078: Cycles tries to render volume from another render layer when ↵Sergey Sharybin
camera is in volume
2016-08-24Cycles: Fix crash when empty mesh has subdivisionMai Lavelle
OpenSubdiv doesn't like empty meshes, so we need to be careful not to subdivide when the mesh is empty.
2016-08-24Cycles Standalone: Fix support for subdivision meshesMai Lavelle
Changes from microdisplacement work broke previous support for subdivision meshes, sometimes leading to crashes; this makes things work again. Files that contain "patch" nodes will need to be updated to use meshes instead, as specifying patches was both inefficient and completely unsupported by the new subdivision code.
2016-08-24Cycles: Consolidate the various split CL kernel feature defines within the ↵Edward O'Callaghan
AMD platform Reviewers: sergey Differential Revision: https://developer.blender.org/D2172
2016-08-24Cycles OpenCL: use AoS rather than SoA storage for ShaderData.Brecht Van Lommel
Fixes part of the performance regressions compared to 2.76b, see T49046, T48876.
2016-08-23Cycles: Fix/workaround for missing AA on Pascal (GTX10x0) cardsSergey Sharybin
2016-08-22Fix T49136: full constant Curves with zero Fac input crashes in assert.Alexander Gavrilov
The if branches were reordered when the original patch was committed, which broke the implicit non-NULL guarantee on link. To prevent re-occurrence, add a couple of unit tests.
2016-08-22NDOF: fix crash on Mac with old driversMike Erwin
For best results use the latest 3Dconnexion driver. But latest is only supported on Mac OS 10.9+. We go all the way back to Mac OS 10.6 so have to deal with older driver versions. See the original dlclose line for my faulty assumption. Waiting to unload the driver later fixes the crash. Newer drivers don’t seem to have this issue. Also removed WITH_INPUT_NDOF guards as NDOFManager.h takes care of this. Follow-up to b10d005 a few days ago.
2016-08-21Merge branch 'master' into blender2.8Bastien Montagne
In addition to pack of conflicts listed below, also had to comment out particle part of new Alembic code... :/ Conflicts: intern/ghost/intern/GHOST_WindowWin32.cpp source/blender/blenkernel/BKE_effect.h source/blender/blenkernel/BKE_pointcache.h source/blender/blenkernel/intern/cloth.c source/blender/blenkernel/intern/depsgraph.c source/blender/blenkernel/intern/dynamicpaint.c source/blender/blenkernel/intern/effect.c source/blender/blenkernel/intern/particle_system.c source/blender/blenkernel/intern/pointcache.c source/blender/blenkernel/intern/rigidbody.c source/blender/blenkernel/intern/smoke.c source/blender/blenkernel/intern/softbody.c source/blender/depsgraph/intern/builder/deg_builder_relations.cc source/blender/gpu/intern/gpu_debug.c source/blender/makesdna/DNA_object_types.h source/blender/makesrna/intern/rna_particle.c
2016-08-20Fix OpenSubdiv driver crash due to recently added uninitialized field.Alexander Gavrilov
For some reason my NVidia linux driver crashes in glDeleteTextures when the ID is total garbage.
2016-08-18Cycles: Fix wrong allocator used for spatial builderSergey Sharybin
2016-08-18NDOF: compile 3D mouse code only if WITH_INPUT_NDOFMike Erwin
When WITH_INPUT_NDOF is disabled, 3D mouse handling code is removed from: - GHOST (was mostly done, finished the job) - window manager - various editors - RNA - keymaps The input tab of user prefs does not show 3D mouse settings. Key map editor does not show NDOF mappings. DNA does not change. On my Mac the compiled binary is 42KB smaller after this change. It runs fine WITH_INPUT_NDOF on or off.
2016-08-18NDOF: suppress buttons debug logMike Erwin
Accidentally left this in the 3D mouse code. Mac only.
2016-08-18Code cleanup to use array.data() rather than &array[0]Brecht Van Lommel
(Now without the build errors)
2016-08-18Revert "Code cleanup to use array.data() rather than &array[0]."Mai Lavelle
This reverts commit 40b367479c6fe23d6f2b6d822f2d5266485619f3. Didn't build or solve any known issue. Please don't push changes without testing them first.
2016-08-18Code cleanup to use array.data() rather than &array[0].Brecht Van Lommel
These latter can cause MSVC debug asserts if the array is empty. With C++11 we'll be able to do this for std::vector later. This hopefully fixes an assert in the Cycles subdivision code.
2016-08-18Fix T48913: cycles viewport render stuck in loop due to non-unique dupli ID.Brecht Van Lommel
2016-08-17Cycles: Fix regression where smoke wouldn't show in rendersMai Lavelle
2016-08-15Cycles microdisplacement: Allow kernels to be built without patch evaluationMai Lavelle
Kernels can now be built without patch evaluation when not needed by the scene (Catmull-Clark subdivision not in use), giving a performance boost for some devices.
2016-08-15Fix Cycles OpenCL textures after recent CUDA fix.Brecht Van Lommel
kernel_textures.h is included in device_opencl.cpp, so we can't check __KERNEL_OPENCL__ there.