blender/intern/cycles/render
Dalai Felinto eec3eaba08 Cycles Bake
Expand Cycles to use the new baking API in Blender.

It works on the selected object, and the panel can be accessed in the Render panel (similar to where it is for the Blender Internal).

It bakes for the active texture of each material of the object. The active texture is currently defined as the active Image Texture node present in the material nodetree. If you don't want the baking to override an existent material, make sure the active Image Texture node is not connected to the nodetree. The active texture is also the texture shown in the viewport in the rendered mode.

Remember to save your images after the baking is complete.

Note: Bake currently only works in the CPU
Note: This is not supported by Cycles standalone because a lot of the work is done in Blender as part of the operator only, not the engine (Cycles).

Documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Bake

Supported Passes:
-----------------
Data Passes
 * Normal
 * UV
 * Diffuse/Glossy/Transmission/Subsurface/Emit Color

Light Passes
 * AO
 * Combined
 * Shadow
 * Diffuse/Glossy/Transmission/Subsurface/Emit Direct/Indirect
 * Environment

Review: D421
Reviewed by: Campbell Barton, Brecht van Lommel, Sergey Sharybin, Thomas Dinge

Original design by Brecht van Lommel.

The entire commit history can be found on the branch: bake-cycles
2014-05-02 21:19:09 -03:00
..
attribute.cpp Split Normals I (5/5): Add support of split normals to Cycles. 2014-04-13 12:51:13 +02:00
attribute.h Split Normals I (5/5): Add support of split normals to Cycles. 2014-04-13 12:51:13 +02:00
background.cpp Cycles code refactor: replace magic ~0 values in the code with defines. 2014-03-29 13:03:47 +01:00
background.h Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
bake.cpp Cycles Bake 2014-05-02 21:19:09 -03:00
bake.h Cycles Bake 2014-05-02 21:19:09 -03:00
blackbody.cpp Code cleanup: Add -Werror=float-conversion to Cycles 2014-05-03 07:31:46 +10:00
blackbody.h Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
buffers.cpp Fix T39420: Cycles viewport/preview flickers, when moving mouse across editors 2014-03-26 15:58:53 +06:00
buffers.h Fix for build error in Cycles standalone caused by new DeviceDrawParams 2014-03-26 18:11:16 +01:00
camera.cpp Code cleanup: Add -Werror=float-conversion to Cycles 2014-05-03 07:31:46 +10:00
camera.h Cycles Standalone: The camera now gets properly updated, when changing window size or using --width --height overwrites. 2014-02-14 18:40:31 +01:00
CMakeLists.txt Cycles Bake 2014-05-02 21:19:09 -03:00
curves.cpp Code cleanup / Cycles: Remove encasing_ratio variable, it was already hard coded, so define it in the kernel only. 2014-02-02 19:53:04 +01:00
curves.h Code cleanup / Cycles: Remove encasing_ratio variable, it was already hard coded, so define it in the kernel only. 2014-02-02 19:53:04 +01:00
film.cpp Cycles Bake 2014-05-02 21:19:09 -03:00
film.h Fix Cycles Light Passes being always enabled, own regression in Clamp commit yesterday. 2014-02-11 14:14:43 +01:00
graph.cpp Code cleanup: remove old closure sampling code Cycles. 2014-04-21 16:14:37 +02:00
graph.h Code cleanup: remove old closure sampling code Cycles. 2014-04-21 16:14:37 +02:00
image.cpp Code cleanup: fixes for function prototypes 2014-03-31 17:35:56 +06:00
image.h Cycles code internals: add CPU kernel support for 3D image textures. 2014-03-29 13:03:48 +01:00
integrator.cpp Code cleanup: Add -Werror=float-conversion to Cycles 2014-05-03 07:31:46 +10:00
integrator.h Cycles: Direct multi light sampling in the Branched Path Integrator is optional now. 2014-03-15 17:37:43 +01:00
light.cpp Cycles Bake 2014-05-02 21:19:09 -03:00
light.h Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
mesh_displace.cpp Cycles Bake 2014-05-02 21:19:09 -03:00
mesh.cpp Split Normals I (5/5): Add support of split normals to Cycles. 2014-04-13 12:51:13 +02:00
mesh.h Split Normals I (5/5): Add support of split normals to Cycles. 2014-04-13 12:51:13 +02:00
nodes.cpp Code cleanup: Add -Werror=float-conversion to Cycles 2014-05-03 07:31:46 +10:00
nodes.h Cycles volume: detect homogeneous volume automatically in common cases. 2014-04-03 22:13:05 +02:00
object.cpp Cycles: avoid some CUDA performance on scenes without deformation motion blur. 2014-04-26 14:29:52 +02:00
object.h Cycles code refactor: improve vertex motion attribute storage and export. 2014-03-29 13:03:46 +01:00
osl.cpp Fix for auto detect homogeneous volume with OSL, forgot to include this file in last commit. 2014-04-05 14:49:50 +02:00
osl.h Fix build error when building without OSL support. 2013-12-09 05:28:19 +01:00
particles.cpp Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
particles.h Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
scene.cpp Cycles Bake 2014-05-02 21:19:09 -03:00
scene.h Cycles Bake 2014-05-02 21:19:09 -03:00
session.cpp Cycles Bake 2014-05-02 21:19:09 -03:00
session.h Cycles Bake 2014-05-02 21:19:09 -03:00
shader.cpp Cycles volume: detect homogeneous volume automatically in common cases. 2014-04-03 22:13:05 +02:00
shader.h Cycles volume: detect homogeneous volume automatically in common cases. 2014-04-03 22:13:05 +02:00
sky_model_data.h Code Cleanup: use static for sky_model_data.h 2013-12-13 04:40:30 +11:00
sky_model.cpp Code cleanup: Add -Werror=float-conversion to Cycles 2014-05-03 07:31:46 +10:00
sky_model.h code cleanup: spelling 2013-10-31 23:52:44 +00:00
sobol.cpp Fix #29528: crash adding subsurf modifier in a particular scene with viewport render. 2011-12-08 21:55:35 +00:00
sobol.h Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
svm.cpp Fix T39793: cycles SVM shading bug with tangled up nodes after recent optimization. 2014-04-21 17:17:52 +02:00
svm.h Fix T39793: cycles SVM shading bug with tangled up nodes after recent optimization. 2014-04-21 17:17:52 +02:00
tables.cpp Fix T39146: recent cycles CUDA regression in fix for T39114. 2014-03-13 14:18:34 +01:00
tables.h Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
tile.cpp Fix a few issues reported by coverity scan. 2013-09-03 22:39:21 +00:00
tile.h Fix a few issues reported by coverity scan. 2013-09-03 22:39:21 +00:00