blender/intern/cycles/kernel/svm
Lukas Stockner 48155c210a 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
2018-05-27 01:24:57 +02:00
..
svm_attribute.h Cycles: Remove ccl_fetch and SOA 2017-03-08 00:52:41 -05:00
svm_bevel.h Cycles: Cleanup: Remove double semicolons 2018-04-29 09:28:41 +02:00
svm_blackbody.h Fix T53001: more workarounds for crash in AMD compiler with recent drivers. 2017-10-05 17:57:58 +02:00
svm_brick.h Fix T53365: OpenCL has wrong shading of brick texture 2017-11-21 00:42:55 -05:00
svm_brightness.h Cycles: add constant folding for more color operation nodes. 2016-06-19 20:17:28 +02:00
svm_bump.h Cycles: Remove ccl_fetch and SOA 2017-03-08 00:52:41 -05:00
svm_camera.h Cycles: Remove ccl_fetch and SOA 2017-03-08 00:52:41 -05:00
svm_checker.h Fix T48139: Checker texture strange behavior in cycles 2016-04-15 15:30:30 +02:00
svm_closure.h Cycles: switch to squared roughness convention for all nodes. 2018-03-10 18:05:01 +01:00
svm_color_util.h Cycles: add constant folding for more color operation nodes. 2016-06-19 20:17:28 +02:00
svm_convert.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
svm_displace.h Cycles: Cleanup: Remove double semicolons 2018-04-29 09:28:41 +02:00
svm_fresnel.h Cycles: Remove ccl_fetch and SOA 2017-03-08 00:52:41 -05:00
svm_gamma.h Cycles: Constant fold for the Gamma Node. 2015-12-22 13:53:13 +01:00
svm_geometry.h Cycles: restore Particle Info Index for now, keep it next to Random. 2018-02-14 21:45:57 +01:00
svm_gradient.h Fix T53348: Cycles difference between gradient texture on CPU and GPU. 2017-11-23 17:14:04 +01:00
svm_hsv.h Code cleanup: simplify SVM stack assignment. 2016-05-05 21:43:46 +02:00
svm_ies.h Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
svm_image.h Code refactor: make texture code more consistent between devices. 2017-10-07 14:53:14 +02:00
svm_invert.h Cycles: Code cleanup, spaces around keywords 2015-03-28 00:15:15 +05:00
svm_light_path.h Cycles: Remove ccl_fetch and SOA 2017-03-08 00:52:41 -05:00
svm_magic.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
svm_mapping.h Code refactor: make Transform always affine, dropping last row. 2018-03-10 04:54:05 +01:00
svm_math_util.h Cycles/Compositor: Add arctan2 operation to the Math node 2018-05-24 16:46:02 +02:00
svm_math.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
svm_mix.h Cycles: add constant folding for more color operation nodes. 2016-06-19 20:17:28 +02:00
svm_musgrave.h Cleanup: Remove unused Noise Basis texture code. 2015-05-28 01:07:37 +02:00
svm_noise.h Cycles: Cleanup, indent nested preprocessor directives 2016-03-25 13:55:42 +01:00
svm_noisetex.h Cycles: Speedup by avoiding extra calculations in noise texture when unneeded 2017-02-21 07:24:33 -05:00
svm_normal.h Cycles: Code cleanup, spaces around keywords 2015-03-28 00:15:15 +05:00
svm_ramp_util.h Cycles: Cleanup, style 2016-10-24 12:26:12 +02:00
svm_ramp.h Cycles: Tweaks to support CUDA 8 toolkit 2016-08-01 15:54:29 +02:00
svm_sepcomb_hsv.h Cycles: Code cleanup, spaces around keywords 2015-03-28 00:15:15 +05:00
svm_sepcomb_vector.h Cycles: Code cleanup, spaces around keywords 2015-03-28 00:15:15 +05:00
svm_sky.h Revert "Cycles: Remove the Preetham Sky model." 2016-04-05 12:25:54 +02:00
svm_tex_coord.h Code refactor: make Transform always affine, dropping last row. 2018-03-10 04:54:05 +01:00
svm_texture.h Cleanup: Remove unused Noise Basis texture code. 2015-05-28 01:07:37 +02:00
svm_types.h Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
svm_value.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
svm_vector_transform.h Cycles: Remove ccl_fetch and SOA 2017-03-08 00:52:41 -05:00
svm_voronoi.h Cleanup: Remove unused Voronoi texture code. 2015-05-28 00:36:33 +02:00
svm_voxel.h Code refactor: make Transform always affine, dropping last row. 2018-03-10 04:54:05 +01:00
svm_wave.h Cycles: Add Saw option to the wave texture 2016-01-01 23:25:37 +01:00
svm_wavelength.h Fix T53001: more workarounds for crash in AMD compiler with recent drivers. 2017-10-05 17:57:58 +02:00
svm_wireframe.h Cycles: Remove ccl_fetch and SOA 2017-03-08 00:52:41 -05:00
svm.h Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00