Blender Git Loki

Blender Git "soc-2020-production-ready-light-tree-2" branch commits.

Page: 4 / 5

June 1, 2018, 13:41 (GMT)
Fix missing movieclip ID type in allowed ones for Outliner...
June 1, 2018, 13:41 (GMT)
Cycles: Add Support for IES files as textures for light strength

This patch adds support for IES files, a file format that is commonly used to store the directional intensity distribution of light sources.
The new IES node is supposed to be plugged into the Strength input of the Emission node of the lamp.

Since people generating IES files do not really seem to care about the standard, the parser is flexible enough to accept all test files I have tried.
Some common weirdnesses are distributing values over multiple lines that should go into one line, using commas instead of spaces as delimiters and adding various useless stuff at the end of the file.

The user interface of the node is similar to the script node, the user can either select an internal Text or load a file.
Internally, IES files are handled similar to Image textures: They are stored in slots by the LightManager and each unique IES is assigned to one slot.

The local coordinate system of the lamp is used, so that the direction of the light can be changed. For UI reasons, it's usually best to add an area light,
rotate it and then change its type, since especially the point light does not immediately show its local coordinate system in the viewport.

Reviewers: #cycles, dingto, sergey, brecht

Reviewed By: #cycles, dingto, brecht

Subscribers: OgDEV, crazyrobinhood, secundar, cardboard, pisuke, intrah, swerner, micah_denn, harvester, gottfried, disnel, campbellbarton, duarteframos, Lapineige, brecht, juicyfruit, dingto, marek, rickyblender, bliblubli, lockal, sergey

Differential Revision: https://developer.blender.org/D1543
June 1, 2018, 13:41 (GMT)
Threads: add spinlock hit for hyperthreading processors on Windows.

Suggested by Percy Ross Tiglao.
June 1, 2018, 13:41 (GMT)
Recently added IES conflicts w/ EEVEE
June 1, 2018, 13:41 (GMT)
UI: replace BLI_strncpy w/ memcpy

Size is already checked.
June 1, 2018, 13:41 (GMT)
Cleanup: Nuke most of remaining evil G.main from RNA.

The few ones in getters/setters we cannot remove as easily, for now we
can live with those I think...
June 1, 2018, 13:41 (GMT)
make.bat : Fix builtime.txt being written in the wrong folder.
June 1, 2018, 13:41 (GMT)
Cycles: Fix problems in the IES loader when rendering with no file selected
June 1, 2018, 13:41 (GMT)
UI: center align number buttons w/o text

This makes supporting split properties and text possible, see T54951
June 1, 2018, 13:41 (GMT)
Fix restrict error in BLI_str_format_byte_unit

Don't use sprintf to append a string to it's self.

Also correct BLI_str_rstrip_float_zero's return value.
June 1, 2018, 13:41 (GMT)
make.bat: Add support for building with ninja.

ninja is an alternative to msbuild designed for fast rebuilds. However there is no IDE support, builds only from the command line.

Comparison between msbuild and ninja for a full build, build time in seconds.

Full Clean Build
msbuild 867.5
Ninja 801.2
Difference -66.3 (-7.6%)

Minor Change
msbuild 43.0
Ninja 14.9
Difference -28.1 (-64.4%)

No Changes
msbuild 23.0
Ninja 6.1
Difference -16.9 (-73.5%)
June 1, 2018, 13:41 (GMT)
3D View: minor change to NDOF view orbit

This change is needed for 2.8, where the NULL check isn't a reliable way
of testing if dynamic offset is needed.
June 1, 2018, 13:41 (GMT)
WM: check modal handlers for keymap lookups

Keep in sync with 2.8x
June 1, 2018, 13:41 (GMT)
Cycles Denoising: Don't use atomics in the accumulation kernel on CPUs

The GPU kernel needs to use atomics for accumulation since all offsets are processed in
parallel, but on CPUs that's not the case, so we can disable them there for a considerable speedup.
June 1, 2018, 13:41 (GMT)
Cycles: Cleanup: Remove duplicated atan2f definition for OpenCL

Turns out that atan2f was already defined for OpenCL.
June 1, 2018, 13:41 (GMT)
make.bat/cleanup: removed stray echo in make.bat
June 1, 2018, 13:41 (GMT)
make.bat: refactor make.bat

make.bat was starting to become hard to maintain, this refactors it into separate batch files for each stage of the process.

-Improved detection of msvc2013/2015
-Improved failure handling.
-Added check for working msbuild and C++ compiler
-Added verbose switch to ease trouble shooting.
-Added Check if svn/cmake/git are in the path before using them
-Display the build configuration before asking to download the libraries
-Offer an option to recover an interrupted checkout of the libraries.
-Automatically check out sub-modules in-case they are missing.
June 1, 2018, 13:41 (GMT)
Fix T55034: Setting duplication group for multiple selected items only
affects one item

UI editing multiple selected items missed the case of PROP_POINTER
properties

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D3373
June 1, 2018, 13:41 (GMT)
Add number and memory size formatting throughout the UI

This commit adds number formatting (thousands separator) to the baking panel. It also adds a new function to format memory sizes (KB/GB/etc) and applies it to the baking panel and scene stats. The new function is unit tested.

Reviewers: Severin
Tags: #user_interface
Differential Revision: https://developer.blender.org/D1248
June 1, 2018, 13:41 (GMT)
3D View: add pixelsize function w/o UI scale
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021