Blender Git Loki

Kaikki Blender Git kommitit.

Page: 5511 / 8462

May 3, 2014, 09:08 (GMT)
Comment out scons '-Werror=float-conversion' for Cycles for now.

This option is only available in gcc >= 4.9, and we do not have a fancy helper in scons
to check availability of a flag...
May 3, 2014, 08:54 (GMT)
Fix '-Werror=float-conversion' error with gcc < 4.9, for CMake

Scons is still TODO.
May 3, 2014, 06:52 (GMT)
Fix T40001: Opening a 2.66 blend file in 2.7, a bone appear "rolled but not rolled".

Looks like some sign was lost in that complex matrix algebra (always be wary of squared values!).
May 3, 2014, 04:50 (GMT)
NLA Editor: Show correct tooltip for "NLA Mute" on datablock expanders
May 3, 2014, 04:50 (GMT)
Spelling fix
May 3, 2014, 00:19 (GMT)
Cycles: CUDA changes for kernel evaluation cancel
May 3, 2014, 00:19 (GMT)
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
May 3, 2014, 00:19 (GMT)
Bake API - bpy.ops.object.bake()

New operator that can calls a bake function to the current render engine when available. This commit provides no feature for the users, but allows external engines to be accessed by the operator and be integrated with the baking api.

The API itself is simple. Blender sends a populated array of BakePixels to the renderer, and gets back an array of floats with the result.

The Blender Internal (and multires) system is still running independent, but we eventually will pipe it through the API as well. Cycles baking will come next as a separated commit

Python Operator:
----------------
The operator can be called with some arguments, or a user interface can be created for it. In that case the arguments can be ommited and the interface can expose the settings from bpy.context.scene.render.bake

bpy.ops.object.bake(type='COMBINED', filepath="", width=512, height=512, margin=16, use_selected_to_active=False, cage_extrusion=0, cage="", normal_space='TANGENT', normal_r='POS_X', normal_g='POS_Y', normal_b='POS_Z', save_mode='INTERNAL', use_clear=False, use_split_materials=False, use_automatic_name=False)
Note: external save mode is currently disabled.

Supported Features:
------------------
* Margin - Baked result is extended this many pixels beyond the border of each UV "island," to soften seams in the texture.

* Selected to Active - bake shading on the surface of selected object to the active object. The rays are cast from the lowpoly object inwards towards the highpoly object. If the highpoly object is not entirely involved by the lowpoly object, you can tweak the rays start point with Cage Extrusion. For even more control of the cage you can use a Cage object.

* Cage Extrusion - distance to use for the inward ray cast when using selected to active

* Custom Cage - object to use as cage (instead of the lowpoly object).

* Normal swizzle - change the axis that gets mapped to RGB

* Normal space - save as tangent or object normal spaces

Supported Passes:
-----------------
Any pass that is supported by Blender renderlayer system. Though it's up to the external engine to provide a valid enum with its supported passes. Normal passes get a special treatment since we post-process them to converted and "swizzled"

Development Notes for External Engines:
---------------------------------------
(read them in bake_api.c)

* For a complete implementation example look at the Cycles Bake commit (next).

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

Normal map pipeline "consulting" by Andy Davies (metalliandy)
Original design by Brecht van Lommel.

The entire commit history can be found on the branch: bake-cycles
May 3, 2014, 00:17 (GMT)
Cycles-Bake: incorporate object name to the automatic naming system

last commit before merging to master ...
May 2, 2014, 23:56 (GMT)
IMB buffer functions to take a mask as input

The mask make sure the conversion only happens in a few areas of the
buffer.

New Functions:
* IMB_buffer_byte_from_float_mask
* IMB_buffer_float_from_float_mask

The functions are an adaptation of their maskless counterparts without accepting different profiles for the input and output buffers.

Review: Sergey Sharybin
May 2, 2014, 23:56 (GMT)
BLI_path_suffix() - new path util functon to add a suffix to a filepath (before the extension)

Revision: D465
Reviewd by Campbell Barton
May 2, 2014, 23:53 (GMT)
Merge remote-tracking branch 'upstream/master' into bake-cycles
May 2, 2014, 23:53 (GMT)
Cycles-Bake: API documentation incorporated to code
May 2, 2014, 23:53 (GMT)
Cycles-Bake: custom cages were not working since the wm_job refactor
May 2, 2014, 23:52 (GMT)
Cycles-Bake: fix for swizzle (negative was positive and vice-versa)
May 2, 2014, 23:18 (GMT)
UI: more changes for large textfields

- no longer set 'but->drawstr' when editing buttons.
- clip text and set cursor based on the 'editstr'.
May 2, 2014, 22:03 (GMT)
Reuse old regular drawing even in cycles for non-material mode in
texture paint. This enables us to see stencil masking even then.
May 2, 2014, 21:31 (GMT)
Code cleanup: Add -Werror=float-conversion to Cycles
May 2, 2014, 20:06 (GMT)
Fix for paste clamping the string length to UI_MAX_DRAW_STR
May 2, 2014, 19:03 (GMT)
Fix T39924: 400 character limit in text fields
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021