Blender Git Commit Log

Git Commits -> Revision a1c2226

Revision a1c2226 by Sergey Sharybin (master)
June 5, 2011, 20:54 (GMT)
Bake from multires mesh
=======================

Added option to baked named "Bake From Multires" which is avaliable for
normals baking and displacement baking.

If this option is enabled, then no additional hi-res meshes and render
structures would be created . This saves plenty of memory and meshes
with millions of faces could be successfully baked in few minutes.

Baking happens from highest level against viewport subdivision level,
so workflow is following:
- Set viewport level to level at which texture would be applied
during final rendering.
- Choose Displacement/Normals baking.
- Enable "Bake From Multires" option.
- You're ready to bake.

Displacement baker had aditional option named "Low Resolution Mesh".
This option is used to set if you want texture for realtime (games)
usage.

Internally it does the following:
- If it's disabled, displacement is calculated from subdivided
viewport level, so texture looks "smooth" (it's how default
baked works).
- If it's enabled, dispalcement is calculated against unsubdivided
viewport levels. This leads to "scales". This isn;t useful for
offline renders much, but very useful for creating game textures.

Special thanks to Morten Mikkelsen (aka sparky) for all mathematics
and other work he've done fr this patch!

Commit Details:

Full Hash: a1c22262fef25de91dbafd7b401e349538dc3d61
SVN Revision: 37225
Parent Commit: a580b5e
Lines Changed: +1466, -151

12 Modified Paths:

/release/scripts/startup/bl_ui/properties_render.py (+30, -18) (Diff)
/source/blender/blenkernel/BKE_multires.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/customdata.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/multires.c (+57, -1) (Diff)
/source/blender/blenlib/BLI_math_geom.h (+3, -0) (Diff)
/source/blender/blenlib/intern/math_geom.c (+74, -0) (Diff)
/source/blender/editors/object/object_bake.c (+1213, -56) (Diff)
/source/blender/imbuf/IMB_imbuf.h (+7, -0) (Diff)
/source/blender/imbuf/intern/filter.c (+64, -0) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+8, -0) (Diff)
/source/blender/render/intern/source/rendercore.c (+6, -74) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021