DescriptionThis patch adds the ability to bake directly to vertex colours.The advantage of this is that it doesn't require a UV map, however the quality of the bake will depend on the resolution of the mesh. See attached screenshot.
Change summary:
- Added a button to enable vertex colour baking in render buttons > bake panel.
- Added function shade_verts to compliment shade_tface and zspan_scanconvert. It does the same sort of thing as those functions, but only calls do_bake_shade once for each vertex.
- Changed bake_shade and bake_displacement to write to MCol instead of pixel buffer if MCol is present (not NULL).
- Disabled code for creating zspan and image buffers when baking to vertices.
- Added new table 'origindex' to VlakTableNode, on Brecht's advice. This maps from VlakRen back to the face in the source mesh. It is only populated when doing a vertex colour bake.
Working:
- Baking textures, displacement and normals.
- Baking from selected to active.
- AO (but needs lots of samples or there will be discontinuities).
Partially working:
- Full render, shadows (shadows cause artefacts).
Not working:
- Baking meshes with topology-changing modifiers (e.g. subdivision).
Patch on PBO: http://projects.blender.org/tracker/index.php?func=detail&aid=29035&group_id=9&atid=127
Patch Set 1 #
MessagesTotal messages: 2
|