diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2014-01-03 01:05:07 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2014-05-03 04:19:09 +0400 |
commit | eec3eaba084725a978f4aefb773a16ae9c0420db (patch) | |
tree | 68e34c3e8ff42af5263c010895b6649961f82eb6 /intern/cycles/blender/addon/properties.py | |
parent | 97641a0ec946005d9a042f075697109c6590a28d (diff) |
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
Diffstat (limited to 'intern/cycles/blender/addon/properties.py')
-rw-r--r-- | intern/cycles/blender/addon/properties.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py index 2b05c2148eb..7205a272395 100644 --- a/intern/cycles/blender/addon/properties.py +++ b/intern/cycles/blender/addon/properties.py @@ -471,6 +471,33 @@ class CyclesRenderSettings(bpy.types.PropertyGroup): default=False, ) + cls.bake_type = EnumProperty( + name="Bake Type", + default='COMBINED', + description="Type of pass to bake", + items = ( + ('COMBINED', "Combined", ""), + ('AO', "Ambient Occlusion", ""), + ('SHADOW', "Shadow", ""), + ('NORMAL', "Normal", ""), + ('UV', "UV", ""), + ('EMIT', "Emit", ""), + ('ENVIRONMENT', "Environment", ""), + ('DIFFUSE_DIRECT', "Diffuse Direct", ""), + ('DIFFUSE_INDIRECT', "Diffuse Indirect", ""), + ('DIFFUSE_COLOR', "Diffuse Color", ""), + ('GLOSSY_DIRECT', "Glossy Direct", ""), + ('GLOSSY_INDIRECT', "Glossy Indirect", ""), + ('GLOSSY_COLOR', "Glossy Color", ""), + ('TRANSMISSION_DIRECT', "Transmission Direct", ""), + ('TRANSMISSION_INDIRECT', "Transmission Indirect", ""), + ('TRANSMISSION_COLOR', "Transmission Color", ""), + ('SUBSURFACE_DIRECT', "Subsurface Direct", ""), + ('SUBSURFACE_INDIRECT', "Subsurface Indirect", ""), + ('SUBSURFACE_COLOR', "Subsurface Color", ""), + ), + ) + @classmethod def unregister(cls): del bpy.types.Scene.cycles |