blender/intern/cycles/render
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
..
attribute.cpp Cycles volume: fast empty space optimization by generating a tight mesh 2018-03-01 11:54:01 +01:00
attribute.h Cycles volume: fast empty space optimization by generating a tight mesh 2018-03-01 11:54:01 +01:00
background.cpp Cycles: option to make background visible through glass transparent. 2018-01-12 01:34:28 +01:00
background.h Cycles: option to make background visible through glass transparent. 2018-01-12 01:34:28 +01:00
bake.cpp Cycles: add roughness baking support, using squared roughness convention. 2018-03-10 18:37:33 +01:00
bake.h Cycles: antialias normal baking if the mesh has a bump map. 2017-11-07 22:35:12 +01:00
buffers.cpp Code refactor: move OIIO image buffer writing outside session, into callback. 2018-03-15 23:05:16 +01:00
buffers.h Code refactor: move OIIO image buffer writing outside session, into callback. 2018-03-15 23:05:16 +01:00
camera.cpp Cycles: support arbitrary number of motion blur steps for cameras. 2018-03-10 06:27:19 +01:00
camera.h Cycles: support arbitrary number of motion blur steps for cameras. 2018-03-10 06:27:19 +01:00
CMakeLists.txt Cycles volume: fast empty space optimization by generating a tight mesh 2018-03-01 11:54:01 +01:00
constant_fold.cpp Fix missing return error introduced by last commit 2017-07-03 12:12:27 +02:00
constant_fold.h Cycles: Make all #include statements relative to cycles source directory 2017-03-29 13:41:11 +02:00
curves.cpp Cycles: Make all #include statements relative to cycles source directory 2017-03-29 13:41:11 +02:00
curves.h Cycles: Make all #include statements relative to cycles source directory 2017-03-29 13:41:11 +02:00
film.cpp Fix Cycles viewport render not updating when tweaking displacement shader. 2018-01-29 17:07:08 +01:00
film.h Cycles: Implement denoising option for reducing noise in the rendered image 2017-05-07 14:40:58 +02:00
graph.cpp Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
graph.h Code refactor: improve attribute handling for optional volume attributes. 2018-02-23 18:57:58 +01:00
image.cpp Cycles volume: fast empty space optimization by generating a tight mesh 2018-03-01 11:54:01 +01:00
image.h Cycles volume: fast empty space optimization by generating a tight mesh 2018-03-01 11:54:01 +01:00
integrator.cpp Fix T54317: overlapping volume render bug after recent changes. 2018-03-19 21:22:15 +01:00
integrator.h Cycles: remove option to disable transparent shadows globally. 2017-08-07 14:01:24 +02:00
light.cpp Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
light.h Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
mesh_displace.cpp Code refactor: device memory cleanups, preparing for mapped host memory. 2017-11-05 15:22:04 +01:00
mesh_subdivision.cpp Proper fix for T54337 2018-04-04 06:36:16 -04:00
mesh_volume.cpp Fix T54356: volume rendering bug using just color attribute. 2018-03-19 21:22:15 +01:00
mesh.cpp Fix too much memory usage for Cycles attribute map. 2018-05-21 11:14:59 +02:00
mesh.h Code cleanup: fix compiler warning. 2018-03-10 06:51:52 +01:00
nodes.cpp Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
nodes.h Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
object.cpp Cycles: Cleanup: Remove double semicolons 2018-04-29 09:28:41 +02:00
object.h Cycles: support arbitrary number of motion blur steps for objects. 2018-03-10 06:27:19 +01:00
osl.cpp Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
osl.h Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
particles.cpp Code refactor: use KernelShader and KernelParticle instead of float arrays. 2018-03-10 04:54:04 +01:00
particles.h Cycles: Make all #include statements relative to cycles source directory 2017-03-29 13:41:11 +02:00
scene.cpp Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
scene.h Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
session.cpp Code refactor: move OIIO image buffer writing outside session, into callback. 2018-03-15 23:05:16 +01:00
session.h Code refactor: move OIIO image buffer writing outside session, into callback. 2018-03-15 23:05:16 +01:00
shader.cpp Code refactor: use KernelShader and KernelParticle instead of float arrays. 2018-03-10 04:54:04 +01:00
shader.h Code refactor: improve attribute handling for optional volume attributes. 2018-02-23 18:57:58 +01:00
sobol.cpp Cycles: Remove unneeded include statements 2018-01-19 15:19:45 +01:00
sobol.h Cycles: Make all #include statements relative to cycles source directory 2017-03-29 13:41:11 +02:00
svm.cpp Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
svm.h Cycles: Add Support for IES files as textures for light strength 2018-05-27 01:24:57 +02:00
tables.cpp Cycles: Remove unneeded include statements 2018-01-19 15:19:45 +01:00
tables.h Cycles: Make all #include statements relative to cycles source directory 2017-03-29 13:41:11 +02:00
tile.cpp Fix issue with resumable rendering in recent changes. 2017-10-21 20:57:52 +02:00
tile.h Cycles: disable progressive refine if denoising or save buffers is used. 2017-10-21 20:29:21 +02:00