Blender Git Loki

Blender Git commits from all branches.

Page: 2020 / 2888

June 8, 2016, 19:45 (GMT)
Cycles / CUDA: Don't use bundled kernel if Adaptive is enforced by the user.
June 8, 2016, 19:45 (GMT)
Cleanup: misleading indentation
June 8, 2016, 19:45 (GMT)
Dynapaint: parallelize drip effect.

Was not so far, because this effect is not modifying its 'own' PaintPoint, which means
it's not threadsafe. Since a global lock (mutex or spinlock) would not be much efficient
(we need to lock a given point pretty much all the computaion cycle), and since locking
a same PaintPOint from different threads at the same time is *very* unlikely,
solution here is to use an 'array of locks', one for each PaintPoint (same thing as BLI_bitmap,
using atomic ops to set/clear bits).

Here in own test (complex dynapaint over a huge sphere combining all dynapaint types), it gives
20% speedup of the whole dynapaint simulation!

Note: maybe we'd want to move that kind of bitlock into BLI lib some day - not totally sure how,
so let's keep it local for now...
June 8, 2016, 19:45 (GMT)
Dynapaint: fix use of normal normalization in dynamicPaint_generateBakeData().

Vertex's normal is always normalized - and its conversion from short to float should not change that!
On the other hand, linear interpolation of three normals **does not give a normalized vector**
(unless all three inputs are exactly the same).

Also, minor optimization, avoid recomputing that interpolated normal twice for each PaintUVPoint.
June 8, 2016, 19:45 (GMT)
Cycles: Add support for bindless textures.

This adds support for CUDA Texture objects (also known as Bindless textures) for Kepler GPUs (Geforce 6xx and above).
This is used for all 2D/3D textures, data still uses arrays as before.

User benefits:
* No more limits of image textures on Kepler.
We had 5 float4 and 145 byte4 slots there before, now we have 1024 float4 and 1024 byte4.
This can be extended further if we need to (just change the define).

* Single channel textures slots (byte and float) are now supported on Kepler as well (1024 slots for each type).

ToDo / Issues:
* 3D textures don't work yet, at least don't show up during render. I have no idea whats wrong yet.
* Dynamically allocate bindless_mapping array?

I hope Fermi still works fine, but that should be tested on a Fermi card before pushing to master.

Part of my GSoC 2016.

Reviewers: sergey, #cycles, brecht

Subscribers: swerner, jtheninja, brecht, sergey

Differential Revision: https://developer.blender.org/D1999
June 8, 2016, 19:45 (GMT)
Ignore vertex color when doing texture paint

It was totally useless to multiply diffuse color with the vertex color
when doing texture painting. It was masking actual texture and only was
forcing artists to create an empty vertex color layer to work this around.
June 8, 2016, 19:45 (GMT)
CMake: use signed char for recastnavigation

External libraries may need char to be signed.
June 8, 2016, 19:45 (GMT)
Cleanup: CMake indentation

Also remove outdated comment
June 8, 2016, 19:45 (GMT)
Cuda wrangler: Fix very nasty bug with multiple scalar type qualifiers
June 8, 2016, 19:45 (GMT)
Fix missing modifiers for mesh objects

All modifiers for all non-lattice objects were disabled after recent commit.
June 8, 2016, 19:45 (GMT)
Theme Color Sets - Dynamically generated icons

The theme color set selector (for Bone Groups) will now show previews of
what each color set looks like. It does so using a 3-color band icon.
June 8, 2016, 19:45 (GMT)
Fix T47727: Weird bake results with non integer color values
June 8, 2016, 19:45 (GMT)
Fix T47737: Lattice crashes w/ smooth modifier

Add flag for modifiers that support lattice
June 8, 2016, 19:45 (GMT)
Revert string splitting

Caused error on OSX
June 8, 2016, 19:45 (GMT)
Revert part of 4adffde02c98f3bb058ffba5ea010a6b1045a7b1 to get Windows (MSVC2013) compiling again
June 8, 2016, 19:45 (GMT)
Depsgraph: Fix rest pose still using bone constraints
June 8, 2016, 19:45 (GMT)
Cycles: Fix compilation error of CUDA kernels after recent volume commit

Apparently the code path with malloc() was enabled for CUDA.
June 8, 2016, 19:45 (GMT)
Cycles: Pole merging for spherical stereo

The idea of pole merge is to fade interocular distance after a certain
altitude to zero when altitude goes closer to a pole. This should prevent
annoyances looking up in the sky or down to the bottom.

Works for both panorama and perspective cameras when Spherical Stereo
is enabled.

Reviewers: dfelinto, brecht

Reviewed By: brecht

Subscribers: sebastian_k

Differential Revision: https://developer.blender.org/D1998
June 8, 2016, 19:45 (GMT)
Cycles: Reduce amount of malloc() calls from the kernel

This commit makes it so malloc() is only happening once per volume and
once per transparent shadow query (per thread), improving scalability of
the code to multiple CPU cores.

Hard to measure this with a low-bottom i7 here currently, but from quick
tests seems volume sampling gave about 3-5% speedup.

The idea is to store allocated memory in kernel globals, which are per
thread on CPU already.

Reviewers: dingto, juicyfruit, lukasstockner97, maiself, brecht

Reviewed By: brecht

Subscribers: Blendify, nutel

Differential Revision: https://developer.blender.org/D1996
June 8, 2016, 19:45 (GMT)
Cycles: Explicitly mark arguments as unused
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021